From your comment, I understand that you only care about users and email.
If you are using the accounts-facebook package for Userlogin, you already have a user email. To use the login, you must configure the service. You start this server server at startup ( more ):
ServiceConfiguration.configurations.upsert({ {service: "facebook"}, { $set: { appId: "XXX", secret: "XXX", requestPermissions: ['user_friends']
The next step is to get the user's friends. You can use the package for this, or you can do it manually: First you need to check if the user has allowed permission. Send a request to the Facebook API (API):
GET /{user-id}/permissions
Hope you get an object in the form:
{ "data": [ ..., { "permission": "user_friends", "status": "granted" } ] }
This means that the user has given you permission to receive your friends ( more ).
In the next step, you request the Graph-API for friendly words in more detail :
GET /v2.3/{user-id}/friendlists HTTP/1.1 Host: graph.facebook.com
This will give you all the user's girlfriends. At the last stage, you can request all or some of the lists (for example, "Close friends", "Acquaintances") with the help of more details :
GET /v2.3/{friendlist-id} HTTP/1.1 Host: graph.facebook.com