What access token should i use?
Posted
by
user548458
on Stack Overflow
See other posts from Stack Overflow
or by user548458
Published on 2012-06-24T08:57:15Z
Indexed on
2012/06/24
9:15 UTC
Read the original article
Hit count: 170
facebook-graph-api
I made a posting scores. It worked normaly sometimes. But, now I cant post any score.
If I use user accessToken:
string path = meID + "/scores";
var parameters = new Dictionary<string, object> (){
{ "score", score.ToString () },
{ "access_token", accessToken }
};
facebook.post (path, parameters, ( error, obj ) =>
I get error:
{"error":{"message":"(#15) This method must be called with an app access_token.",
"type":"OAuthException", "code":15}}
If I use an app access token:
string path = meID + "/scores";
var parameters = new Dictionary<string, object> () {
{ "score", score.ToString () },
{ "access_token", appAccessToken }
};
facebook.post (path, parameters, ( error, obj ) =>
I get other error:
{"error":{"message":"A user access token is required to request this resource.",
"type":"OAuthException", "code":102}}
Help me please, what am i doing wrong?
PS: I worked well recently, but now - dont. Cant explain it...
© Stack Overflow or respective owner