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")
After reading this blog i very strong in this topics and this blog really helpful to all Ruby on Rails Online Course Bangalore
ReplyDelete