简单FB查询:FB登录屏幕在画布应用程序? [英] Simple FB inquiry: FB login screen in a canvas app?

查看:124
本文介绍了简单FB查询:FB登录屏幕在画布应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Rails应用程序在FB画布中运行。问题:



如果用户没有登录到Facebook,则会重定向到Facebook登录/验证页面。但是,在画布中不起作用,因为facebook auth页面不允许自己加载到iframe中。这是控制台错误:



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

所以用户无法登录到FB来认证该应用。



如何解决这个问题?



已解决



添加:target =>

解决方案

添加:target => _top链接,它现在可以正常工作。


My Rails app runs in a FB canvas. The problem:

If the user isn't logged in to Facebook, there is a redirect to the Facebook login / auth page. However, that doesn't work in the canvas, because the facebook auth page doesn't allow itself to be loaded into an iframe. This is the console error:

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

So users can't log in to FB to auth the app. It works fine when not running in the canvas.

How can I fix this?

Solved

Added :target => "_top" to the link and it works fine now.

解决方案

Added :target => "_top" to the link and it works fine now.

这篇关于简单FB查询:FB登录屏幕在画布应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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