您的位置:首页 > 其它

How To: Post A Message On The User Wall Using Facebook Graph API

2012-03-07 20:04 483 查看
From: http://www.masteringapi.com/tutorials/how-to-post-a-message-on-the-user-wall-using-facebook-graph-api/33/

This is a quick post to demonstrate how to post a status message on the user wall using the Facebook Graph API. First of all, you need the
publish_stream
extended permission
to perform this action.

Using the PHP-SDK



Posting a message and a link

In the above example we posted a message and a link using the PHP-SDK.

Using the JavaScript-SDK

This is an example of posting a message using the JavaScript SDK taken from the
FB.api
documentation
:

Notes

Please note that you can still post to a user wall even if the user is not connected to your application and without
offline_access
permission just by knowing the user id:


publish_stream:
Enables your application to post content, comments, and likes to a user’s stream and to the streams of the user’s friends. With this permission, you can publish content to a user’s feed at any time, without requiring
offline_access
. However, please note that Facebook recommends a user-initiated sharing model.


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: