@pedroluis5 after my weekly experience I can say, that is not possible to make leaderboards for each level of the game based on Scores API by Facebook But you can make some equivalent of engagement by building Achievements (https://developers.facebook.com/docs/howtos/achievements/) for every level, when it's fully completed (if maximum&limited points have been reached). I suppose, that is possible such solution, for now
The postPhoto() works fine inside the player but not with the exported app. I always get a com.facebook.sdk error 5 through the onRequestError
I reset the facebook sdk config in xcode several times but it did not change anything. I also tried to remove the FacebookDisplayName pref in my *.plist.
@ar2rsawseen tks for help ^:)^ . I remove FacebookDisplayName from the .plist and now work. I can post and get score of my user. Now i will try to get score of my friends..
@somezombiegm is your app approved properly on the fb website? If not thenyou might have to add your friends as testers until it is?
Plus if the id is the id of the game then it may only give you a list of friends who have installed the game - not a list of friends of yours...
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
Thanks for the quick response, I couldn't answer sooner cause my internet went down.
@ar2rsawseen that is my score. i want to find a way to get my friends and my own score.
@SinisterSoft My app is not approved, I added friends as testers and administrators. On the id I tried my app's id and my account's id and got the same results always.
I have it working fine on Android - just tested again - scores are coming through for me.
My app is approved though.
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
If you use facebook:graphRequest("me/friends") then you will receive your friends that are using your app. If no friend uses your app then it will return an empty list. It is correct, you can not get all friends.
Well, authorize works for me just fine. I was trying the login method because I wanted to see if I could get my friends data
facebook:graphRequest("me/friends")
but it always prints
{"data":[]}
If a friend and I both open the game and login to facebook via facebook:authorize... shouldn't the friends request method print something other than empty data? because we would be friends who use the same app/game.
@ar2rsawseen Old plugin should still work, I think it could get friends data just fine, I might be doing something wrong ... Or maybe I should still look for the new plugin elsewhere?
what I mean is that old plugin uses authorize and does not have a login methods while new plugin uses login method and does not have an authorize method
so if in your code authorize method exists and login method does not exist, it means you are using old facebook plugin.
new one should be in your Gideros installation directory/All Plugins/Facebook/bin/Android for Android and Gideros installation directory/All Plugins\Facebook\source\iOS for ios
@ar2rsawseen I see the libfacebook.so files, those are the ones I am using. And I have the latest version of Gideros. The authorize method still works and the login method doesn't.
So I guess the plugin on that address should be the old one then... In my case at least
Comments
My game will have levels and I wanted to post scores for each level of the game ... like candy cruch.
https://play.google.com/store/apps/developer?id=My+name+is+Originality
I am facing a problem similar to this one, but only with the exported project: The postPhoto() works fine inside the player but not with the exported app.
I always get a
com.facebook.sdk error 5
through the onRequestError
I reset the facebook sdk config in xcode several times but it did not change anything.
I also tried to remove the FacebookDisplayName pref in my *.plist.
@ar2rsawseen, What do you think about it?
Thanks!
https://github.com/ar2rsawseen/GiderosFacebookAndroidPlugin
It is suggested to move to the one provided with Gideros in All Plugins folder
I tested again the same code:
Plus if the id is the id of the game then it may only give you a list of friends who have installed the game - not a list of friends of yours...
https://deluxepixel.com
@ar2rsawseen that is my score. i want to find a way to get my friends and my own score.
@SinisterSoft My app is not approved, I added friends as testers and administrators. On the id I tried my app's id and my account's id and got the same results always.
My app is approved though.
https://deluxepixel.com
I have attached my social.lua file
attempt to call method 'login' (a nil value)
None of the other facebook methods I use have shown that error.
https://github.com/gideros/giderosplugins/tree/master/Facebook
This is the last Facebook example in the github:
https://github.com/gideros/giderosplugins/blob/master/Facebook/examples/GiderosFacebook/main.lua
but it seems to use facebook:login("352852401492555", {"public_profile", "user_friends", "publish_actions"})
You should update your Facebook plugin to this one.
old plugin uses authorize and does not have a login methods
while new plugin uses login method and does not have an authorize method
so if in your code authorize method exists and login method does not exist, it means you are using old facebook plugin.
new one should be in your Gideros installation directory/All Plugins/Facebook/bin/Android for Android
and Gideros installation directory/All Plugins\Facebook\source\iOS for ios
So I guess the plugin on that address should be the old one then... In my case at least
@simwhi ok.
@ar2rsawseen I uninstalled and reinstalled Gideros yesterday. I'm now gonna try a different SDK. But I can't manage to import it http://stackoverflow.com/questions/30077892/cant-import-a-project-to-eclipse-facebook-sdk
The one I am using right now is this one: https://github.com/gideros/giderosplugins/tree/master/Facebook/dependencies.