From f016e035be0760cfc72792c6aff43f3b8d4daf14 Mon Sep 17 00:00:00 2001 From: Bobby Marko Date: Fri, 6 May 2011 16:55:04 -0700 Subject: [PATCH] switched nickname to pull from facebook username instead of the end of the users profile url --- oa-oauth/lib/omniauth/strategies/facebook.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oa-oauth/lib/omniauth/strategies/facebook.rb b/oa-oauth/lib/omniauth/strategies/facebook.rb index d6c701e..ea87e33 100644 --- a/oa-oauth/lib/omniauth/strategies/facebook.rb +++ b/oa-oauth/lib/omniauth/strategies/facebook.rb @@ -45,7 +45,7 @@ module OmniAuth def user_info { - 'nickname' => user_data["link"].split('/').last, + 'nickname' => user_data["username"], 'email' => (user_data["email"] if user_data["email"]), 'first_name' => user_data["first_name"], 'last_name' => user_data["last_name"],