从自定义粉丝页面选项卡中删除垂直滚动条确实很困难
因此,我一直在互联网上寻找解决方案,以从我公司 Facebook 页面上的自定义选项卡页面中删除滚动条。当然,我不是程序员,昨天就弄清楚了如何构建这个东西,但我真的很想解决这个问题。 FB 应用程序开发人员似乎有很多针对旧格式的解决方案,但新版本却没有。\
我已经尝试实现一堆我发现的画布大小脚本,但要么没有,要么我的页面拒绝加载。
So I've been scouring the internet for solutions to remove the scroll bar from my custom tab page on my company's facebook page. Granted, I'm not programmer and figured out how to build this thing yesterday, but would really like fix to this. It seems like there are a ton of solutions to the old format the FB app developer but nothing with the new version.\
I've been attempted to implement a bunch of the canvas size scripts that I have found but either they don't or my page refuses to load.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
jsteid
这是我如何使用 OAuth 2.0 和新的 javascript sdk 调整选项卡大小的示例。
http://www.facebook.com/anotherfeed?sk=app_135669679827333
如果您使用由于框架中存在边距,因此设置的百分比需要低于 100%,大约为 98% - 96%。
jsteid
Here is a sample of how i resize my tabs using OAuth 2.0 and new javascript sdk.
http://www.facebook.com/anotherfeed?sk=app_135669679827333
If you are using % to set with they need to be under 100% at about 98% - 96% because of a margin in the frame.
要解决高度问题,请加载js sdk并设置画布尺寸
测试,看看什么值适合您的需要
to fix the height issue, load the js sdk and set the canvas size
test and see what values fit your need
我认为 iframe 选项卡上 FB.Canvas 的大小方法存在错误。高度设置正确,但滚动仍然存在。在我的情况下,唯一的解决方法是 FB.Canvas.SetAutoResize() + 样式“body”与溢出:隐藏的组合。
I think there is a bug with FB.Canvas's size methods on iframe tabs. Height is set properly but scrolls are still there. Only workaround in my case is combination of FB.Canvas.SetAutoResize() + styling 'body' with overflow: hidden.
您需要执行以下操作:
转到您的应用 (https://developers.facebook.com/apps/)
转到:设置 ->高级->画布设置->画布高度 ->选择“自动调整大小”。
如果您仍然遇到问题,这里的其他建议应该可以通过执行类似的操作来帮助您...
这里我将页面高度设置为 1000 ->将其更改为您的页面高度,我将您的应用程序 ID 设置为 12345 ->将其更改为您的应用程序 ID。
我希望这对你有用。
You need to do this:
Go to your app (https://developers.facebook.com/apps/)
Click 'Edit Settings' on the app in question.
Go to: Settings -> Advanced -> Canvas Settings -> Canvas Height -> select 'Auto-Resize'.
If you still get problems the other suggestions here should help by doing something like...
Here I set your page height to 1000 -> change this to your page height and I set your app ID to 12345 -> change this to your app id.
I hope this works for you.