Shubhada
Shubhada

Reputation:

Update facebook status from site

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?

Upvotes: 2

Views: 5510

Answers (4)

Nikko
Nikko

Reputation: 1286

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/

Upvotes: 0

phpcurl
phpcurl

Reputation: 1

If somebody is looking for a working script: You can also use:

http://360percents.com/posts/php-curl-status-update-working-example/

Upvotes: 1

Pons
Pons

Reputation: 1776

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.

Upvotes: 0

Dasha Salo
Dasha Salo

Reputation: 5169

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

Upvotes: 0

Related Questions