I have successfully setup Drupal for Facebook and integrated the Facebook connect feature into the site. All is working: login, the theme presentation of the Facebook user name rather than the NNNN@facebook and also it is successfully theme presenting the profile pic from facebook as the user image. The only thing I'm struggling with is that I would like to be able to control the size of the image presented, it is currently showing at 50x50 px. I've explored all the documentation that I could find but have not been able to fine a good explanation of how to do this.
Can any one point me in the right direction here.

Comments

Dave Cohen’s picture

You can control this at the theme layer. Look in fb_connect.module to see how it overrides default theming for user pictures. You'll want to do something similar in your theme, but it wont have to be as complex. You can easily turn off the theme overriding done in fb_connect.module, once your theme does it instead.

read up in facebook's documentation about the fb:profile-pic tag. It has attributes to control size.

perceptum’s picture

Version: 6.x-2.x-dev » 6.x-3.0-rc8
Category: support » feature
StatusFileSize
new7.24 KB

The attached zip file contains version of 3 files that implement this functionality request. While I think the theme is a good way, it seem to be trivial functionality to add, and a number of users that cant code will benefit from this.

Code is relevant to FB version 6.x-3.0-rc8.

Best regards from South Africa!

Dave Cohen’s picture

Thanks for contributing, it really is appreciated. But...

It's a lot of overhead to work with a zip like that. Please submitted regular patches.

Also I believe there are so many options that coders and non-codes both might be interested in. I feel like once these modules try to support any of them, it will quickly become too much. I'd rather see another module which depends on modules/fb which is the non-coder-friendly layer. Does that make sense?