Get email address with Xamarin.Auth and Facebook authentication -
i have following code try connect authenticator
var auth = new oauth2authenticator ( appid, "email", new uri ("https://m.facebook.com/dialog/oauth/"), new uri ("http://www.facebook.com/connect/login_success.html"));
and when dialog shows, can see requesting permission see email. how email service?
i make following call facebook id
var request = new oauth2request ("get", new uri ("https://graph.facebook.com/me"), null, args.account); request.getresponseasync ().continuewith (t => { var obj = jsonvalue.parse (t.result.getresponsetext ()); var id = obj ["id"]; });
but there no email in reponse back. how can email address of user?
the lastest api version (2.4 @ time of writing) uses declarative fields, need explicitly request email field this:
Comments
Post a Comment