tags:

views:

12389

answers:

9

Hi,

I have a blog site written in php and it posts new blog posts to twitter and a blog ping automatically under the hood using simple http post requests passed using php curl.

I have a facebook page for the blog site and want the updates to be posted to the wall on the page, is there a simple way to do this?

What I really want is a url and set of params to parcel up as an http post request.

Note that this is to post to the wall on a new style page not a profile.

Thanks in advance.

+3  A: 

http://wiki.developers.facebook.com/index.php/Feed.publishTemplatizedAction

Frank Farmer
"Facebook has discontinued support for this method"
balexandre
Yep. Changed in april. Now you'd probably POST a message to http://graph.facebook.com/<pageid>/feed http://developers.facebook.com/docs/reference/api/page
Frank Farmer
A: 

i can't comment on the answer or the comments (i don't have enough points) so i'll add an answer (if i can).

yes i've looked at the facebook dev sites and googled for several hours before posting here.

the method proposed in the first answer involves writing a facebook application, i don't want to write a facebook application i just want to post to a facebook wall from outside facebook.

i want a function that runs on my webserver and passes whatever authentication data is required as part of the post request.

I willing to bet you can't
Mark Rogers
+2  A: 

You can not post to Facebook walls automatically without creating an application and using the templated feed publisher as Frank pointed out.

The only thing you can do is use the 'share' widgets that they provide, which require user interaction.

Darryl E. Clarke
A: 

If you're blog outputs an rss feed you can use Facebook's "RSS Graffiti" application to post that feed to your wall in FB. There are other RSS facebook apps as well just search facebook for rss apps...

Ricky
A: 

I think you can issue this request:

http://facebook.com/writewall?user=username&amp;password=password&amp;message=message

It worked for me!

Maria
The question is on how to post messages to any wall, not your own
Blizz
A: 

what do you put in the places of username and password. it won't work for me.

Dr QI
A: 

This did not work for me.

Satya
A: 
$attachment = array('message' => 'this is my message',
                'name' => 'This is my demo Facebook application!',
                'caption' => "Caption of the Post",
                'link' => 'http://mylink.com',
                'description' => 'this is a description',
                'picture' => 'http://mysite.com/pic.gif',
                'actions' => array(array('name' => 'Get Search',
                                  'link' => 'http://www.google.com'))
                );


    $result = $facebook->api('/me/feed/',
                                'post',
                                $attachment);

the above code will Post the message on to your wall... and if you want to post onto your friends or others wall then replace me with the Facebook User Id of that user..for further information look out the API Documentation.

Harish Kurup
A: 

hmm.. i suceeded in postin to wall but all i want is to show frrd dialog..where user can add additional message to the wall post..with atachments..

HErcules