Facebook Graph API - get friends info

前端 未结 6 548
盖世英雄少女心
盖世英雄少女心 2020-12-31 23:40

I\'m trying to figure out how to get users friends information using either Graph API or FQL

Just for testing I would like to get my friends education_histroy<

6条回答
  •  孤城傲影
    2021-01-01 00:01

    You can use this code you will get name, profile picture, ID of your friends.

    FB.api('/me/taggable_friends', function(response) { for (var i = 0; i < friend_data.length; i++) { results += ''+friend_data[i].name; } });

    Before that in your developer account created app-> go to tools and support->graph API explorer-> click Get Token. In that window click user_tagged_places and click Get Access Token. You will get your friends list.

提交回复
热议问题