-
I need fetch user’s friends data with next fields: id, name,
gender, birthday, city, country, profileUrl, pic, pic_small,
pic_big, is_app_user.Before I used FB.Data.query, but now it’s deprecated.
FB.Data.query('select uid, first_name, last_name, name, pic, pic_small, pic_big, birthday_date, sex, current_location, profile_url, is_app_user from user where uid in (select uid2 from friend where uid1 = {0}', uid). -
How to fetch friends, who are using app?
I can get all fields what i need, but for example for pictures i need to do additional requests. Can i get all needed fields in single request?
You can still use same FQL query with Graph API and JavaScript SDK
You for sure can also get almost same data with Graph API not using FQL at all:
You have a bit different names and other format (ex
location) for those details and miss the picture details in results but this is simple,userpicture is available on URL in formhttp://graph.facebook.com/USER_ID/picture