画布授权错误191 [英] Canvas authorization error 191
问题描述
我正在Facebook上实现一个画布页面。 Canvas教程说我应该将redirect_url设置为画布页面:
I'm trying to implement a canvas page on facebook. The Canvas tutorial says that I should set the redirect_url to the canvas page:
http://apps.facebook.com/<appName>
但是,当我这样做,我得到错误191.如果我将其设置为画布url http://www.qulm.my/macite> .com / fbCanvas
而是,因为它在顶窗口打开,所以我失去了Facebook界面。实现此功能的正确方法是什么?这是Facebook的错误吗?
However, when I do that, I get error 191. If I set it to the canvas url http://www.<mysite>.com/fbCanvas
instead, then I lose the Facebook interface, since it opens in the "top" window. What's the correct way to implement this functionality? Is this a bug with Facebook?
推荐答案
我有同样的问题,我以这种方式解决了:
I had the same problem, and I solved it this way:
打开 FBUtils.php
并转到第94行,它读取
Open FBUtils.php
and go to line 94, it reads
echo("<script> top.location.href='" . $authorize_url . "'</script>");
替换为
echo("<script> window.location.href='" . $authorize_url . "'</script>");
这就是所有,你不会下架FB,你的应用程序将在iframe里面!
and that's all, you won't get off of FB and your app will be inside the iframe!
这篇关于画布授权错误191的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!