user41767
user41767

Reputation: 1217

Update Facebooks Status using Python

Is there an easy way to update my Facebook status ("What's on your mind?" box) using Python code ?

Upvotes: 3

Views: 3976

Answers (2)

easel
easel

Reputation: 4048

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')

Upvotes: 12

Nick Berardi
Nick Berardi

Reputation: 54854

The Facebook Developers site for Python is a great place to start. You should be able to accomplish this with a REST call.

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

Upvotes: 3

Related Questions