Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7182777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:50:33+00:00 2026-05-28T17:50:33+00:00

from facebook docs it says: You can post a score or a user by

  • 0

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);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T17:50:34+00:00Added an answer on May 28, 2026 at 5:50 pm

    You need to send your app access token in the attachment array. So simply update your array attachment to

    $attachment = array( 'score' => 1005, 'access_token' => $facebook->getAppId().'|'.$facebook->getApiSecret() )
    $postscore = $facebook->api('/12345612/score/','POST',$attachment);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

http://developers.facebook.com/docs/reference/plugins/like To include the popular a [Like] button from facebook, I must use the
I receive this date format from facebook and google docs: 2011-02-25T10:55:25+0000 How can I
I would like a user to be able to post/share to their facebook from
This is the code from the canvas tutorial http://developers.facebook.com/docs/appsonfacebook/tutorial/ This gets the authorization code,
I'm intending to create a flash app that pulls images from facebook and displays
I'm attempting to use TTLauncherView from the Facebook Three20 project in my app, but
I am using http://lite.facebook.com And i want to get some data from my account.
I try to follow the facebook-android tutorial from here: https://developers.facebook.com/docs/mobile/android/build/#sample I am working in
I'm posting some info to a user's wall via Facebook Connect (from my external
My app sits outside facebook canvas. The facebook request dialog 2.0 only redirects to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.