Nice! mic
2011/9/7 Massimo Di Pierro <[email protected]>: > Please send me a patch. Make sure it includes is own license (MIT, BSD > or LGPL). > > On Sep 6, 6:07 pm, Bruno Rocha <[email protected]> wrote: >> There is no dependency, I just put fbconsole.py in my /modules and did >> something like this: >> >> import fbconsole >> fbconsole.APP_ID = CLIENT_ID # comes from facebook auth, (Michelle's >> code) >> fbconsole.SERVER_PORT = 8000 >> fbconsole.REDIRECT_URI = 'http://localhost:%s/tutor'% >> fbconsole.SERVER_PORT >> fbconsole.ACCESS_TOKEN = session.token['access_token'] # I am already >> using facebook for auth, no need to Auth again. >> fbconsole.LOCAL_FILE = '%s_fb_access_token' % auth.user_id >> fbconsole.AUTH_SCOPE = >> ['publish_stream,create_event,user_events,user_photos'] >> photo = fbconsole.graph_post("/me/photos", {"message":"My Photo", >> "source":open("/home/rochacbruno/myphoto.png")}) >> >> I think it is a good idea to have it in contrib!

