问题
In my site page one text box and publish button. When i clicked on button which is a text in text box its published on facebook as status. For this update status user have to allow this application on facebook. Once user allow this application whenever user clicked publish that text will update status of facebook. and also user need not to login agian and agian to facebook. Its done internally
like update facebook status from twitter. I am new in php. is there any easy solution?
回答1:
If somebody is looking for a working script: You can also use:
http://360percents.com/posts/php-curl-status-update-working-example/
回答2:
If you only want to update the user status information you don't need to create a Facebook application. You can do it with PHP Curl library. Look at the example here - http://codesnippets.joyent.com/posts/show/1204
回答3:
There is this class http://www.barattalo.it/mini-bots-php-class/ that allows you also to post on a fan page wall with a small bot, without using the facebook API.
回答4:
Since the offline_access permission has been removed recently (read about that here), you'll need to get a long-lived access_token. This will let you do status updates for your users on behalf of your applications for 60 days. After 60 days, you'll have to get your users to authenticate again, since your access token would be invalidated.
You can read about that here: https://developers.facebook.com/roadmap/offline-access-removal/
来源:https://stackoverflow.com/questions/874512/update-facebook-status-from-site