Skip to content

Instantly share code, notes, and snippets.

@theist
Created September 24, 2012 06:08
Show Gist options
  • Save theist/3774553 to your computer and use it in GitHub Desktop.
Save theist/3774553 to your computer and use it in GitHub Desktop.
Facebook id checker
require 'fb_graph'
ids = File.new('data').readlines;
for id in ids do
tm = id.split(';')
user = tm[2]
begin
fbu = FbGraph::User.new(user)
fbu.fetch()
puts id.chomp + ";ok"
rescue
puts id.chomp + ";bad"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment