xfbml

How to make Facebook comments widget a fluid width?

爷,独闯天下 提交于 2019-11-27 09:59:59
问题 Is it possible to make Facebook's comments widget a fluid width? Their documentation shows a width field for the fb:comments xfbml or iframe which is specified as: width - the width of the plugin in pixels. Minimum recommended width: 400px. So maybe it's not possible... 回答1: I found a solution using css. Inspiration came from this article http://css-tricks.com/2708-override-inline-styles-with-css/ .fb-comments, .fb-comments iframe[style] {width: 100% !important;} 回答2: Alan your solution was

Update FB:Like URL Dynamically using JavaScript

馋奶兔 提交于 2019-11-26 19:21:23
问题 i'd like to change the URL to like of an FB:Like button dynamically using javascript. right now i've only been able to change the href attribute of the fb:like tag (i've pasted the code below). but simply changing the href doesn't seems to work. perhaps i have to re-initiate the FB:Like button, but so far i can't figure out how.. function update_share(container, url) { // update fb:like href value var container = container[0] || document.body; var button = container.getElementsByTagName('fb

Do I need an appId for a XFBML version of the Facebook Like button?

这一生的挚爱 提交于 2019-11-26 14:49:39
问题 I'm really confused. I'm trying to use some of the very simple Facebook plugins on my site, specifically the basic "Like" button. I already know how to use the limited version with an iFrame. However, now I'm trying to figure out the XFBML method and the online documentation seems to make a lot of assumptions about what you already know and really short on working examples. For example, they show you how to call the JavaScript Init and give you the single line of HTML code for element fb:like