PHP Facebook api get all friends details
You can retrieve the friends details from facebook api by using FQL(facebook query language)
Use the following api call to list all friends and their details.
$data['friends'] = $this->facebook->api(array('method'=>'fql.query',
'query'=>"SELECT uid,name,first_name,middle_name,
last_name,pic_big,pic_square,
pic_small,pic_small_with_logo,
pic_square_with_logo,pic_with_logo,
wall_count,username,third_party_id,
subscriber_count,sex,profile_update_time,
pic,mutual_friend_count,locale,can_post,
can_message,profile_url,email,website,
friend_count FROM user WHERE uid IN
(SELECT uid2 FROM friend
WHERE uid1 = '".$user."')"));
Please Get back to us at support@innovativewebz.com if you have any questions.
No comments:
Post a Comment