FaceBook Login

Has anybody created a log in for their app using Facebook.

You know those Apps that have a login/signup screen but a button that says ‘login/signup with Facebook’

Also if that is possible in Corona how do you get the user’s email address if they log in with Facebook? [import]uid: 8697 topic_id: 23154 reply_id: 323154[/import]

Getting the users email address like that would be a big no-no; if you want their email address have them enter it legitimately where they know they are sharing it with you. [import]uid: 52491 topic_id: 23154 reply_id: 92710[/import]

So in the top selling game on the app store at the moment ‘Draw Something’ they are doing something wrong then?

The first time you run their App it asks you to register, if you register using your Facebook login (As I was already signed in with Facebook it just asked my permission) you then get an email from the company to confirm registration. They obviously get your email from your Facebook account.

So How do I do that because it’s a common thing and it’s exactly what I was asking. [import]uid: 8697 topic_id: 23154 reply_id: 92757[/import]

The email address should be an entry in the “me” object if the user has provided it to Facebook as part of their information page. The email the user used to register for facebook is not exposed as far as I can tell. [import]uid: 19626 topic_id: 23154 reply_id: 92795[/import]

my email is exposed and it just returned my name [import]uid: 8697 topic_id: 23154 reply_id: 92823[/import]

You have to explicitly request the email permission apparently.

I wasn’t able to see my email using their Graph API Explorer until I did a get token, selected extended permissions and chose email and agreed to share the email.

[import]uid: 19626 topic_id: 23154 reply_id: 92838[/import]

Sorry, when you mentioned it in what read as a more general sense it didn’t sound (to me) like allowing the user to authorize via FB/email - which is Draw Something does.

In any case, Rob is correct. [import]uid: 52491 topic_id: 23154 reply_id: 92937[/import]