Facebook Question

Ok so I have my app asking for permissions and getting all the information about the user, email, username, friends etc…

My question is this…How can I find out if they are playing my App? [import]uid: 8697 topic_id: 29353 reply_id: 329353[/import]

Hi,

I assume you mean that you want to check if they have “installed” your game, in the Facebook sense of the word (I.e. they have installed your app and authenticated with Facebook).

In your Facebook request you need to include the “installed” field.

[lua]facebook.request( “me/friends?fields=name,installed,picture” )[/lua]

The response is fairly odd though, essentially what you get back is all of the logged in users friends, however with friends that have the game installed, there will be an additional field called “installed” which will be set to true.

So you’ll have to parse all of returned data and pick out the ones with installed set to true.

Hope that helps,

Ali [import]uid: 10499 topic_id: 29353 reply_id: 117975[/import]

@ ahamidi

Awesome, exactly what I was looking for, I have it all implemented now.

Thank you. :slight_smile: [import]uid: 8697 topic_id: 29353 reply_id: 118118[/import]