Skip to content

Instantly share code, notes, and snippets.

@jc1arke
Created August 6, 2010 06:34
Show Gist options
  • Select an option

  • Save jc1arke/510947 to your computer and use it in GitHub Desktop.

Select an option

Save jc1arke/510947 to your computer and use it in GitHub Desktop.
// Login or logout will be needed to according to current user state
if( $fbMe ) :
$button_url = $facebook -> getLogoutUrl();
$button_image = "http://static.ak.fbcdn.net/rsrc.php/z2Y31/hash/cxrz4k7j.gif";
else :
$button_url = $facebook -> getLoginUrl();
$button_image = "http://static.ak.fbcdn.net/rsrc.php/zB6N8/hash/4li2k73z.gif";
endif;
.....
// This part will be in the HTML section
<a href="<?php echo $button_url; ?>">
<img src="<?php echo $button_image; ?>" border="0">
</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment