Facebook Credits 演示应用程序返回错误

发布于 2024-10-03 15:20:40 字数 1673 浏览 1 评论 0原文

我们正在参与 Facebook Credits 测试版。在我们的实时应用程序获得批准后,我们​​按照 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"}}

We are participating in the Facebook Credits beta. After approval of our live app, we followed the steps from the API page to set up the demo application:
http://developers.facebook.com/docs/creditsapi

However, whenever we submit with the "Pay with Facebook" button, we are getting back error 1383008 ("The application you are using is not responding").

We've checked the server logs and confirmed that all necessary params are passing to http://apps.facebook.com/ajax/flows/?__a=1 as expected. We've also confirmed that the callback URL (callback.php from the demo app files) is never being hit.

Just to be certain this isn't a compatibility issue with the new JavaScript SDK, we set up the demo using the old JS SDK and got the same error.

Has anyone else experienced this issue with running the demo application (using either version of the SDK)? If we can't get the demo to run, we can't implement this feature in our live app.

Here is the request sent to the server (app ID removed):

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

Here is the response returned:

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"}}

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

我一直都在从未离去 2024-10-10 15:20:40

我们更新了 Facebook Credits API 示例应用程序文档。如果您仍然遇到问题,请发布您的前端代码以及回调,我们可以查看。

We have updated the Facebook Credits API sample application and documentation. If you are still having issues, please post your frontend code as well as your callback and we can take a look.

苏大泽ㄣ 2024-10-10 15:20:40

我也遇到了同样的问题..我能够解决这个问题。我发生此错误是由于回调网址错误。我使用了 local_url

  'http://localhost:3000/blabla'

而不是使用

  http://apps.facebook.com/application-name/

I was also having the same issue.. I was able to fix this. This error occurred for me was due the wrong call back url. I used my local_url

  'http://localhost:3000/blabla'

instead of using

  http://apps.facebook.com/application-name/
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文