Skip to content

Instantly share code, notes, and snippets.

@djfpaagman
Created January 19, 2012 15:40
Show Gist options
  • Save djfpaagman/1640647 to your computer and use it in GitHub Desktop.
Save djfpaagman/1640647 to your computer and use it in GitHub Desktop.
Facebook example script
# encoding: UTF-8
require 'json'
institutes.each do |institute|
begin
unparsed = open("https://graph.facebook.com/#{institute[:facebook]}").read
unless unparsed == "false"
facebook = JSON(unparsed)
# save your data
end
rescue
next
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment