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
Post a Comment