Facebook iframe中的OAuth对话框不起作用 [英] OAuth dialog doesn't work inside Facebook iframe

查看:210
本文介绍了Facebook iframe中的OAuth对话框不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

该网页的问题是 https://apps.facebook.com/gentlemensbet/
'Begin Betting'按钮不会为任何人加载oauth屏幕。

The page is question is https://apps.facebook.com/gentlemensbet/ The 'Begin Betting' button won't load the oauth screen for anyone.

然而,如果您在新窗口中打开它,它似乎可以正常工作。
我找不到任何合理的解释,并且不知道如何解决这个问题。

However, if you open it in a new window, it seems to work just fine. I can't find any reasonable explanation for this behavior and don't know how to correct this.

推荐答案

target =_ blank target =_ top添加到您的定位标记中。
您正尝试在Facebook页面中的iframe中加载facebook网址。这是不允许的。
$ b

Add target="_blank" or target="_top" to your anchor tag. You are trying to load a facebook URL in an iframe within a facebook page. That isn't permitted.


拒绝显示文档,因为X-Frame-Options禁止显示。

Refused to display document because display forbidden by X-Frame-Options.

是控制台中记录的错误。
这是针对点击劫持的预防措施。

is the error logged in the console. It is a preventive measure against click-jacking.

您的链接应该是: b

Your link should be:

<a class="btn btn-large btn-primary" href="https://www.facebook.com/dialog/oauth?..." target="_blank"></a>

这篇关于Facebook iframe中的OAuth对话框不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆