I want to allow users to sign in using facebook as well to my website, since the recent release of new Facebook stuff, I am unsure which one to use. Previously, Facebook Connect was used. Now we have Facebook authorization feature, using the OAuth 2.0.
Please tell me which one to use? and Is Facebook Connect going to be obsolete?
I am new to Facebook Development.
In the Settings page, you need to add redirect URL in order to tell Facebook where a user will be redirected back after authorization. I have added http://localhost:8000/auth/facebook/callback as the redirect URL. Click on the SaveChanges button. You will see app id and app secret keys.
OAuth2 won a standards battle a few years ago. It's the only authentication protocol supported by the major vendors. Google recommends OAuth2 for all of its APIs, and Facebook's Graph API only supports OAuth2. The best way to understand OAuth2 is to look at what came before it and why we needed something different.
In your Facebook app configuration, click on the Settings tab on the left-hand navigation menu. Then go to the Advanced tab at the top and scroll down to the Client OAuth Settings section.
It's better to use Oauth2 because Facebook Connect is indeed obsolete. The following links helped me a lot to do it:
1 - http://www.asp.net/mvc/tutorials/mvc-5/create-an-aspnet-mvc-5-app-with-facebook-and-google-oauth2-and-openid-sign-on
2 - how to post in facebook from my asp.net mvc 3 website
3 - Architecture for merging multiple user accounts together
4 - http://www.aspsnippets.com/Articles/Post-Publish-and-Share-content-on-users-FaceBook-Wall-using-Graph-API-in-ASPNet.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With