ASNE icon indicating copy to clipboard operation
ASNE copied to clipboard

Not able to fetch Email from Facebook

Open vivekreddy opened this issue 10 years ago • 2 comments

When I try to retreive Email from facebook SocialPerson it gives NULL. Id and Name are bieng fetched correctly. Please help.

vivekreddy avatar Aug 05 '15 09:08 vivekreddy

I faced same issue. ASNE implemented with Facebook Android SDK v3.0, so I implemented workaround in my app:

Bundle bundle = new Bundle();
bundle.putString("fields", "email");
     Request request = new Request(Session.getActiveSession(), "me", bundle, (HttpMethod) null, new      Request.Callback() {
          @Override
          public void onCompleted(Response response) {
               String rawResponse = response.getRawResponse();
               //Do whatever you want with json response
          }
});
request.executeAsync();

dmaltsev avatar Aug 30 '15 11:08 dmaltsev

Thank you Denis Maltsev

vivekreddy avatar Aug 30 '15 15:08 vivekreddy