problem about xfbml-Collection of common programming errors


  • BoltClock
    html css fbml xfbml
    Most browsers support tags such as<fb:like … > </fb:like>(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’t work or even crash a browser? Probably some of the mobile browsers are not so well equipped to ha

  • Eric
    jquery .each xfbml dom-traversal
    I have a big page with a “load more” button at the bottom; each click on “load more” loads more content via AJAX. Part of that content is Facebook like and comment buttons:<div class=”fb-like” data-href=”http://mysite.com/a<?=$x ?>” data-width=”100″ data-layout=”button_count” data-show-faces=”false” data-send=”false”></div> <div class=”fb-comments” data-href=”http://mysite.com/a<?=$x ?>” data-width=”435″></div>After loading the additional content, I can ask Fa

  • user460293
    html facebook fbml xfbml
    Facebook 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 – this could indicate a problem. The “fb-root” 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

  • cshavit
    javascript facebook like xfbml
    Searching 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 “Like” div dynamically thus:var fbDiv = document.getElementById(“whereTheLikeGoes”);fbDiv.innerHTML = ‘<fb:like href=”‘ + link + ‘” send=”true” width=”450″ show_faces=”false”></fb:like>’;if (typeof(FB) !== ‘undefined’)FB.XFBML.parse(fbDiv);where link is an http URL like ‘http://

  • Nicky316
    jquery facebook xfbml
    I’m having a lot of trouble loading facebook buttons on hover. Currently I have the following code, which uses ‘this’ in .parse() with continued hover.$(document).on({ mouseenter: function(){$(this).closest($(‘div.new_story’)).children(“div.new_social_buttons”).show();$(this).closest(“.new_social”).hide();twttr.widgets.load(); }, mouseleave: function(){//looks like nothing going on here; just providing for future ref.} }, ‘a.share’);$(document).on({mouseenter: function(){var me = jQuery(this);if

  • Peter Mortensen
    internet-explorer-8 facebook xfbml
    I’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 ‘FB is undefined’ error when the page hits the FB.XFBML.parse(‘fb-stuff’);. Do I need to check if the Facebook Connect script has finished loading before I try to parse the XFBML?<script type=”text/javascript”>window.fbAsyncInit = function() {FB.init({appId : ‘117378991625799’,status : false, // check login statuscookie : false, // enable cookies t

  • Matt Dunnam
    javascript facebook fbml xfbml
    Can 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 “all.js” on my page, the login script works just fine but the fb:like tag (obviously) doesnt work.When i include “all.js#xfbml=1”, the fb:like tags work again (also obvious), but now my FB object is undefined (and my login code doesn’t work).Is there something I’m missing?T

  • daniel0mullins
    parsing facebook-like xfbml
    I 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?

  • bkaid
    javascript facebook xfbml ember.js
    I 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.

  • br4inwash3r
    javascript facebook xfbml
    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 valuevar container = container[0] || document.body;var button = container.getElementsByTagName(‘fb:like’);bu

Web site is in building