Hi all, finally I almost finish what I studied and tryed for a month... if you remember, I was making that with the old sdk..and now, I almost finish to integrate facebook in PHP with the NEW SDK.
I integrate facebook to my project very easly and works perfectly and that is not a plugin! you have just to insert some file inside the folder of the app and works like a sharm!
why is better than a plugin?
-the plugin have to be updated if facebook change something.... in php is easier to fix a new update (you can do it, you don't have to wait)
- with the plugin, the user when accept the permission at start (with the pop-up, like every app) have to login again inside the app with some button and this is very annoying.
with my method ,when the user open my app, doesn't have to login again, so doesn't need extra login or some button.
-that should works with every platform that support AJAX object!, so should works with android etc...
- you don't have to make any complicate event or some loops to get the data, when the app start, your app will get 3 array builded for construct2 with:
-User profile (personal information (name,email....) with personal score and the position of the score)
-Hi-scores of you and your friends (users name, id, score, picture url)
-Achievements (you will get an array with the achievment locked and unlocked! ready to go), so that is very easy to show what achievement is locked or unlocked.
for this, just take one event to load the 3 array inside a construct2! and works very fast, because this is loaded before the app start.
and what you can POST?:
-update the user score.
-send notification to a user NEW
-unlock the achievement (with one event, you can unlock all, just change a parameter).
I didn't insert a picture (in my server) for the achievements, but works perfect
-publish a objects inside the games feed, like in candy crush, when your user finish a level, you can publish the feeds with a personal data! like score or others!
the score is from construct2, the picture of the level is just an example... and you can make your personal action!
-post in the user profile
so, now I have to make a documentation, who is interested to this post here (with some suggestion or question) I will send you a PM and I will update this post when everything is ready