Page 1 of 1

Facebook Login - Retrieve Email Address

Posted: Tue Jan 13, 2015 11:55 pm
by Bruce Stuart

Hello,

I'm successfully using this tutorial to log users into my application.
http://devcenter.appery.io/tutorials/...

However, since my newest creation is an email communication utility - I desperately need to get the email address (with permission of course) - from Facebook.

Is there a way to change the service (the facebook. - to get the email address without too many modificationd) - My service created after importing the plug-in ??

I know that it's behind a separate permission - is there a way to change the service to request access to the email address - and then change the response tab?

or do I need to go down the path to using oAuth??

Thanks!
Bruce

Image


Facebook Login - Retrieve Email Address

Posted: Wed Jan 14, 2015 7:00 pm
by Bruce Stuart

Tough question or ??


Facebook Login - Retrieve Email Address

Posted: Thu Jan 15, 2015 5:01 am
by Yurii Orishchuk

Hi Bruce,

You need to add "email" scope to your login facebook url.

See details here: https://developers.facebook.com/docs/...

Regards.


Facebook Login - Retrieve Email Address

Posted: Thu Jan 15, 2015 5:31 am
by Bruce Stuart

Thanks - got it ---- made the change to the Helper Script - which - I didn't originally understand was doing the API call ---- not the service... the service is just receiving the results ...


Facebook Login - Retrieve Email Address

Posted: Thu Apr 09, 2015 2:57 am
by Spark Chao

Hi Yurii and Bruce
I can understand where can I add "email" scope to your login facebook url.
Please help me~
Thanks!!


Facebook Login - Retrieve Email Address

Posted: Thu Apr 09, 2015 4:32 am
by Spark Chao

it is work!
I change the js code .

var callbackUrl = "http://appery.io/app/view/" + Facebook_Settings.project_id + "/Facebook_Me.html";
var url = "https://www.facebook.com/dialog/oauth...=" + Facebook_Settings['client_id'] + "&redirect_uri=" + callbackUrl + "&scope=email&response_type=token";

https://devcenter.appery.io/tutorials...