Created
March 29, 2018 19:16
-
-
Save menushka/3cfbae5cf8bc084cb753035642f3eec1 to your computer and use it in GitHub Desktop.
Generate Facebook Test Users
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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