Game Minion

I have started to use the game minion restful service in my corona game and must say it was very easy to implement (thanks to the gameminion.lua on github).

One question - Is it possible to have users log in via facebook without having a game minion user account?

Thanks [import]uid: 64619 topic_id: 33506 reply_id: 333506[/import]

Yes. In the gameminion.lua file there is an API Call:

gameminion:loginFacebook(facebookID, accessToken)

You will need to log them into facebook first, fetch their “me” object to get their facebook ID and also get the access token returned from the login bit and pass it in to this call.

[import]uid: 199310 topic_id: 33506 reply_id: 133130[/import]

The Miracle Man strikes again! Spot on Rob.
Should I be worried about my job! :wink:

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

Nothing to worry about… :wink: [import]uid: 199310 topic_id: 33506 reply_id: 133219[/import]

Yes. In the gameminion.lua file there is an API Call:

gameminion:loginFacebook(facebookID, accessToken)

You will need to log them into facebook first, fetch their “me” object to get their facebook ID and also get the access token returned from the login bit and pass it in to this call.

[import]uid: 199310 topic_id: 33506 reply_id: 133130[/import]

Ah! I was assuming the accessToken was from game minion user login, thanks! [import]uid: 64619 topic_id: 33506 reply_id: 133302[/import]

The Miracle Man strikes again! Spot on Rob.
Should I be worried about my job! :wink:

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

Nothing to worry about… :wink: [import]uid: 199310 topic_id: 33506 reply_id: 133219[/import]

Ah! I was assuming the accessToken was from game minion user login, thanks! [import]uid: 64619 topic_id: 33506 reply_id: 133302[/import]

I’ve just started implementing game minion and have hit a problem with Facebook login.

I have initiated GM with my access and secret keys. I can register new users and login using the API login.

I have logged into Facebook and grabbed the access token and ID, but get a login error when using these credentials with the gm:loginFacebook function.

Any ideas what could be going wrong? I have also entered my Facebook app id and secret key on the GM developer portal. [import]uid: 93133 topic_id: 33506 reply_id: 133843[/import]

That’s the wall I’ve run into as well. I can create users, update leaderboards etc on a game minion user but I’m not able to login with a facebook user. I am using the corona sdk facebook lib to authenticate with facebook but unable to login. I am getting a 404 response from game minion api, “Not Found”. [import]uid: 64619 topic_id: 33506 reply_id: 133892[/import]

@jason.bradley, we are looking into this, but I assume its the same issue.
We will be rolling out a way to connect both FG and GM accounts.

In the mean time, please send me the email account of the user and I will looking into this.

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

@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]

I’ve just started implementing game minion and have hit a problem with Facebook login.

I have initiated GM with my access and secret keys. I can register new users and login using the API login.

I have logged into Facebook and grabbed the access token and ID, but get a login error when using these credentials with the gm:loginFacebook function.

Any ideas what could be going wrong? I have also entered my Facebook app id and secret key on the GM developer portal. [import]uid: 93133 topic_id: 33506 reply_id: 133843[/import]

That’s the wall I’ve run into as well. I can create users, update leaderboards etc on a game minion user but I’m not able to login with a facebook user. I am using the corona sdk facebook lib to authenticate with facebook but unable to login. I am getting a 404 response from game minion api, “Not Found”. [import]uid: 64619 topic_id: 33506 reply_id: 133892[/import]

@jason.bradley, we are looking into this, but I assume its the same issue.
We will be rolling out a way to connect both FG and GM accounts.

In the mean time, please send me the email account of the user and I will looking into this.

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