我可以在Facebook应用程序中设置页面选项卡高度吗? [英] Can I set the Page Tab height on a Facebook app?

查看:97
本文介绍了我可以在Facebook应用程序中设置页面选项卡高度吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用 Heroku托管选项创建了Facebook页面标签应用程序。我看到一个选项,用于将页面选项卡的宽度设置为正常(810px)或窄(520px)),但是没有看到设置高度的选项,因为在App on Facebook应用程序创建时。 / p>

我不知道我可以将这个应用程序设置为Facebook上的应用,但是想知道我是否可能在页面选项卡应用程序设置中缺少某些内容。 p>

这是App on Facebook和页面标签的截图 'app setup page。

解决方案

根据 https://stackoverflow.com/a/13181388/820113

 < script SRC =// connect.facebook.net/en_US/all.js\"></script> 
< script type =text / javascriptcharset =utf-8>
window.fbAsyncInit = function()
{
FB.init({appId:'appid',
status:true,
cookie:true,
xfbml:true,
oauth:true});

FB.Canvas.setAutoGrow();
}
< / script>

一个< div id =fb-root>< ; / div> 在正文中。


I have created a Facebook Page Tab app using the Heroku hosting option. I see an option for setting the width of the Page Tab to either Normal (810px) or Narrow (520px), but don't see an option to set the height, as there is when creating an 'App on Facebook' app.

I undestand I could set this app up as an 'App on Facebook', but am wondering if I might be missing something in the 'Page Tab' app setup.

Here is a screenshot of the 'App on Facebook' and 'Page Tab' app setup page.

解决方案

Here's what worked, based on https://stackoverflow.com/a/13181388/820113

<script src="//connect.facebook.net/en_US/all.js"></script>
<script type="text/javascript" charset="utf-8">
window.fbAsyncInit = function() 
{
    FB.init({ appId: 'appid', 
    status: true, 
    cookie: true,
    xfbml: true,
    oauth: true});

    FB.Canvas.setAutoGrow();
}
</script>

And a <div id="fb-root"></div> in the body.

这篇关于我可以在Facebook应用程序中设置页面选项卡高度吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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