Created
January 19, 2012 15:40
-
-
Save dennispaagman/1640647 to your computer and use it in GitHub Desktop.
Facebook example script
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
# 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