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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:38:27+00:00 2026-05-26T17:38:27+00:00

I am trying to post a message to a user’s feed (wall). I’ve already

  • 0

I am trying to post a message to a user’s feed (wall).

I’ve already got the publish_stream permission and have the user’s id ($fbid) and access token ($access_token), however I am only able to post an empty message to the wall.

This is what the post looks like:

User Name

Like · Comment · 12 minutes ago via AppName

So basically all the content of the message is missing (everything in the $data variable).

This is the code I used:

include 'facebook.php'; 
$facebook = new Facebook(array(appId =>  $app_id,
                               secret => $app_secret,
                               cookie => true));

$data['post'] = array('access_token' => $access_token,
                      'message' => 'Sign up now',
                      'picture' => 'http://myurl.com/images/pic.jpg',
                      'link' => 'http://myurl.com/',
                      'caption' => 'Get early access to our app'); 

$post_id = $facebook->api('/'.$fbid.'/feed/', 'post', $data);

What am I missing? Why is $data content not displayed in the post?

  • 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-26T17:38:28+00:00Added an answer on May 26, 2026 at 5:38 pm

    The problem is with $data['post'] you are not sending correct data to the API.

    Change it to $data I am not really sure why you have the ‘post’ part in there for.

    If you need it in the format $data['post'] then change your API call to read

    $post_id = $facebook->api('/'.$fbid.'/feed/', 'post', $data['post']);
    

    See example at https://gist.github.com/3378724

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

Sidebar

Related Questions

Trying to post to a fan page, I get this: {error:{type:OAuthException,message:A user access token
I'm trying to post on user's wall with embed video. I have created app,
I'm trying to post a message on a page's wall as the page itself
I am trying to make a post on another user's wall using another user
Developing a WP7 app, and I'm trying to post something to the user's feed.
I'm trying to store a user's post into an access database through a web
I am trying to post a message to the users wall using a application
I am trying to post an apprequest to a user using the URL: https://graph.facebook.com/USER_ID/apprequests?message=’This
I am trying to post something on a facebook users feed and then afterwards
i'm trying to post an image to my users's facebook wall once they hit

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.