Skip to main content

Posts

Showing posts from November, 2015

Omniauth facebook email id not getting in rails?

Omniauth facebook email id not getting in rails?
Better way use the koala api get the email address Steps
1)gem "koala" 2)bundle install 3)Get the request.env['omniauth.auth'] 3)@graph = Koala::Facebook::API.new(request.env['omniauth.auth']['credentials']['token']) 4)user_email = @graph.get_object("me?fields=email")