开发者

how to send daily post on facebook?

hi please if anyone knows that tell me how to send daily post to application user's wall using facebook application. i need a PHP script how t开发者_Python百科o post message user wall.

thanks


This question is supposed to be asked on StackOverflow

However, the Facebook documentation has an php example for this. You can also use PHP SDK for this.

For publishing to user's wall your app need to have publish_stream Extended permission and then you can issue a POST request to http://graph.facebook.com/[username/userID]/feed

Like:

curl -F 'access_token=...' \
     -F 'message=Hello, Arjun. I like this new API.' \
     https://graph.facebook.com/arjun/feed


U could make a cron job that runs a php script to make it post to your facebook


You cannot post directly to the user's wall without first asking for the *publish_stream* permission during the app authorization process.

You can find more information on permissions here - http://developers.facebook.com/docs/authentication/permissions/

Also note that Facebook recommends a "user-initiated" sharing process. Which means, even if the user gives you the *publish_stream* permission, you'll probably get into trouble if you start spamming the user's wall every day without the user taking any significant action on your application.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜