facebook

Facebook API and Python

Facebook API and Python Question: Does anyone know of a good platform agnostic example or library that does Facebook authentication and Graph API access via Python? The official Facebook Python SDK is tied to Google App Engine and Pyfacebook is deeply woven with Django. I just want to be able to mess around in terminal …

Total answers: 3

String to Dictionary in Python

String to Dictionary in Python Question: So I’ve spent way to much time on this, and it seems to me like it should be a simple fix. I’m trying to use Facebook’s Authentication to register users on my site, and I’m trying to do it server side. I’ve gotten to the point where I get …

Total answers: 3

How to decode base64 url in python?

How to decode base64 url in python? Question: For Facebook fbml Apps Facebook is sending in a signed_request parameter explained here: http://developers.facebook.com/docs/authentication/canvas They have given the php version of decoding this signed request: http://pastie.org/1054154 How to do the same in python? I tried base64 module but I am getting Incorrect padding error: >>> base64.urlsafe_b64decode(“eyJhbGdvcml0aG0iOiJITUFDLVNIQTI1NiIsImV4cGlyZXMiOjEyNzk3NDYwMDAsIm9hdXRoX3Rva2VuIjoiMjk1NjY2Njk1MDY0fDIuRXpwem5IRVhZWkJVZmhGQ2l4ZzYzUV9fLjM2MDAuMTI3OTc0NjAwMC0xMDAwMDA0ODMyNzI5MjN8LXJ6U1pnRVBJTktaYnJnX1VNUUNhRzlNdEY4LiIsInVzZXJfaWQiOiIxMDAwMDA0ODMyNzI5MjMifQ”) Traceback …

Total answers: 9

Programmatically getting an access token for using the Facebook Graph API

Programmatically getting an access token for using the Facebook Graph API Question: I am trying to put together a bash or python script to play with the facebook graph API. Using the API looks simple, but I’m having trouble setting up curl in my bash script to call authorize and access_token. Does anyone have a …

Total answers: 8