I almost finish my app for facebook... why this post? well, I was trying different plugin of facebook (some works, some doesn't works...)
So, I made my script to get perfect works my app with facebook with AJAX plugin... and sometime I see some people need help to integrate their app with facebook...
When I publiush the app, I can start to make a manual with a project to learn how to integrate your game with the last PHP SDK of facebook.
how works? when you have the files in php, you need to change just the ID and secret code of your app, after that, the script will work perfect just with a standard plugin AJAX of C2, so, you don't need a new plugin, and that system will works for different device...
for now, I achieved this:
1 - get the first pop up with a specific permission (aboutme, user friends, score....) etc, when you agree, at the second login, you don't need to login again (as the plugin) but the game already load everything without any extra login.
1 - your user info (name, ID, token...etc).
2 - your score of that app.
3 - array of the user use the same app (array for c2 ready to use)
4 - hi-score of the app (you, and your friends, again, the php generate a correct c2array with: score, id, username, url of avatar), so, very easy to load into the game.
5 - your unlocked achievement (get in correct array for c2, ready to load).
1- post your score (if the new score of the game is > of the old score, this is checked by a new request in php file).
2 - unlock a new achievement.
3 - post in the timeline of the user.
for now, this is what I made, and everything works fine, in the near future, I will made:
1- get a friendlist who doesn't use the app ( get url of avatar, name, and the token to send some request)
2 - send request to a friend, or multiple friends.
3 - send request like "life,coin...etc" and when the user who has the request accept it, when the game is loaded, add the amount/string in the game.
who is interested to this?