Skip to content

Commit

Permalink
Switched from using FB javascript SDK for like button to iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Stiles committed Apr 22, 2010
1 parent e4cfdd4 commit 2a4f203
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions main.html
Expand Up @@ -13,7 +13,7 @@
<meta property="og:title" content="ur.ly - dang short urls" />
<meta property="og:url" content="http://ur.ly/" />
<meta property="og:type" content="website" />
<meta property="fb:app_id" content="119997331350557" />
<meta property="fb:admins" content="534232326" />
<script type="text/javascript" src="static/urly.js"></script>
</head>
<body style="font-family: verdana, arial; font-size: 80%; text-align: center">
Expand Down Expand Up @@ -47,22 +47,10 @@
</form>

<div style="margin-top: 10px; padding-top: 5px; border-top: 1px solid #f1f1f1;"><span style="float: right"><a href="http://github.com/ajstiles/urly">Code</a> and <a href="http://wiki.github.com/ajstiles/urly">API</a></span>
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
FB.init({
appId : '119997331350557',
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
</script>

<p>Drag this link to your browser toolbar:&nbsp;
<a href="javascript:location.href='http://ur.ly/new.html?href='+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title)">ur.ly!</a>
</p>
<div><fb:like href="http://ur.ly/" layout="standard" show_faces="true" width="450" action="like" colorscheme="light" /></div>

<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fur.ly%2F&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:px"></iframe>
</div>
</div>
</div>
Expand Down

0 comments on commit 2a4f203

Please sign in to comment.