{"id":6347,"date":"2014-04-16T09:35:05","date_gmt":"2014-04-16T09:35:05","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/16\/problem-about-xfbml-collection-of-common-programming-errors\/"},"modified":"2014-04-16T09:35:05","modified_gmt":"2014-04-16T09:35:05","slug":"problem-about-xfbml-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/16\/problem-about-xfbml-collection-of-common-programming-errors\/","title":{"rendered":"problem about xfbml-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/a2d818d801ce38a33807f68fdd92043a?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nBoltClock<br \/>\nhtml css fbml xfbml<br \/>\nMost browsers support tags such as&lt;fb:like &#8230; &gt; &lt;\/fb:like&gt;(which is a Facebook XFBML tag). Is the namespace:tagname actually part of the standard of naming tags?Also, how about CSS support? Seldom do I directly style it likefb:like { font-size: 11px }but for people who are experienced with it, does it work with most modern browsers? (IE 6 too?) Is there any case where it doesn&#8217;t work or even crash a browser? Probably some of the mobile browsers are not so well equipped to ha<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/1074f0a031cca12280359231a87662af?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nEric<br \/>\njquery .each xfbml dom-traversal<br \/>\nI have a big page with a &#8220;load more&#8221; button at the bottom; each click on &#8220;load more&#8221; loads more content via AJAX. Part of that content is Facebook like and comment buttons:&lt;div class=&#8221;fb-like&#8221; data-href=&#8221;http:\/\/mysite.com\/a&lt;?=$x ?&gt;&#8221; data-width=&#8221;100&#8243; data-layout=&#8221;button_count&#8221; data-show-faces=&#8221;false&#8221; data-send=&#8221;false&#8221;&gt;&lt;\/div&gt; &lt;div class=&#8221;fb-comments&#8221; data-href=&#8221;http:\/\/mysite.com\/a&lt;?=$x ?&gt;&#8221; data-width=&#8221;435&#8243;&gt;&lt;\/div&gt;After loading the additional content, I can ask Fa<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/cd854dd6c175efb122efba423c00453c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser460293<br \/>\nhtml facebook fbml xfbml<br \/>\nFacebook button is not working on IE8 at starting it is coming like in screenshot and after 45 seconds it disappears automatically with error fb:login_button failed to resize in 45s2 more error getting while opening page are:FB.init has already been called &#8211; this could indicate a problem. The &#8220;fb-root&#8221; div has not been created, auto-creating.even after refreshing the page button is not coming. after deleting browser history button again shows like in attached image and on click and after enterin<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/b7f177d9dcb77668ae0faa134e1c1d3a?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ncshavit<br \/>\njavascript facebook like xfbml<br \/>\nSearching Stackoverflow, this problem almost looks like an FAQ (e.g., this and this and several others), yet I could not solve my problem after reading the other posts.My Javascript program creates a Facebook &#8220;Like&#8221; div dynamically thus:var fbDiv = document.getElementById(&#8220;whereTheLikeGoes&#8221;);fbDiv.innerHTML = &#8216;&lt;fb:like href=&#8221;&#8216; + link + &#8216;&#8221; send=&#8221;true&#8221; width=&#8221;450&#8243; show_faces=&#8221;false&#8221;&gt;&lt;\/fb:like&gt;&#8217;;if (typeof(FB) !== &#8216;undefined&#8217;)FB.XFBML.parse(fbDiv);where link is an http URL like &#8216;http:\/\/<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/fe79fbf467352b91f361a463dd3fbd9c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nNicky316<br \/>\njquery facebook xfbml<br \/>\nI&#8217;m having a lot of trouble loading facebook buttons on hover. Currently I have the following code, which uses &#8216;this&#8217; in .parse() with continued hover.$(document).on({ mouseenter: function(){$(this).closest($(&#8216;div.new_story&#8217;)).children(&#8220;div.new_social_buttons&#8221;).show();$(this).closest(&#8220;.new_social&#8221;).hide();twttr.widgets.load(); }, mouseleave: function(){\/\/looks like nothing going on here; just providing for future ref.} }, &#8216;a.share&#8217;);$(document).on({mouseenter: function(){var me = jQuery(this);if<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/78a0a4bb106d07b6c6f33a51988155e3?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nPeter Mortensen<br \/>\ninternet-explorer-8 facebook xfbml<br \/>\nI&#8217;m trying to implement an XFBML comment box on a page. It works in Firefox and Chrome, but only sporadically in Internet Explorer 8.I get an &#8216;FB is undefined&#8217; error when the page hits the FB.XFBML.parse(&#8216;fb-stuff&#8217;);. Do I need to check if the Facebook Connect script has finished loading before I try to parse the XFBML?&lt;script type=&#8221;text\/javascript&#8221;&gt;window.fbAsyncInit = function() {FB.init({appId : &#8216;117378991625799&#8217;,status : false, \/\/ check login statuscookie : false, \/\/ enable cookies t<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/1720f690a40e5443f472a015d67d900a?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMatt Dunnam<br \/>\njavascript facebook fbml xfbml<br \/>\nCan you help me?I have two different mechanisms on my site using both xfbml and fbjs:one is an FB:Like tag for individual entries the other is using the FB object for facebook logins with fb connect.My problem is when include &#8220;all.js&#8221; on my page, the login script works just fine but the fb:like tag (obviously) doesnt work.When i include &#8220;all.js#xfbml=1&#8221;, the fb:like tags work again (also obvious), but now my FB object is undefined (and my login code doesn&#8217;t work).Is there something I&#8217;m missing?T<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/graph.facebook.com\/593872337\/picture?type=large\" \/><br \/>\ndaniel0mullins<br \/>\nparsing facebook-like xfbml<br \/>\nI have a function call back on auth.login and would like to reparse my fb:like elements. Other actions are performed during the auth.login callback, and they execute just fine, but the .parse does not! I try executing FB.XFBML.parse(); in the console and it shows undefined and then after three seconds a console message saying 2 XFBML tags failed to render in 30000ms.Any ideas?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/3e6fec2fd77de59951f89112acd6953b?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nbkaid<br \/>\njavascript facebook xfbml ember.js<br \/>\nI have an EmberJS view that dynamically renders XFBML tags. How can I get that view to call FB.XFBML.parse() whenever the EmberJS view is being rendered?Is it a good idea to override the View.afterRender() method, and call FB.XFBML.parse() then? If so, how do I get the EmberJS ? It is currently set to undefined for me.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/30f03f4e6aba95ffed2c0c7f0c46ef43?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nbr4inwash3r<br \/>\njavascript facebook xfbml<br \/>\ni&#8217;d like to change the URL to like of an FB:Like button dynamically using javascript.right now i&#8217;ve only been able to change the href attribute of the fb:like tag (i&#8217;ve pasted the code below). but simply changing the href doesn&#8217;t seems to work. perhaps i have to re-initiate the FB:Like button, but so far i can&#8217;t figure out how..function update_share(container, url) {\/\/ update fb:like href valuevar container = container[0] || document.body;var button = container.getElementsByTagName(&#8216;fb:like&#8217;);bu<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>BoltClock html css fbml xfbml Most browsers support tags such as&lt;fb:like &#8230; &gt; &lt;\/fb:like&gt;(which is a Facebook XFBML tag). Is the namespace:tagname actually part of the standard of naming tags?Also, how about CSS support? Seldom do I directly style it likefb:like { font-size: 11px }but for people who are experienced with it, does it work [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6347","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6347","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6347"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6347\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6347"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}