By which I mean when people can make sub lists of friends (i.e. work friends, family, close friends).
Is it possible to access these, as I would like my app to let the user target specific groups of friends to send messages to without having to manually choose each person?
Any searches for ‘facebook groups’, ‘facebook friends groups’ or ‘friends list’ turns up info on how to access the main friends list – which I can already do.
Has anyone managed to do this before? On the one hand I think it could be prohibited due to privacy issues, on the other hand I would think Facebook would prefer that users could message groups of friends in apps.
You can most certainly get at this data. There is a specific permission called
user_friendlists. You’ll have to request that permission from your users and once you have it, all you have to do is query this Graph end point –It’ll return data similar to this –
As you can see, there are both types of friend lists here. Automatically generated ones such as
And some custom ones that I manually created –
To get at the actual friends listed within these lists, you use the
/membersend point.This is only the read permission, you’ll need the additional
manage_friendliststo be able to create/edit those lists.