#!/usr/bin/env python
from urllib import urlretrieve
import imp
urlretrieve('https://raw.github.com/gist/1194123/fbconsole.py', '.fbconsole.py')
fb = imp.load_source('fb', '.fbconsole.py')


# Your script goes below here

fb.AUTH_SCOPE = ['publish_stream']
fb.authenticate()
print "Hello", fb.graph('/me')['name']
status = raw_input("Update your status: ")
fb.graph_post('/me/feed', {'message': status})
print "your status has been updated"