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 8552881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:31:35+00:00 2026-06-11T14:31:35+00:00

I have started dabbling with Facebook Graph api fairly recently. I have defined a

  • 0

I have started dabbling with Facebook Graph api fairly recently. I have defined a custom action ‘Start’ with the namespace ‘Test’, here is the code I use to for posting to Facebook.

FB.api('/me/Test:start',{ article : currentURL, message: $j('.subject-content h2 a').html()}, 'post', function(response) {

                                  if (!response || response.error) {
                                       console.log('Error  '+response.error.message);
                                  }
                                  else {
                                       console.log('Message was posted! (post id: ' + response.id + ")");
                                  }
                             });

for some reason this post fails the first time, but on subsequent tries, the post succeeds.

Here are the requests I captured from firebug.

1)

        access_token    xxxxx
        article https://testserver:8080/xxx
        callback    FB._callbacks.__gcb2
        message testpage
        method  post
        pretty  0
        sdk joey   

2)

    access_token    yyyy
    article https://testserver:8080/xxx
    callback    FB._callbacks.__gcb6
    message testpage
    method  post
    pretty  0
    sdk joey

As you can see the calls are exactly the same. The first time I get this response

/**/ FB._callbacks.__gcb4({"error":{"message":"An unknown error has occurred.","type":"OAuthException","code":1}});

I tried the same requests on the graph explorer as well, it works every single time.

Am I doing something wrong? Any help would be great.

Thanks in advance.

  • 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-11T14:31:36+00:00Added an answer on June 11, 2026 at 2:31 pm

    Fixed the issue. I was executing two post request simultaneously and this one would consistently keep failing, so I thought there was some problem with this request.

    FB.api('/me/Test:start .... );
    FB.api('/me/feed .... );
    

    I don’t know what the problem was but when I separated these two requests. Everything worked as expected.

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

Sidebar

Related Questions

Morning folks. Novice Rich here once again requesting assistance. I have just started dabbling
I have been dabbling in programming/scripting languages since I was a kid. I started
I have started to try out to use the new Search API, the demo
I have started implementing Subscriptions into my app but I cannot get the API
I have started using SqLite recently, so I am relatively new to it. I
I have started learning Twitter4j API and have got all credentials and tokens from
I have started developing facebook fanpages using HTML and CSS . The size of
i have started learning something about log4j as so far its working fine here
I have started an app with forever start app.js After that I typed, forever
I have started to test an application on Honeycomb and get the following error

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.