Skip to content

Instantly share code, notes, and snippets.

@menushka
Created March 29, 2018 19:16
Show Gist options
  • Save menushka/3cfbae5cf8bc084cb753035642f3eec1 to your computer and use it in GitHub Desktop.
Save menushka/3cfbae5cf8bc084cb753035642f3eec1 to your computer and use it in GitHub Desktop.
Generate Facebook Test Users
#!/bin/sh
APP_TOKEN="FACEBOOK APP TOKEN"
APP_ID="FACEBOOK APP ID"
NUMBER_OF_USERS=500
createTestUser () {
curl -s -i -X POST \
-d "=" \
-d "access_token=$APP_TOKEN" \
"https://graph.facebook.com/v2.12/$APP_ID/accounts/test-users"
}
for ((i=0;i<$NUMBER_OF_USERS;i++)); do createTestUser & done
wait
echo "DONE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment