我们正在参加Facebook Credits beta.在批准实时应用程序后,我们按照API页面上的步骤设置了演示应用程序:
http://developers.facebook.com/docs/creditsapi
但是,每当我们使用“使用Facebook付款”按钮提交时,我们都将收到错误1383008(“您正在使用的应用程序没有响应”).
我们已经检查了服务器日志,并确认所有必需的参数都已按预期传递给http://apps.facebook.com/ajax/flows/?__a=1.我们还确认了回调URL(演示应用文件中的callback.php)从未被点击过.
为了确保这不是新JavaScript SDK的兼容性问题,我们使用旧JS SDK设置了演示,并遇到了相同的错误.
是否有其他人在运行演示应用程序(使用任一版本的SDK)时遇到此问题?如果无法运行演示,则无法在实时应用程序中实现此功能.
这是发送到服务器的请求(已删除应用ID):
deadbeef=2386512837&app_id=OUR_APP_ID&api_key&receiver=0&order_info=%7B%22title%22%3A%22BFF%20Locket%22%2C%22description%22%3A%22This%20is%20a%20BFF%20Locket...%22%2C%22price%22%3A%2210%22%2C%22image_url%22%3A%22http%3A%2F%2Fwww.facebook.com%2Fimages%2Fgifts%2F21.png%22%2C%22product_url%22%3A%22http%3A%2F%2Fwww.facebook.com%2Fimages%2Fgifts%2F21.png%22%7D&place=app&credits_purchase=false&flow_type=BuyItem&__d=1&post_form_id=57484628313c8345bd4e904f684e43e5&fb_dtsg=1GSvy&lsd&post_form_id_source=AsyncRequest
这是返回的响应:
for (;;);{"error":0,"errorSummary":"","errorDescription":"","errorIsWarning":false,"silentError":0,"payload":{"secure":false,"handler":"","title":"Application Error","userData":{"fbpayments_error":"{\"error_code\":1383008,\"error_message\":{}}"},"body":"<div class=\"pam uiBoxRed\">The application you are using is not responding.<\/div>","buttonsMessage":null,"buttons":"ok"}}
解决方法:
我们已经更新了Facebook Credits API sample application和documentation.如果仍然有问题,请发布您的前端代码以及回调,我们可以看看.