Edit: Do not duplicate because:
- I have permission
- Marker Debugging
- The code works with a test user.
Please do not mark as duplicate without reading.
I am trying to get the email address of the user, but I do not understand. In the graphical api explorer, when I click send, the email field turns gray and says:
Fieldempty or forbidden with an access token
But when I debug a token, it has permission to use email
My profile has an email address.
Update: I tried https://developers.facebook.com/tools/console/ . My profile returns nothing, even on another computer. But the same code returns the email address, name and ID of another account.
the code:
<fb:login-button scope="email"> Grant Permissions to make more examples work </fb:login-button> <button onclick="doPost()">Post to Stream</button> <script> function userData() { FB.api('/me?fields=name,email', Log.info.bind('/me callback')); }; FB.getLoginStatus(function(response) { if (response.status === 'connected') { userData(); } }); </script>
Can you block your email so that no one can use it? Even when do I grant permission?
javascript facebook
joao Beno May 19 '13 at 2:50 am 2013-05-19 02:50
source share