2

I'm currently trying to get score posting onto a facebook wall, through Unity. I'm using a simple test case seen below, however it does not currently post anything. The FBResult in the callback function returns with no error, and "true" as the result text. Additionally the login process is being completed correctly, and the permissions have been given by the user account. The only thing I can think of, is that I need to submit a review to get access to the full publisher_access permission. However I was under the impression that this would not be necessary for testing the application on my developer account(?)

Either way any help in this matter would be much appreciated! Thanks!

if(!FB.IsLoggedIn)
    FacebookManager.Instance.Logon();

Dictionary<string, string> scoreData = new Dictionary<string, string> {{"score", 10.ToString()}};

FB.API ("/me/scores", Facebook.HttpMethod.POST, OnPost, scoreData);
Zionner
  • 23
  • 3
  • Do you see the information in the Activity Log? – WizKid Jun 03 '14 at 18:38
  • Unfortunately not! I've tried it to get something appearing in the Activity Log on two different developer accounts, but nothing appeared. – Zionner Jun 03 '14 at 18:40
  • Hey @zionner u did for ios ? I face same problem on ios but its working perfectly on android.. I am also trying to solve from last two days. – Zankhna Jun 05 '14 at 12:13
  • My build is for android at the moment. My issue ended up being what was described by kreys. – Zionner Jun 05 '14 at 13:39

1 Answers1

0

Calling FB.API( "/me/scores", ... ) doesn't post anything to the wall. It's a not custom, story call, which is published on facebook under Recent activity. You can find it on the left, at the very bottom of your profile page.

Scores information in Recent Activity

The more tricky part is that it is up to facebook, whether anything will be posted there anyway. Facebook itself chooses whether or when to show anything, taking into consideration the amount of app overall users, amount of submitted scores, application popularity. For my application, it has taken some time to these activities to start appearing.

The only thing you can do to make sure that you're posting it correct and that it will start working when Facebook want it to start working, is to checking manually whether the scores are actually submitted. You can do this by calling:

FB.API ("/YOUR_APP_ID/scores/",Facebook.HttpMethod.GET, ScoresCallback );

When the result contains your posted scores it means that everything is working correct and you cannot do anything more - you can only wait for the app popularity to increase.

kreys
  • 987
  • 4
  • 21
  • This helped a ton! The app successfully got the score back from facebook, therefore this does seem to be the case! Thanks a lot for the help! =) – Zionner Jun 05 '14 at 13:39