I install new version: 6.x-1.0-beta9, but whit this version when user register new account, no avatar from facebook account is loaded. I read README.text, and i have selected "Let the user choose", but still not works any avatar autoloaded. Anyone can help me?

Comments

thaddeusmt’s picture

I am having the same issue, I'll post if I figure out a fix for it

thaddeusmt’s picture

Found the bug. On line 681 (?) in fbonnect.module there is a little typo. The line of code is this:
if ($conf['user_picture'] == 'allow') {
But it should be this:
if ($conf['user_pictures'] == 'allow') {
Notice the missing "s" on "user_picture".

Works fine now.

Aquilasfx’s picture

I continue to have the same problem! Can you share your working version of fbonnect.module?

thaddeusmt’s picture

I'll post a patch eventually, but alas I don't have time right now. Don't have patch generating stuff set up on this box. It's easy to make the change in the code in the mean time. Just be sure to refresh the Drupal cache, as always. :)

Here the whole function, in case there is any confusion:

<?php
function fbconnect_theme_registry_alter(&$theme_registry) {
  $conf = fbconnect_get_config();
  if ($conf['user_pictures'] == 'allow') {
    // Re-register the original theme function under a new name.
    $theme_registry['fbconnect_user_picture_orig'] = $theme_registry['user_picture'];
    // Override theme username
    $theme_registry['user_picture'] = array(
      'arguments' => array('account' => NULL),
      'function' => 'fbconnect_theme_user_picture_override',
    );
  }
}
?>
Aquilasfx’s picture

you change only this function? why you not attach your facebook.module file?

Aquilasfx’s picture

Thanks now avatar are loaded, but now there is another problem:

if i estract image avatar with views for example, drupal take only default image not specific facebook image by that user... why that?

sammyman’s picture

I am having the same problem in views.... Anyone help?

alexkb’s picture

Yep, this mod worked for me, nice work thaddeusmt!

vectoroc’s picture

Status: Active » Fixed

fixed in dev version

sammyman’s picture

The issue of fbconnect not showing user avatars in views is not fixed. I was able to follow this to get the facebook avatars to show on comments, but definitely not through views when someone selects User:Profile Picture.

vectoroc’s picture

I know. It's an different issue

sammyman’s picture

Ok thanks. If anyone is interested in this issue, I posted a new issue here:

http://drupal.org/node/697654

karimb’s picture

Thx. Works fine now.

jpshayes’s picture

Component: User interface » Code
Priority: Critical » Minor
Status: Fixed » Needs work

I dont know if I should post this here or open another issue but, When using the code in #4 or the link to the module in #6 and the realname module I get this error.

warning: Invalid argument supplied for foreach() in /var/www/path/to/drupal/sites/all/modules/realname/realname.module on line 325.

jpshayes’s picture

Is anybody using fbconnect with facebook profile picture and the realname module successfully?

I cant figure out how to get rid of this error

warning: Invalid argument supplied for foreach() in /var/www/path/to/drupal/sites/all/modules/realname/realname.module on line 325.

vectoroc’s picture

Status: Needs work » Fixed

Select "Do not allow the use of facebook user picture at your site" in admin/settings/fbconnect
I think that realname wont work with fbconnect_theme_user_picture_override

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.