Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

Facebook Login - Retrieve Email Address

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

Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

Facebook Login - Retrieve Email Address

Tough question or ??

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Facebook Login - Retrieve Email Address

Hi Bruce,

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

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

Regards.

Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

Facebook Login - Retrieve Email Address

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 ...

Spark Chao
Posts: 0
Joined: Sat Jan 17, 2015 6:25 am

Facebook Login - Retrieve Email Address

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

Spark Chao
Posts: 0
Joined: Sat Jan 17, 2015 6:25 am

Facebook Login - Retrieve Email Address

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...

Return to “Issues”