更改 Canvas URL 时 Facebook PHP SDK 墙贴出现问题
我为一家公司制作了一个 iFrame FB 应用程序,该应用程序在存储在我的服务器中时运行良好,但是当我将其移动到公司服务器并更改 Canvas URL 时,除了 $facebook->api(' /me/feed/', 'post', $attachment);不再起作用的功能。
我编写了一个简单的测试脚本来执行以下操作: 1)创建会话 2)向墙上发送帖子
在这两种情况下(我的服务器和公司服务器),会话始终正确创建,但向墙上的帖子不适用于公司。
当然,我已经尝试清除缓存、更改 Canvas URL 后卸载应用程序,但没有成功。会话仍然创建,但发布到墙上的帖子永远不起作用。
我还尝试将应用程序从我的服务器移动到服务器中的另一个文件夹(不同的 Canvas URL,但相同的域),并且运行良好。所以也许这意味着问题出在 Canvas URL 中的域更改???
注意:我的服务器和公司服务器都使用 PHP 5。
提前感谢您的帮助!
I made an iFrame FB application for a company, which is perfectly working when stored in my server but when I moved it to the company server, and change the Canvas URL, the application worked fine apart from the $facebook->api('/me/feed/', 'post', $attachment); function which doesn't work anymore.
I wrote a simple test script doing the next actions:
1) creating a session
2) sending a post to the wall
In both cases (my server and the company server), the session is always correctly created but the post to the wall is not working for the company.
I, of course, already tried to clear the cache, uninstall the application after changing the Canvas URL, but no luck. Still the session is created but the post to the wall never works.
I also tried to move the application from my server to another folder in my server (different Canvas URL but same domain) and it worked fine. So maybe this means that the problem lies into the domain change in the Canvas URL ???
Note : Both my server and the company server use PHP 5.
Thanks in advance for your help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
解决方案:fb_ca_chain_bundle.crt 文件丢失。奇怪的是,它在我的服务器上也丢失了,而且没有它它也能工作。
不管怎样,问题解决了!
Solution : the fb_ca_chain_bundle.crt file was missing. The strange thing is that it was also missing on my server and it was working without it.
Anyway, problem solved!