Game Minion

@jason.bradley, we pushed a fix that should address the 404 you were getting. Please try and let us know if this was fixed.

-Mohamed [import]uid: 144378 topic_id: 33506 reply_id: 133943[/import]

@nick_sherman, with the FB login you don’t need to create an account or anything.
All you need to do is use the gm:loginFacebook function which will return an auth_token.

What I assume is happening is that you’ve already created a GM account and now when you login, because we automatically handle it, it is returning an incorrect username or password, as it already exists.

If this is the case, please email me the account email you created.

UPDATE: Just to clarify you will need to first call the Corona facebook.login() to get the ID and Access Token, which then you need to pass to gm:loginFacebook.

-Mohamed
mohamed(at)gameminion.com [import]uid: 144378 topic_id: 33506 reply_id: 133895[/import]

Thank you, the 404 error is no longer happening, but I am now getting a 422 HTTP response.

I want to make sure I fully understand the authentication/login process for a facebook user, as it might be on my side this time.

Here is what I’m trying:

  1. Call facebook.login from corona’s sdk. This will return an auth token from facebook.
  2. Call loginFacebook(facebookID, accessToken) from gameminion.lua I am passing in the users facebook user id (from calling facebook.request(“me”)) and the access token returned in step 1.

Thank you!
[import]uid: 64619 topic_id: 33506 reply_id: 133963[/import]

@jason.bradley, please make sure that you have included 'email" permission in the facebook.login() call.
Because we use it to create the account.

-Mohamed [import]uid: 144378 topic_id: 33506 reply_id: 133964[/import]

Excellent! I added the email permission in the facebook app settings and in the login. It now logs me in and returns the token, thanks for your help! [import]uid: 64619 topic_id: 33506 reply_id: 133968[/import]