Skip to content

Instantly share code, notes, and snippets.

@AgentAntelope
Created July 17, 2013 21:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AgentAntelope/6024569 to your computer and use it in GitHub Desktop.
Save AgentAntelope/6024569 to your computer and use it in GitHub Desktop.
def omniauth_github_response_for(user)
OmniAuth::AuthHash.new({
provider: 'facebook',
uid: user.uid,
info: {
name: user.name,
nickname: user.nickname,
image: user.image_url,
urls: {"Facebook" => user.facebook_url}
}
})
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment