Skip to content

Instantly share code, notes, and snippets.

@cballou
Created March 25, 2012 13:13
Show Gist options
  • Save cballou/2193674 to your computer and use it in GitHub Desktop.
Save cballou/2193674 to your computer and use it in GitHub Desktop.
Overriding Facebook FBML Styling on a Canvas Page
<link rel="stylesheet" type="text/css" media="screen" href="http://www.yoursite.com/css/canvas.css?v=1.2" />
<div id="container">
<!-- AS AN EXAMPLE, WE'LL STYLE THE FB SHARE BUTTON -->
<fb:share-button class="url" href="http://www.your-site-url.com" />
</div>
<fb:share-button class="url" href="http://www.my-url-to-share.com" />
#container .share_and_hide { font-size: 20px; }
#container .share_and_hide a.share { background-color: #fff; color: #000; }
#container .share_and_hide a.share:hover { background-color: #f0f0f0; }
<div class="share_and_hide clearfix">
<a href="/ajax/share_dialog.php?u=http://www.my-url-to-share.com&src=fbml&appid=2353941073"
rel="dialog"
title="Send this to friends or post it on your profile."
class="share share_a">Share</a>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment