class Contacts::Facebook
Public Instance Methods
contacts()
click to toggle source
# File lib/contacts/facebook.rb, line 9 def contacts return @contacts if @contacts end
real_connect()
click to toggle source
# File lib/contacts/facebook.rb, line 14 def real_connect f = MiniFB.get(@password, @login, :type => "friends") raise "Didn't find users" unless f.data @contacts = f.data.map do |hashie| hashie.values end rescue Exception => e raise AuthenticationError, "Facebook authentication failed" end