mbrevoort/jquery-facebook-multi-friend-selector — Issue #22: test user friends of test users don't show up
Author: yuvilio
Created: 2011-12-01 20:53:35+00:00
State: open

When I'm logged in as a test user (say A) who has test user friends (say B and C), they don't show up in the selector. It looks like this is in the code that calls for friends:

$("#jfmfs-container").jfmfs({
friend_fields: "id,name,last_name",
...

this in turn makes a FB.api call like "https://graph.facebook.com/me/friends?fields=id,name,last_name&access_token=..."
Usually this returns a data object with an array of objects [{ "id": "123456", "name": "Bob Smith", "last_name": "Smith" }, {..},]
but for test users you get: [{ "id": "123456"}, {..},]

I am not sure why this is. Maybe Facebook does not allow names because they might somehow pollute the real user namespace? If this is not an error, maybe generating stub names might make sense for test users so that they can still be selected and the show can go on. That's what I'm thinking of doing. If I have a good patch, I'll pull request.
Thoughts welcome,