I've found that in most cases friends are being imported for uid = 0, so the facebook-connected user doesn't get to see his friends.

It's probably caused because by the time the import trigger runs on the first connect the user has not been logged on - id est the $user is the anonymous user's one.

Attached patch fixes the issue (note that I made the picture import a no-op - the fboauth module already provides this functionality (not on subsequent logins?)

CommentFileSizeAuthor
friends_import.txt3.7 KBdirkgomez

Comments

grasmash’s picture

Status: Active » Fixed

Thanks for the tip! This has been fixed.

Status: Fixed » Closed (fixed)

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