Facebook credits callback detecting request

292 views Asked by At

Is there a way to detect a callback request is from facebook or not as it seems like the request is not ajax.

1

There are 1 answers

2
DMCS On BEST ANSWER

From: http://developers.facebook.com/docs/credits/callback/

You can verify that the callback is being called by Facebook by decoding the signed_request.

{
   "signed_request":"PfjakldsFWWs...",
   "buyer":"221159",
   "receiver":"221159",
   "order_id":"9006136047935",
   "order_info":""fbhat"",
   "method":"payments_get_items"
}