How could I authenticate a user in facebook using oauth? -
i want know how authenticate user, visiting site, facebook using oauth 2.0
you can use javascript sdk.
basically go here: http://developers.facebook.com/docs/reference/javascript/
add code async load fb all.js
then authenticating can take many paths... can this:
http://developers.facebook.com/docs/reference/javascript/fb.login/
or pass them here:
https://www.facebook.com/dialog/oauth? client_id=your_app_id&redirect_uri=your_url
the can make proper graph calls necessary info need graph so:
fb.api('/me', function(response) { alert(response.name); });
further information on available here: http://developers.facebook.com/docs/reference/javascript/fb.api/
hope helps.
Comments
Post a Comment