Skip to content

Instantly share code, notes, and snippets.

@jdjkelly
Created July 11, 2012 21:05
Show Gist options
  • Save jdjkelly/3093536 to your computer and use it in GitHub Desktop.
Save jdjkelly/3093536 to your computer and use it in GitHub Desktop.
Creating 400 test users with Facebook's test user API
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