Reputation: 121
I am using app login access token retrieved through following API -
https://graph.facebook.com/oauth/access_token?client_id=&client_secret=&grant_type=client_credentials
Can I retrieve email address (primary email not the facebook email) of any user if it is public using Graph API?
Thanks Lakhan
Upvotes: 2
Views: 2415
Reputation: 7319
Two ways to get users primary email:
For getting the authenticating users email, when you first request the oAuth dialog you need to pass a scope
with the email
permission (as well as whatever other permissions you require). See more about permissions here and more about using scope here .
When the email is available it can be found in the User
payload, see more about the API request and payload here.
Upvotes: 2
Reputation: 21
Check the doc here : http://developers.facebook.com/docs/reference/api/user/
With the email argument, you will be able to get the email.
Upvotes: 0