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

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -