静态 FBML 中的 JavaScript/Iframe
有什么方法可以将以下脚本嵌入静态 FBML 中?
<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
version: 2,
type: 'profile',
rpp: 4,
interval: 6000,
width: 250,
height: 300,
theme: {
shell: {
background: '#333333',
color: '#ffffff'
},
tweets: {
background: '#000000',
color: '#ffffff',
links: '#4aed05'
}
},
features: {
scrollbar: false,
loop: false,
live: false,
hashtags: true,
timestamp: true,
avatars: false,
behavior: 'all'
}
}).render().setUser('twitter').start();
</script>
我尝试过在静态 FBML 中执行以下代码,但它似乎不起作用。
<fb:iframe
scrolling='no'
frameborder='0'
marginheight='0'
src='http://www.demo.kaazunut.com/twitter-box.html'
height='500'
width='500'></fb:iframe>
Is there any way the following script can be embedded in static FBML?
<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
version: 2,
type: 'profile',
rpp: 4,
interval: 6000,
width: 250,
height: 300,
theme: {
shell: {
background: '#333333',
color: '#ffffff'
},
tweets: {
background: '#000000',
color: '#ffffff',
links: '#4aed05'
}
},
features: {
scrollbar: false,
loop: false,
live: false,
hashtags: true,
timestamp: true,
avatars: false,
behavior: 'all'
}
}).render().setUser('twitter').start();
</script>
I have tried following code in the static FBML, but it doesn't seem to work.
<fb:iframe
scrolling='no'
frameborder='0'
marginheight='0'
src='http://www.demo.kaazunut.com/twitter-box.html'
height='500'
width='500'></fb:iframe>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以将其放在单独的页面中,然后在 FBML 画布中加载 iFrame 页面。
以下是如何在 FBML 画布页面中调用 iFrame 页面:
http://developers.facebook .com/docs/reference/fbml/iframe/
-Roozbeh
You can have this in a separate page, and load an iFrame page within your FBML canvas.
Here's how to call an iFrame page inside an FBML canvas page:
http://developers.facebook.com/docs/reference/fbml/iframe/
-Roozbeh