user223638
user223638

Reputation: 1

Publishing a stream using the Facebook API in PHP?

I am currently developing a facebook app and I would like to now how to publish to the users wall... Thanks alot

Upvotes: 0

Views: 426

Answers (1)

jlb
jlb

Reputation: 20010

If your app is FBML i would suggest using the FBJS call:

Facebook.streamPublish

This is not a php solution but it is more reliable as it doesn't require the current user to have accepted facebook stream permissions for your app.

For iFrame apps/ FB Connect the following is available FB.Connect.streamPublish

Otherwise you can use the Stream.publish rest api call available in:

$facebook->api_client->stream_publish

although this requires accepted app permissions

Upvotes: 1

Related Questions