简体   繁体   中英

Facebook post to wall

I have a Facebook Application Profile Page that I would like to create a custom script to perform wall posts on its wall. The reason I need this is because the existing Facebook "Post to Wall" functionality does not post the pictures I want it to.

What I need is a PHP webpage that allows me to do this:

Inputs:

  • App ID (App ID of the Facebook App that I am looking to post to wall)
  • API Key
  • App Secret
  • URL of Image to post
  • Message Body
  • URL of link

Output:

  • the post is made to the wall of the Facebook App Profile page, so that anyone who has "liked" the page can see it.

Any ideas, brainiacs?

That's all supported by the graph api, you'd need to submit to http://graph.facebook.com/app/feed with the post submitted as POST data (message), and of course an access token. If you use Facebook's own php library, there are functions which will implement the api calls using the curl library for you.

If you haven't used the graph api before, you should start reading their developer resources at http://developers.facebook.com/docs/reference/api

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM