简单FB查询:FB登录屏幕在画布应用程序? [英] Simple FB inquiry: FB login screen in a canvas app?
问题描述
我的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屋!