xfbml

Create a Facebook Connect Button without XFBML

17.06.2009
 von Pascal
 | 0 Kommentare

Use this piece of code for an html button if you don't want to use the XFBML fb:login-button tag.

<?php
function fbconnect_render_button() {
  
$button '
&lt;a href="#"
onclick="FB.Connect.requireSession(facebook_onlogin_ready); return false;" &gt;
 &lt;img id="fb_login_image" 
src="http://static.ak.fbcdn.net/images/fbconnect/login-buttons/connect_white_medium_long.gif
height="15" alt="Connect"/&gt;
 &lt;/a&gt;'
;
  return 
$button;
}
?>
Inhalt abgleichen