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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T08:44:55+00:00 2026-06-12T08:44:55+00:00

I am using the JavaScript SDK. I have an application that has publishing permissions

  • 0

I am using the JavaScript SDK. I have an application that has publishing permissions and after certain actions are taken a post will be made to the logged in users wall like so:

FB.getLoginStatus(function (response) {
    //we are authorized
    if (response.status == "connected") {
        var name = "Post name";
        var body = "Post body";
        var caption = "The caption";
        var description = "The description";
        var link = "http://www.facebook.com/mypage";
        FB.api('/me/feed', 'post', { message:body,caption:caption,link:link,name:name,description:description}, function (response) {
       console.log(response);
        });
    }
});

What I would like to able to do is post to a specific Facebook Page after a post is successfully made to the users page. Is there a way to securely pre-authorize an application to do that? Is this possible with the JavaScript SDK, or at all? I did some looking around and havn’t found a definite answer. I’m looking at the FB documentation but find it to be a bit spotty in places. Could anyone tell me if this is possible? Any help or advice would be very much appreciated, thanks much!

Edit: my mistake, I should have supplied more info. Here is what I am trying to do:

var body = "The body";
var caption = "The caption";
FB.api("mypageid/feed", "post", { message: body, caption: caption }, function (response) {
    console.log(response);
});

I am getting the error "this api call requires a valid app_id" however my page id is valid. When I call FB.init() I am passing my app id and it works for the first post to the logged in users feed.

Edit:

I have made the change the Igy suggested. Now I am getting the error:””(#200) The user has not granted the application the permission to automatically publish feed stories””

Now, as I said I am trying to post to a Facebook page. I have logged into the account that owns the page and I have gone to the app and clicked allow for the following permissions:

email,user_photos,publish_stream

When I am logged in with the account that owns the page and check my status:

FB.getLoginStatus(function (response) {
    console.log(response);
});

I get “connected”. Am I doing this incorrectly? Do I have to do more than just authorize with the account that owns the page? Is there a way to set allow permissions for a page? I did a little digging but couldn’t find an answer.

Edit :
Ok, now what is happening is IF I am logged into the account that owns the page the post will be made to the page. If I am logged in with another account I get an id back as a response to the API call but it doesn’t seem to be a valid object id. For instance I just got this back:

id: 499973616681852_507724422573438

if I go to http://graph.facebook.com/499973616681852_507724422573438

I get an “unsupported get request" graph api exception, which suggest that id returned is not valid. I feel like I am close here but I am missing something. Any advice would be appreciated, thanks again to all who responded.

edit: removed the link to the page,that was left in unintentionally.

  • 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-12T08:44:56+00:00Added an answer on June 12, 2026 at 8:44 am

    It’s good practice to try getting it to work in the graph explorer first. Note that on the top right you can select which application to run under. I just made a post to your page using /PAGE_ID/feed and it worked fine. You’ll need the publish_stream permission. If you can get it to work in the graph explorer you’ll know it’s possible to get it to work in the JS SDK and you’ve just made some sort of syntax error.

    Also note there is an open high priority bug report on some calls to the graph returning “unsupported get request”. So even though the id you are getting back is invalid, check the page itself to see if the posts are appearing.

    I also noticed that the user itself is getting the same error. Try https://graph.facebook.com/507724422573438. Is this a test user for your app? Might be worth trying this as a real user if so.

    Since you want to post to the page as the page itself, you’ll need to authenticate as a page and then use that access token when making graph api calls. I am not sure if you’ll be able to then use this access token for any user, or only users that are allowed to manage the page. It would be best for you to use the graph explorer to do some experiments to find out.

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

Sidebar

Related Questions

I have built a Facebook app using the Javascript SDK that has been up
I have been using the Facebook Javascript SDK to post content from a CMS
I have a mobile web application that uses the Javascript SDK to connect to
I have created application in Facebook. By using Facebook Javascript SDk, I posted message
I have just put implemented Facebook connect on my web-site using the JavaScript SDK.
Using JavaScript SDK, it is possible to wall post with user's consent. Since It
I'm developing an HTML app that integrates Facebook Graph API using Javascript SDK. Facebook
We are using Facebook JavaScript SDK to authenticate our Facebook application. The application is
I have found that after a certain amount of time, the Facebook session that
I have a small doubt , I am using facebook javascript sdk to authenticate

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.