I am trying to show the facebook avatar through views. Right now I am using the fields User:Picture to try and display user's avatar's that fit into a certain category. However, no facebook avatar shows, just the default avatar. Anyone know how to display the facebook avatar through views?
| Comment | File | Size | Author |
|---|---|---|---|
| #16 | fbconnect-views_fb_image_field-697654-16.patch | 3.49 KB | tom friedhof |
Comments
Comment #1
tsi commentedSame here, subscribing.
Comment #2
karimb commentedsubscribing
Comment #3
lodin commentedI added the fbconnect avatar by theming the user picture field. Probably not the best solution, but it works.
views-view-field--picture.tpl.php:
Comment #4
cerup commentedsubscribing.
The facebook picture should be accessible like 'normal' pictures so that they can be used with things like profile imagecache and views http://drupal.org/project/imagecache_profiles
Comment #5
xurizaemon@cerup: that's a nice idea, but I don't think FB actually want us to pull the user icons off their site. Is it even possible to retrieve the user's FB icon via means other than FBML?
Comment #6
cerup commentedI know gigya saves the images and therefore it works with views just like any picture in the database.
Comment #7
peter törnstrand commentedsubscribing
Comment #8
eric constantinides commentedThanks lodin, that little script worked wonders for me.
Comment #9
medenfield commentedHi,
This is a great solution, IMHO, for a node-based view. However, it doesn't work for a user based view. If I get time, I will try to modify it for a user-based view.
Comment #10
medenfield commentedModified slightly for a user-based view:
Comment #11
vectoroc commentedtry last dev. It should work without theming
Comment #12
jazzdrive3 commentedYeah, ditto to see if we can get imagecache support. The sizes you can pull in just make things ugly.
Comment #13
ensignavenger commentedNeeds support for ImageCache Profiles- the FB picture is way too large!
Comment #14
vectoroc commented#12, #13 : I think it will work through #796062: Restoring Auto-Profile Functions / pull FB user information into CCK fields
Comment #16
tom friedhof commentedI've started a patch for this. I've basically exposed another field to views to get the Facebook image field in the views ui. This patch is a start, but I think we should really be taking over the the Users: Picture field via a hook_views_data_alter, rather than creating a whole other field.
Putting this patch up here in case it's useful for anyone else, and also just in case somebody wants to pick up where I left off.
Tom
Comment #17
muschpusch commented@vectoroc: how is it fixed? Is patch #16 still needed? We should move the imagecache discussion to a seperate issue...
Comment #18
MikeDivine commentedWho is maintaining this module? Seems there are many bugs right now.