Login Button

The Login Button shows profile pictures of the user's friends who have already signed up for your site in addition to a login button.
The Login Button shows profile pictures of the user's friends who have already signed up for your site in addition to a login button.
You can specify the maximum number of rows of faces to display. The plugin dynamically sizes its height; for example, if you specify a maximum of four rows of faces, and there are only enough friends to fill two rows, the height of the plugin will be only what is needed for two rows of faces.
Using the new JavaScript SDK, the plugin is available via the <fb:login-button> XFBML tag.
Code:
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=APP_ID&amp;xfbml=1"></script><fb:login-button show-faces="true"></fb:login-button>
Remember:
To use this plug-in, your site must have an application ID. You can get an application ID by registering your site. Replace APP_ID in the above script with your application ID.

No comments:

Post a Comment