sudeep777
sudeep777

Reputation: 69

Unsupported method, post while using facebook score api

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

Answers (2)

anstrangel0ver
anstrangel0ver

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

Techie
Techie

Reputation: 45124

It could be due to access token. Make sure you have an app access token.

Upvotes: 0

Related Questions