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

  • Home
  • SEARCH
  • 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 7793267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T22:25:56+00:00 2026-06-01T22:25:56+00:00

I am using the Javascript SDK to post score to FB but it is

  • 0

I am using the Javascript SDK to post score to FB but it is giving me error ({error:{message:”(#15) This method must be called with an app access_token.”, type:”OAuthException”, code:15}}) :

I am using accessToken coming from following:

    FB.getLoginStatus(function(response) {
      if (response.status === 'connected') {
        // the user is logged in and has authenticated your
        // app, and response.authResponse supplies
        // the user's ID, a valid access token, a signed
        // request, and the time the access token 
        // and signed request each expire
        uid = response.authResponse.userID;
        accessToken = response.authResponse.accessToken;

The function i am using to post score is following:

    FB.api("uid/scores", 'post', {score: scoredata, access_token: accessToken },
            function(response) 
        {
           if (!response || response.error) {
              console.error(response);
           } else {
              console.log(response);
           }
        });

Can anyone please give idea since fb is missing docs for JAvascript specially.

Jacob

  • 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-06-01T22:25:59+00:00Added an answer on June 1, 2026 at 10:25 pm

    It’s because of fact that scores should be posted as application not as users.

    What you trying to do should be done using Application access_token and from server-side (not JavaScript in browser) so your application secret will not be revealed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using facebook javascript SDK to post comment on facebook and using this
Using JavaScript SDK, it is possible to wall post with user's consent. Since It
How would I expose an Objective-C method within JavaScript when using the iPhone SDK
How can I post to a user's wall using Javascript SDK?
I have created application in Facebook. By using Facebook Javascript SDk, I posted message
I’m using Facebook’s JavaScript SDK to do something like FB.api('/1234567890/events', 'POST', { name: My
I'm using the javascript SDK to fire the send method of fb.ui. It works
using Facebook Javascript SDK (since FBml doesn't work anymore), posting to a wall using
We are using Facebook JavaScript SDK to authenticate our Facebook application. The application is
I am currently using the Facebook Javascript SDK and the Facebook C# SDK (soley

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.