Skip to content Skip to sidebar Skip to footer

Django Callback On Facebook Credits

I would like to use Facebook Credits with my Django Application. In the Facebook Credits documentation, there is only a sample for the callback page in PHP (https://developers.face

Solution 1:

They send you a signed request which you need to parse. I'd suggest reading the rest of the facebook documentation if you're confused about what that means.

This guy has already done the php to python conversion for you: http://sunilarora.org/parsing-signedrequest-parameter-in-python-bas

Once you've parsed what they sent you, do exactly what they do in the php script. Then, you send json back to them. At the end of your view:

deffb_credits_callback(request):
    # parse with your parse function# handle requestreturn HttpResponse(json.dumps(data))

Post a Comment for "Django Callback On Facebook Credits"