I see there are few issues regarding FB profile picture and it's size. I would like to ask some questions about it to see what is best solution.

1. Imagecache integration is not possible right? As currently it's ignored when set in views.
2. Currently i have a view that shows 10 profile pictures and they are in very different sizes, all wih 50 px width but from 30 to 90 px in height and imagecache i am trying to enforce and is ignored is 48px so i guess this doesnt have any impact, so how to show them in same size, what would be the best method?

Comments

Dave Cohen’s picture

Your theme can override the functions defined in fb.theme.inc. Look at facebook's documentation of fb:profile-pic tag to see the size options.

Imagechache doesn't really apply, because these images are coming from facebook's server not yours.

Please share what you come up with.

Marko B’s picture

Thanx on directions, i'll do that.

Marko B’s picture

Solved it. All you need to do is override as D.C. said and put something like
$fbml = "<fb:profile-pic linked=false size=\"square\" uid=\"$fbu\"></fb:profile-pic>";
which is 50px 50px image as described here http://developers.facebook.com/docs/reference/fbml/profile-pic

Dave, FBML is deprecating in 2012, what will be then with this module as you used FBML in theme?

Dave Cohen’s picture

Status: Active » Fixed

Don't confuse FBML with XFBML. Why would anyone confuse the two after facebook went the trouble of putting an X in front?

So this is fixed?

Marko B’s picture

I didnt notice the difference, and as i found the solution on FBML page i would think it's the same. Maybe you are just being ironic? :-) anyway yes this is solved and this is the way to format images.

Dave Cohen’s picture

I am being ironic. FBML is deprecated but XFBML is not. Many of the tags are the same. I think "FBML is deprecating in 2012" means XFBML tags like fb:profile-pic will still work. But maybe I'm the confused one.

Marko B’s picture

Who knows, FB is wreckless, some day it will bite them back :-)

Dave Cohen’s picture

You may be correct FBML is deprecated. I believe they want us to start using the HTML5 equivalents which most or all of the tags have. Their little warning about FBML being deprecated does not make it clear.

Status: Fixed » Closed (fixed)

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

rickh’s picture

hey guys, a bit of a novice. could you give me a slightly more detailed discription of the overrride function please. Any help is appreciated.

Dave Cohen’s picture

First advice, don't post to closed threads.

There's lots of doc about the various ways to override a theme. Search drupal.org and you'll find better detail than we could provide here.

rickh’s picture

My apologies, thanks for the reply.