开发者

Facebook XFBML Like button still embedded in iframe

I am maybe misunderstanding the facebook document开发者_开发技巧ation for the xfbml.

They say there are two ways of incorporating a like button into a site via iframe or xfbml.

When i use xfbml though the button is still embedded in an iframe.

Whats the difference therefore?


You are correct that the XFBML like button still creates an iframe. The two versions will end up creating the same result. The only real difference between the two is that with the xfbml version you can subscribe to the "edge.create" event which tells you when somebody clicks the button. You cannot subscribe to this event with the iframe version. Additionally, with the XFBML you can control when it is rendered using the Javascript SDK by calling FB.XFBML.parse(document.getElementById('foo'));

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜