I am working on a Rails application where details are fetched from facebook. I have fetched the details from facebook. But when I refresh the webpage I got an error called CSRF detected. I have used some methods but all of them have failed.
The…
In development mode, during the authentication callback phase from localhost/auth/facebook, I am faced with the following error
OAuth2::Error
: {"access_token":"XXX","token_type":"bearer","expires_in":123}
This is the location of the error
This…
I have been struggling to figure this problem out for weeks, and I just can't figure it out.
I am managing a Ruby On Rails app that posts to Facebook. The development environment is in a Cloud9 IDE and the live site is hosted on Heroku. The app has…
I am trying to setup omniauth for a website for login through facebook. The issue is facebook is not sending the 'info' field.
I have setup 2 facebook apps for different environment.
For one app the response has the fields
#
I am interested in learning the omniauth authentication with rails so I checked different guides in which also contains Railscast #360.
When I create my own app with developers.facebook.com, it creates an App_id and secret for me. I set the…
I'm getting the following error using the latest Omniauth Facebook gem:
ERROR -- omniauth: (facebook) Authentication failure! invalid_credentials: OAuth2::Error, :
My credentials are correct and i seem to hit facebook ok but the callback errors…
The oauth data doesn't go to controller action. Can't understand what's wrong. There is one more auth provider in this controller and it works well the core is absolutely same.
devise 3.5.10
rails 4.2.4
devise.rb
config.omniauth :facebook,…
Rails 5.0.0.1
Ruby 2.3.1p112
gem 'devise'
gem 'omniauth'
gem 'omniauth-facebook'
I have a app working with omniauth-facebook and Devise which must have some required extra attributes on signup page. It works very well but I'm having some…
I'm implementing Sign In with Facebook on my project, which consists in two applications:
Frontend: plain HTML+CSS+JS;
Backend: Rails 5 API (omniauth 1.3.1, omniauth-facebook 3.0.0);
Even in my local environment, both applications run on different…
I am trying to make an app with Rails 4.
I have been trying (for 3+ years) to figure out how to get Devise and Omniauth to works, so that users can add multiple social media accounts to their user profile.
I've read all of the devise and omniauth…
I know this question has been asked many times but none of them helped me.
I'm trying to make a login with facebook to my website, but getting an error:
{"error":{"message":"Error validating verification code. Please make sure your redirect_uri is…
Here is my controller
def social_login
user = User.from_omniauth(env["omniauth.auth"])
session_params = user.attributes.merge("email" => user.email, "password" => user.crypted_password)
@user_session ||= UserSession.new(session_params,…
I need to fetch name, email, image and gender from facebook. I am getting name and image, but email and gender is not fetched from facebook. I am struggling for past 2 days, can anyone help me out here.
User model:
def self.from_omniauth(auth)
…
I am getting this error when i am using omniauth, rails 4.2.1. I have installed the omniauth gem & omniauth facebook.
routes.rb
get 'auth/:provider/callback', to: 'users#create'
get 'auth/failure', to: redirect('/')
get 'signout', to:…
I've spent the last day trying to fix this issue and it's driving me nuts.
Last night, I had facebook login working on my site and was retrieving basic user info. My problems started when I added :scope => 'user_birthday' to…