本文介绍了未调用积分回调脚本(错误1383046)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在让Facebook调用我的积分回调脚本时遇到问题.我已经建立了一家公司和回调URL.我使用了示例脚本.但是,尽管如此,当我尝试使用JS sdk访问付款窗口时,总是会出现此错误.

I have a problem getting facebook to call my credits callback script. I've setup a company and the callback url. I used the example script for it. But nonetheless I always get this error when I try to access the payment window using the JS sdk.

var obj = {
    method: 'pay',
    order_info: order_info,
    purchase_type: 'item'
    // dev_purchase_params: {'oscif': true}
 };

 FB.ui(obj, getCashCB);

错误:

控制台错误代码:1383046含义:

error code from console: 1383046meaning:

无论我是否处于沙盒模式,都将回调URL设置为完全不同的内容.永远不会调用回调脚本.

No matter if I'm in sandbox mode, set the callback url to something completely different.The callback script is never called.

对于这个问题,我已经搜寻了很多人,但没有发现任何有意义的东西.服务器接受了来自Facebook的curl请求,但我不知道这意味着什么或如何对其进行测试.

I've searched far and long for anybody else with this problem, but found nothing meaningful. There was something about the server accepting curl requests from facebook but I don't know what that means or how to test for it.

推荐答案

已解决!在寻找原因的同时,我注意到该错误可能从很多情况下弹出.但是这种情况相当具体:

Solved! Whilst looking for the cause I noticed that this error can pop up from a lot of things. But this case is rather specific:

由于facebook应用仍在开发中,因此将其隐藏在.htaccess文件后面.因此,当您访问该网站时,您登录并加载了应用程序.但是,这不适用于信用回拨文件.由于该请求来自Facebook,因此必须使用user:pass登录.我尝试将其放在回调URL中,但这似乎不起作用.

Because the facebook app is still in development, we hid it behind a .htaccess file. So when you visit the site, you login, and the app loads etc. BUT this doesn't work for the credits callback file. Since the request then comes from facebook, it would have to login with user:pass. I tried putting that in the callback URL, but that doesn't seem to work.

因此,我只需要将回调文件放在无需.htaccess和Tadaaa即可访问的位置即可!

So I only need to put the callback file somewhere where you can reach it without .htaccess and Tadaaa it works!

这篇关于未调用积分回调脚本(错误1383046)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-22 20:29
查看更多