/    Sign up×
Community /Pin to ProfileBookmark

Facebook Graph API Email scope issue

Hello,

I am using Facebook SDK version 4.0.18 with graph api v2.2

I am trying to get the basic information of a user i.e. public_profile, email, user_friends which i have specified in the scope parameter. My login url looks like

[CODE]https://www.facebook.com/v2.2/dialog/oauth?client_id=XXXXXXXXXX&redirect_uri=http://mydomain.com/facebook/&state=XXXXXXX&sdk=php-sdk-4.0.18&scope=public_profile,email,user_friends[/CODE]

Facebook does confim that the scopes I am specifying are valid [url]http://prntscr.com/as5vko[/url]

However, the response I get are the user’s [B]id[/B] and its [B]name[/B]

Can anyone tell me how can I get the email address of the user?

PS: The user’s primary email address is verified.

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@NogDogApr 14.2016 — Hopefully you can only retrieve the email if the user has explicitly made it public? :eek:
Copy linkTweet thisAlerts:
@phantom007authorApr 15.2016 — and how does he do that?
Copy linkTweet thisAlerts:
@NogDogApr 15.2016 — Afraid I have no idea, it was just a bit disconcerting to see that you thought it was possible, and then I wondered if it was.

Looking at the applications settings at https://www.facebook.com/settings?tab=applications , I don't see any place where I can allow them to access my email.
×

Success!

Help @phantom007 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...