Skip to content

Instantly share code, notes, and snippets.

@h3h h3h/gist:417878

Created May 28, 2010
What would you like to do?
Test case for an XFBML bug in Facebook's connect-js library.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns=""
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>XFBML Bug</title>
You should see your name here:
<fb:name uid="loggedinuser" useyou="false"></fb:name>
Don't see it? <a href="" onclick="location.reload();">Reload the page</a>.
Normally <code>fb:name</code> with a numeric <code>uid</code> works fine,
but it also won't render if <code>uid="loggedinuser"</code> is on the
same page:
<fb:name uid="4" useyou="false"></fb:name>
Want to see it again? Delete your <code>fbs_*</code> domain cookie.
<div id="fb-root"></div>
window.fbAsyncInit = function() {
FB.init({appId: "[APP_ID_HERE]", status: true, cookie: true, xfbml: true});
(function() {
var e = document.createElement("script");
e.async = true;
e.src = window.location.protocol + "//";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.