I am trying to understand how I can authenticate my iOS app using github. I understand from the documentation, that I need to implement this using OAuth.
I also understood that in my github profile, I need to register a new OAuth application, the form to do that looks like this:
I don't understand what info I have to provide for Homepage URL and Authorization callback URL as I am building an iOS app and not a webapp that is actually hosted on some server.
I would suggest trying FireBase. It has an infrastructure to enable GitHub login specifically. Also, there are sufficient examples to create the app.
Related
i have application with server side (on java) and mobile app for iOS.
For implementation flow invite friends to application i need to use deep link.
Flow must be following:
From server I send email with deep link and token
User open email with link and click
Download app from store and sign up on application with token from link.
How I can generate link with token on server for application?
Maybe it bad flow, please correct me.
Thanks.
This is known as 'deferred deep linking'. It's complicated to build — I don't recommend trying to do it yourself. Take a look at free services like Branch.io (full disclosure: I'm on the Branch team) or Firebase Dynamic Links.
I am trying to create an ios App that talks to a backend API written in nodejs. The backend also has an accompanying webapp also written in nodejs. The idea is that you can login (using facebook-js) on either the app or the webapp and post things to to.
My question is this, let's say that the user decided to login using the ios App, then call some backend API method to post an article, how do I make this work without essentially forcing the user to login twice?
Not sure if I'm making sense, any help would be greatly appreciated!
As Facebook uses OAuth for the client authentication, it's relatively easy to store the Access Token resulting from the login process somewhere on your server, and use them later.
Have a look at Design for Facebook authentication in an iOS app that also accesses a secured web service
Also, see https://developers.facebook.com/docs/facebook-login/manually-build-a-login-flow/v2.1 which outlines the login process and the storage of Access Tokens.
Hello I want to perform functionality like sign in or sign up with facebook using oauth2.
I have generated the consumer controller for oauth and could successfully consume the services provided by facebook.
But now I want to have functionality of sign in and signup.
Im getting a error with this.
My control comes to the def load_consumer but from there it is not going in to def callback2.
If the user is already signed in then it works perfectly fine else it crashes.
And also I wanted to know when to use oauth provider and when to use oauth consumer.
Please if you find a proper documentation for this then please post it here.
Thanks in adavnace.
There's a live example of how to implement Facebook Login via the Temboo SDK here. The source code for that example is available on GitHub (in PHP) but you can easily generate the Ruby code you need to achieve the same behavior via the Temboo website, see link below:
https://www.temboo.com/library/Library/Facebook/OAuth/
(Full disclosure: I work at Temboo, so let me know if you have any questions).
I'm trying to achieve following: I have facebook authentication on my web app. I want to return back to PhoneGap application after authentication is done.
The authentication flow works just fine. But returning to app should be done by providing a redirect url to facebook authentication URL. The problem is that I don't know what's the URL.
I've tried custom URL scheme, which works when authentication flow is executed in external Mobile Safari window. But in this case, the authentication is set to the Safari session, not for the Web App.
If external window is not used, but the authentication is done in Web App, the custom URL scheme won't work.
I have a hint this could be done with PhoneGap ChildBrowser plugin. That's the last possible option I want to try
If the only possible solution is ChildBrowser, I haven't found any good tutorial or instructions how this should be done. Any advice on that?
please give solution if any one have better example
Phonegap released a plugin for connecting to facebook: https://github.com/davejohnson/phonegap-plugin-facebook-connect
I am using RPXnow.com authentication solution for a rails app and am now at the point of wanting to develop Facebook integration features using Facebook Connect and the client api. What I am unclear on from RPXnow docs is the level of integration their solution provides. When a user connects via rpx using their FB creds, are they now using Facebook Connect? Can I make calls to the client api from my app? Do I need to use the RPX api to access the FB client APIs?
Anyone with experience using both who can shed light here, much appreciated.
dnewman,
Great question. Facebook Connect is simply a javascript layer built on top of the Facebook Platform APIs. RPX uses the platform APIs to authenticate the user, and after they have signed in, you may safely use the native Facebook Connect javascript to implement FB specific features on your site like posting activity back to the News Feed. You just need to set your connect URL on the facebook developer site and drop in the Facebook Connect javascript and then start implementing. After authenticating via RPX, the user will already have approved and "connected" to your website, and you'll have access to the breadth of Connect directly.
Also, if you have an RPX Plus/Pro account you can make simple RPX API calls to set a user's status and post activity on Facebook (and Twitter/MySpace).
Brian Ellin
RPX Product Manager
Once you've hooked up RPXNow (JanRain) single sign-on, you can follow the Facebook documentation. The Server-side Personalization example is in PHP but the idea is the same in any language.
// Fetch the user's friends
$friends = json_decode(file_get_contents(
'https://graph.facebook.com/me/friends?access_token=' .
$cookie['oauth_access_token']), true);
$friend_ids = array_keys($friends);
The key point to note is that the $cookie['oauth_access_token'] referenced in this example needs to be the string returned by the RPXNow sign-on API response in the JSON field
['accessCredentials']['accessToken']
Hint: from your RPXNow dashboard, check out the Test Sign-In Widget page under Resources to see where that token is in the response.
Initially I thought this would be hampered by having your Base Domain set to rpxnow.com in your Facebook Application settings, but this is not the case. It works fine.