python - Django Callback on Facebook Credits -



python - Django Callback on Facebook Credits -

i utilize facebook credits django application.

in facebook credits documentation, there sample callback page in php (https://developers.facebook.com/blog/post/489/).

however, develop callback in django application. created view callback, have no thought facebook sends me , how should parse it.

i suppose kind of post http request parameters should parse, how?

thank input.

they send signed request need parse. i'd suggest reading rest of facebook documentation if you're confused means.

this guy has done php python conversion you: http://sunilarora.org/parsing-signedrequest-parameter-in-python-bas

once you've parsed sent you, in php script. then, send json them. @ end of view:

def fb_credits_callback(request): # parse parse function # handle request homecoming httpresponse(json.dumps(data))

python django facebook-graph-api callback facebook-credits

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -