从全宽页面选项卡打开应用程序 [英] Open application from Page tab in full width
问题描述
我为我的 Facebook 画布应用程序创建了一个页面,并添加了一个显示应用程序登录页面的新选项卡.但是,当用户单击登录按钮时,我想打开应用程序 (
希望这会有所帮助.
I have created a Page for my Facebook canvas application and there added a new tab that displays the login page for the application. However, when a user clicks the login button, I would like to open the application (http://apps.facebook.com/amiinteresting) in "full screen", not inside IFrame of the page. The reason is that my application requires more width than can fit within a page tab.
Is this possible to accomplish with JavaScript or in some other way?
Here are a couple of images to describe the problem and the desired behavior:
Application displayed on page tab (current behavior - not what I want):
Application displayed in a new window (this is what I want):
Thank you in advance!
For your specific requirement, assuming you have an <a>
tag as the button, just specify the property target = '_top'
, which will open the link in the top level, i.e change the browser address, so your link will be :
<a href="http://apps.facebook.com/amiinteresting" target="_top">Go to application</a>
Hope this helps.
这篇关于从全宽页面选项卡打开应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!