- Home /
This post has been wikified, any user with enough reputation can edit it.
Question by
donydony2009 · Mar 06, 2015 at 06:59 PM ·
facebookapi
Facebook API gives 403 Forbidden error when trying to post scores
I am trying to make a test aplication to implement as much functionality of the facebook API in unity. I am trying to post scores right now and it gives 403 Forbidden error. Searching on Google it says to check permissions which I have. And to make sure to make sure that the Game is tagged as a game on facebook. Did that too.
Login method:
public void LoginToFacebook()
{
FB.Login("public_profile,email,user_friends,publish_actions,friends_games_activity,user_games_activity", LoginCallback);
}
And post score method:
public void postScore()
{
var query = new Dictionary<string, string>();
query["score"] = "" + 100;
FB.API("me/scores", Facebook.HttpMethod.POST, delegate(FBResult r) { print (r.Error); }, query);
}
Any help is apreciated.
Comment