Is there an easy way to update my Facebook status ("What's on your mind?" box) using Python code ?
Asked
Active
Viewed 3,964 times
2 Answers
12
Check out PyFacebook which has a tutorial, from... Facebook!
Blatantly ripped from the documentation on that page and untested, you'd probably do something like this:
import facebook
fb = facebook.Facebook('YOUR_API_KEY', 'YOUR_SECRET_KEY')
fb.auth.createToken()
fb.login()
fb.auth.getSession()
fb.set_status('Checking out StackOverFlow.com')

easel
- 3,982
- 26
- 28
-
Well, in my case fb object doesn't have set_status method. Why is that? Can you please throw some light on this? – aatifh Dec 15 '09 at 11:43
-
1same here.. fb foesnt have a object "set_status" – shadyabhi Mar 12 '10 at 21:54
-
If your Facebook object doesn’t have a `set_status` method, open another question asking about it. – Paul D. Waite Sep 21 '10 at 17:07
3
The Facebook Developers site for Python is a great place to start. You should be able to accomplish this with a REST call.

Nick Berardi
- 54,393
- 15
- 113
- 135
-
2Hey!! This link seems to be expired .. Please suggest a new one or good source like that! – Mojo_Jojo May 11 '11 at 14:34