Facebook scripting in Python
I just came across this blog that shows an easy way to play with facebook api using python. It is
But unfortunately I am getting error while trying with this code:
micro api client that implements the client-side authentication flow and has a few utility functions for accessing the graph api and fql.
But unfortunately I am getting error while trying with this code:
from urllib import urlretrieve
import imp
urlretrieve('https://raw.github.com/gist/1194123/fbconsole.py', '.fbconsole.py')
fb = imp.load_source('fb', '.fbconsole.py')
fb.AUTH_SCOPE = ['stream_publish']
fb.authenticate()
status = fb.graph_post("/me/feed", {"message":"Hello this is from python"})
Comments