Sha256: 431931fe3060eb7890834ae5acf7537298a9992acacc5959bfff8060a77550d1
Contents?: true
Size: 687 Bytes
Versions: 4
Compression:
Stored size: 687 Bytes
Contents
module Omnisocial class FacebookAccount < LoginAccount def assign_account_info(auth_hash) self.token = auth_hash['credentials']['token'] self.remote_account_id = auth_hash['uid'] self.login = auth_hash['user_info']['nickname'] self.name = auth_hash['user_info']['name'] end def account_url "http://facebook.com/#{self.login}" end def picture_url if self.login.include?('profile.php') "https://graph.facebook.com/#{self.login.gsub(/[^\d]/, '')}/picture?type=square" else "https://graph.facebook.com/#{self.login}/picture?type=square" end end end end
Version data entries
4 entries across 4 versions & 1 rubygems