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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:19:48+00:00 2026-06-01T10:19:48+00:00

Facebooks documentation is inadecuate, confusing at best. I have created an app, I have

  • 0

Facebooks documentation is inadecuate, confusing at best.

I have created an app, I have created a page for my business. I want to post updates on that page from my website as my App using the php-sdk.

I had this working perfectly with other pages/sites but nothing seems to be working any more.

I require offline_access, so I have followed the new endpoint as suggested in their docs.

Sequence of obtaining access_token with longer expiry:

https://www.facebook.com/dialog/oauth?client_id={my_app_id}&redirect_uri=http://my_url.redirect/fb/fb_token.php&scope=publish_stream,offline_access,user_status,read_stream,email,user_groups,manage_pages&response_type=token

returned [TOKEN_1]

https://graph.facebook.com/oauth/access_token?client_id={my_app_id}&client_secret={my_app_secret}&grant_type=fb_exchange_token&fb_exchange_token=[TOKEN_1]

returned [ACCESS_TOKEN]

https://graph.facebook.com/me/accounts?access_token=[ACCESS_TOKEN]

returns list of my pages and apps and their relevant ids and access codes. This is where I got my final [DEFINITIVE_ACCESS_TOKEN] && [PAGE_ID]

$facebook = new Facebook(array(
    'appId'  => {my_app_id},
    'secret' => {my_app_secret},
    'cookie' => false,
    'oauth'  => true
));

try {
    $attachment =  array(
        'access_token'  => [DEFINITIVE_ACCESS_TOKEN],
        'message'       => {my_message},
        'name'          => {my_title},
        'link'          => {my_url},
        'description'   => {my_description},
        'picture'       => {my_image_url},
     );
     $publishStream = $facebook->api('/[PAGE_ID]/feed', 'POST', $attachment);
 } catch (FacebookApiException $e) {
    die($e);
 }

This has returned an error message “OAuthException: (#200) Posts where the actor is a page cannot also include a target_id”

Where am I going wrong? Is there a tutorial of getting this to work perfectly anywhere or are we supposed to all be mind readers and guess how it is supposed to be done?

Thanks in advance for any help.

  • 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-01T10:19:50+00:00Added an answer on June 1, 2026 at 10:19 am

    I have noticed you are using offline access

    Offline access will no longer be available as of May 1, 2012.

    See this
    https://developers.facebook.com/roadmap/offline-access-removal/

    Make sure you have handling for this.

    ~K

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

Sidebar

Related Questions

I'm looking the documentation about publishing the message to wall from Facebook app http://developers.facebook.com/docs/reference/dialogs/feed/
I want to upload a foto from my android app to a facebook fan
i am starting on a php based facebook app. the documentation at facebooks developer
I have a page that is being shared on facebook a decent amount: https://www.sittingaround.com/
consulting the Facebook documentation on: http://developers.facebook.com/docs/reference/api/page/#tabs I saw that is possible change the tab
Facebook Connect and their Social Widgets documentation mention that you need to add an
I am using facebooks graph API to post actions to a users profile depending
According to the Facebook Documentation all I have to do is add a picture
Got a issue with Facebook Graph API. I want to read page notifications via
Hi i'm working on facebook api. i have gone through facebook documentation and coded

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.