def facebook
uid = Number.number(7)
auth = Omniauth.new()
username = "#{auth.first_name.downcase[0]}#{auth.last_name.downcase}"
email = "#{auth.first_name.downcase}@#{auth.last_name.downcase}.com"
{
provider: "facebook",
uid: uid,
info: {
email: email,
name: auth.name,
first_name: auth.first_name,
last_name: auth.last_name,
image: image,
verified: random_boolean
},
credentials: {
token: Crypto.md5,
expires_at: one_hour_from_now.to_i,
expires: true
},
extra: {
raw_info: {
id: uid,
name: auth.name,
first_name: auth.first_name,
last_name: auth.last_name,
link: "http://www.facebook.com/#{username}",
username: username,
location: {
id: Number.number(9),
name: city_state
},
gender: gender,
email: email,
timezone: timezone,
locale: 'en_US',
verified: random_boolean,
updated_time: updated_time
}
}
}
end