views:

5591

answers:

7

Hi,

I want to develop a bot which will update the status of a facebook account using php.

Please guide me on this

+1  A: 

Check this question http://stackoverflow.com/questions/874512/update-facebook-status-from-site

Shoban
+1  A: 

Google is your friend :)

http://fbcookbook.ofhas.in/2009/02/07/facebook-reveals-status-api-how-to-use-it/

Juri
hi, but where i can download this code and one more issue i want it to work like twitter oauth. I should provide my details once and then it should be able to update the status through my gtalk.Please guide
Guiding ... that way >>>>
stefanB
That link describes how to update status from within a facebook application. The OP is asking about a creating a chatbot in PHP.
Colin Pickard
also, there is such an application already available on facebook... http://www.facebook.com/apps/application.php?id=33855239494
Colin Pickard
A: 

You want to learn the Facebook Connect API.

http://wiki.developers.facebook.com/index.php/Facebook_Connect

Mike Heinz
+3  A: 

@Porkchop is correct, you will probably need the Facebook Connect API. To update a users status on Facebook, you should look at the Status.set API call.

For coding a googletalk bot in php there are some articles that should get you started:

But also consider using IMified, which does a lot of the work of creating and running chat bots for you.


If all you are interested in is a simple way to update your Facebook status from you Google Talk status, you probably don't need to go to all that work - just install the 'Google Talk Status Synchronizer' facebook application.

Colin Pickard
+1  A: 

This bot already exists: it connects to facebook, performs the login and then sets the status. You can find it here:

http://www.barattalo.it/2010/03/01/php-curl-bot-to-update-facebook-status/

Pons
A: 

Hi, Since you are coding in PHP, I recommend using Jaxl (Jabber XMPP Library). It supports bot authentication using X-FACEBOOK-PLATFORM and updating facebook status should be a one line task using the library. http://github.com/abhinavsingh/JAXL

Abhinav Singh
A: 

You could higher somebody to do it for cheap by outsourcing it, i mean thats what i do when i dont know code.

Best HD TV