The Facebook API has a call $facebook->api_client->friends_getAppUsers(); and that returns the friend ids of a user who is using the app.
Now say I want to select from my db table all the rows that match all those friend ids.
The only way I can think of doing it would be
SELECT * FROM my_table WHERE uid IN(friend1, friend2, friend3, friend4 ... friend100);
But wouldn't this SELECT by prohibitive, performance wise? Is there another way to achieve the same thing? This should be a pretty common thing in facebook apps.
If you look at the Causes app it allows you to see the Causes of your friends. I'm guessing the app would have to pick out all rows from a Causes table that match all the user ids.
Am I going about this the wrong way?