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
Comment #1
Dave Cohen commentedYour 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.
Comment #2
Marko B commentedThanx on directions, i'll do that.
Comment #3
Marko B commentedSolved 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?
Comment #4
Dave Cohen commentedDon'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?
Comment #5
Marko B commentedI 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.
Comment #6
Dave Cohen commentedI 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.
Comment #7
Marko B commentedWho knows, FB is wreckless, some day it will bite them back :-)
Comment #8
Dave Cohen commentedYou 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.
Comment #10
rickh commentedhey guys, a bit of a novice. could you give me a slightly more detailed discription of the overrride function please. Any help is appreciated.
Comment #11
Dave Cohen commentedFirst 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.
Comment #12
rickh commentedMy apologies, thanks for the reply.