I just installed and setup my first facebook app running on drupal. Everything seems to be working except for this error that appears at the bottom of the page:
fb:profile-pic: Invalid uid for fb:profile_pic (0)
I uncommented the following line (64) in template.php:
//drupal_set_message("node vars: " . dprint_r($vars, 1));
All I get is "node vars: " with no values displayed. Any ideas? Fantastic project, by the way!
Comments
Comment #1
ryanwaggoner commentedAlso, my settings for facebook users are to create new drupal account for users who have added the app, which appears to be working. Also, if I go to "My Account" my Facebook profile pic appears as expected.
Comment #2
ryanwaggoner commentedNevermind...it's because I created content from the Drupal side before I setup the facebook app, so it's displaying content from a non-facebook account and attempting to display the profile-pic for that user's facebook uid, which doesn't exist.
How would I not have the fb_fbml theme attempt to display a profile-pic if the user who posted a piece of content is not a facebook user? in other words, assuming that the application has two fronts, the facebook front and the normal web front, but I want content from both displayed on the facebook front, how do I have the theme differentiate so as to not try and display the profile-pic?
Thanks!
Comment #3
Dave Cohen commentedIt no longer tries to display a pic if the facebook user id is not known.
Comment #4
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #5
nk126 commentedDave, I'm actually running into that same error with my app that I just installed ... and I just updated my fb module to the dev release dated 12/12/07
Comment #6
ahansen1 commentedI am also seeing this. For me the issue appears to be that though the content was created by a facebook user, the user is no longer in the fb_user_app table, so the handler calls ends up getting "0" for the user id causing the described error. Not 100% sure why they are not in the fb_user_app table, my guess is that they have since uninstalled the application.
In any case, I updated the handler to return "" when this condition hits. I guess ideally that might be a theme-able so that folks could choose the empty text, image, etc when the profile pic is unknown.
Comment #7
Letharion commentedSince Drupal 5 is no longer supported, I'm taking the liberty to close all FB D5 support requests.