Merry Christmas!
After enabled the Author Pane module, the user facebook profile picture could not be loaded for those Facebook logged in users. So i override the author-pane-user-picture.tpl.php as follow. Continue reading Drupal 7 – Render Facebook profile picture with Facebook Connect →
In the past 2 days we have talked about the use of Facebook Connect module.
Drupal 7 – Allow Facebook login using Facebook Connect
Drupal 7 – Override the Facebook Connect login button theme
In this post, i will show you how to render the Facebook Login button programmatically in the Drupal user registration and login page.
The following code will render the Facebook Login button programmatically.
$user_profile = fbconnect_user_profile();
$attr = array();
if (variable_get('fbconnect_fast_reg', 0) && variable_get('fbconnect_reg_options', 0)) {
$attr = array('perms' => 'email');
}
$ss__facebook_connect = fbconnect_render_button($attr);
Continue reading Drupal 7 – Add the Facebook Connect login button on user registration and login page →
We can implement Facebook Login using Facebook Connect. For more info, please refer to
Drupal 7 – Allow Facebook login using Facebook Connect
For those who wants to override that Facebook Login template, add the following function in your theme template.php and and customize it as u wish.
Continue reading Drupal 7 – Override the Facebook Connect login button theme →
The website i am working now needs to have Facebook Login. I found 3 modules which could implement that feature.
Facebook Connect requires the Facebook PHP SDK and the configuration is quite user friendly and this is also the module which i used.
Facebook OAuth provides an API for authentication and does not need the Facebook PHP SDK. It fits for Drupal developesr who wants higher level of customization.
Drupal for Facebook seems to target Facebook application development. I didn’t tried it.
Continue reading Drupal 7 – Allow Facebook login using Facebook Connect →
Dream BIG and go for it =)