Created
July 11, 2012 21:05
-
-
Save jdjkelly/3093536 to your computer and use it in GitHub Desktop.
Creating 400 test users with Facebook's test user API
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
require 'net/http' | |
require 'uri' | |
require 'open-uri' | |
400.times do | |
begin | |
http = Net::HTTP.new("graph.facebook.com", 443) | |
http.use_ssl = true | |
http.start do |http| | |
req = Net::HTTP::Get.new("/APPID/accounts/test-users?installed=true&name=josh&locale=en_US&permissions=xmpp_login&method=post&access_token=TOKEN") | |
response = http.request(req) | |
resp = response.body | |
puts resp | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment