How to get whole Facebook friends list from api

11,367

The friendlists endpoint is deprecated, as you can see in the breaking changes log: https://developers.facebook.com/docs/graph-api/changelog/breaking-changes#tagged-users-4-4

It would not have been what you expected anyway, it was only for lists, not friends directly. Access to all friends is not possible since a very long time. You can only get data of users/friends who authorized your App. You can use the /me/friends endpoint for that.

Another thread about getting all friends: Facebook Graph API v2.0+ - /me/friends returns empty, or only friends who also use my application

Share:
11,367
Louay Sleman
Author by

Louay Sleman

Updated on June 04, 2022

Comments

  • Louay Sleman
    Louay Sleman almost 2 years

    Is there a way to get the whole Facebook friends list using an api!

    I've tried a lot of thing and here's my shot:

    FacebookClient f = new FacebookClient(access_token);
    f.IsSecureConnection = true;
    dynamic friendlist = await f.GetTaskAsync(@"https://graph.facebook.com/me/friendlists?access_token="+access_token);
    t.Text = JsonConvert.SerializeObject(friendlist);
    

    But all I got is an empty data!
    Can anyone help me?