{"action":"closed","issue":{"url":"https://api.github.com/repos/pythonforfacebook/facebook-sdk/issues/246","labels_url":"https://api.github.com/repos/pythonforfacebook/facebook-sdk/issues/246/labels{/name}","comments_url":"https://api.github.com/repos/pythonforfacebook/facebook-sdk/issues/246/comments","events_url":"https://api.github.com/repos/pythonforfacebook/facebook-sdk/issues/246/events","html_url":"https://github.com/pythonforfacebook/facebook-sdk/issues/246","id":113212405,"number":246,"title":"Unable to obtain email address for facebook user","user":{"login":"karthikarun","id":1340602,"avatar_url":"https://avatars.githubusercontent.com/u/1340602?v=3","gravatar_id":"","url":"https://api.github.com/users/karthikarun","html_url":"https://github.com/karthikarun","followers_url":"https://api.github.com/users/karthikarun/followers","following_url":"https://api.github.com/users/karthikarun/following{/other_user}","gists_url":"https://api.github.com/users/karthikarun/gists{/gist_id}","starred_url":"https://api.github.com/users/karthikarun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karthikarun/subscriptions","organizations_url":"https://api.github.com/users/karthikarun/orgs","repos_url":"https://api.github.com/users/karthikarun/repos","events_url":"https://api.github.com/users/karthikarun/events{/privacy}","received_events_url":"https://api.github.com/users/karthikarun/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-25T08:03:04Z","updated_at":"2015-10-26T09:26:00Z","closed_at":"2015-10-26T09:26:00Z","body":"Hi,\r\n\r\nI downloaded the python facebook sdk from the site https://pypi.python.org/pypi/facebook-sdk at the link https://pypi.python.org/packages/source/f/facebook-sdk/facebook-sdk-0.4.0.tar.gz\r\n\r\nI followed the example for appengine from under examples/appengine. All works fine, except for that when I try to obtain the email address as \r\n\r\nprofile = graph.get_object(\"me\")\r\nprint profile['email']\r\n\r\nIt doesn't work as it throws a KeyError, since email isn't found in profile. \r\n\r\n(1) I am using a test login profile to login to the facebook account and I know for sure that this account has an email address and I gave permission to share the email address to the app when logging for the first time. \r\n\r\n(2) On the JavaScript SDK side, I am also passing \"email\" to the scope as shown below:\r\n     scope=\"email,public_profile\" \r\nin the fb:login-button scope.\r\n\r\nwhich is what the facebook sdk docs suggests that I do to obtain email.\r\n\r\nIn spite of (1) and (2), still the profile obtained doesn't have the email address. Any idea what could be the root cause and the fix?\r\n\r\nThanks,\r\nKarthik"}}