开发者

Publish news feed through cron job

It is possible to publish news feed on user's wall through a cron job, if yes then how开发者_开发百科, what does facebook offer to do that?


Via cron job is possible, but you will need the offline_access extended permission which gives longer lived session keys.

These can be used to update the user's profile even when they are not online.


You should be able to do it if you have the oauth token for the user using the new graph api:

http://developers.facebook.com/docs/reference/api/status

See the 'publishing to facebook' section here: http://developers.facebook.com/docs/api which demonstrates how to use curl to do it.


Via cron job - no. Cron is server side tool. You can do it with JavaScript's setTimeout() function.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜