From b838ffe8cc93dcc9d1cfd5def62d98f4909e1563 Mon Sep 17 00:00:00 2001 From: James Smith Date: Fri, 5 Nov 2010 19:10:37 -0400 Subject: [PATCH] Added profile image to facebook strategy. --- oa-oauth/lib/omniauth/strategies/facebook.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/oa-oauth/lib/omniauth/strategies/facebook.rb b/oa-oauth/lib/omniauth/strategies/facebook.rb index 0052fcd..9aebec5 100644 --- a/oa-oauth/lib/omniauth/strategies/facebook.rb +++ b/oa-oauth/lib/omniauth/strategies/facebook.rb @@ -32,6 +32,7 @@ module OmniAuth 'first_name' => user_data["first_name"], 'last_name' => user_data["last_name"], 'name' => "#{user_data['first_name']} #{user_data['last_name']}", + 'image' => "http://graph.facebook.com/#{user_data['id']}/picture?type=square", 'urls' => { 'Facebook' => user_data["link"], 'Website' => user_data["website"],