Gets all the members of a group and outputs their names to the console.
Just gets a list of all members in a group.
- Clone this repro, or download the .zip
- Install [node.js] (https://nodejs.org/)
- In the console, go to your local repository (e.g. cd "C:\GitRepros\FacebookGetGroupMembers")
- Run [npm install] (https://docs.npmjs.com/cli/install) to install the dependencies (express).
- Set up an app on the [Facebook developers page] (https://developers.facebook.com/apps/) and get the id.
- Paste the id into the 'appIdLocal' variable in index.html.
- Go to the facebook group you want and get the group id from the url. It's usually a long number. Paste it into 'groupId' in index.html
- In the console, type -> node index.js
- Go to localhost:8081 in the browser, log in to facebook using the button, hit F12 in the browser to view the console and click 'Get Members'.