from facebook docs it says:
“You can post a score or a user by issuing an HTTP POST request to /USER_ID/scores with the app access_token as long as you have the publish_actions permission.”
well i have publish_actions permission and i’m trying the following code but it doesn’t work…
require('php-sdk/src/facebook.php');
$facebook = new Facebook(array(
'appId' => '123546321654654654654',
'secret' => 'd9132156afasdfadsfsdfewfg79f5f16d0',
'cookie' => true
));
$attachment = array('score' => 1005);
$postscore = $facebook->api('/12345612/score/','POST',$attachment);
You need to send your app access token in the attachment array. So simply update your array attachment to