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:

https://graph.facebook.com/me?fields=email


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -