Reputation: 69
My problem is, while i post score using facebook php sdk it alwasys give error as Unsupported method, post.
Here is the code I use:
$app_AccessToken = $obj_facebook->getAccessToken();
$obj_facebook->api('/100003470602309/scores/', 'post ', array('access_token' => $app_AccessToken, 'score' => '154125'));
Upvotes: 1
Views: 421
Reputation: 1073
use some thing like
$obj_facebook->api('/me/scores', 'POST', array( 'score' => 100, 'access_token' => $obj_facebook->getAppId().'|'.$obj_facebook->getApiSecret() ));
try this :p may be it will help
Upvotes: 2
Reputation: 45124
It could be due to access token. Make sure you have an app access token.
Upvotes: 0