Facebook认可回调检测请求

时间:2012-01-13 19:28:20

标签: php facebook callback facebook-credits

有没有办法检测来自facebook的回调请求,因为看起来请求不是ajax。

1 个答案:

答案 0 :(得分:1)

来自:http://developers.facebook.com/docs/credits/callback/

您可以通过解码signed_request来验证Facebook是否正在调用回调。

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