Created
July 27, 2009 17:17
-
-
Save hoffrocket/156633 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml"> | |
<head> | |
<title>foo</title> | |
</head> | |
<body style="overflow:hidden"> | |
<div id="FB_HiddenIFrameContainer" style="display:none; position:absolute; left:-100px; top:-100px; width:0px; height: 0px;"></div> | |
<script src="http://static.ak.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script> | |
<div id="content">bla bla bla bla</div> | |
<!-- the following is important for resize to work correctly in webkit browsers if you're using floated divs--> | |
<div id="_clearfloats" style="clear: both;"></div> | |
<script type="text/javascript"> | |
//<![CDATA[ | |
$(document).ready( function() { | |
FB_RequireFeatures(["XFBML", "Api", "CanvasUtil"], function() { | |
FB.Facebook.init('your api key','/xd_receiver.html'); | |
FB.CanvasClient.startTimerToSizeToContent(); | |
}); | |
}); | |
//]]> | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment