Questions tagged [omniauth-facebook]

Facebook OAuth2 Strategy for OmniAuth.

Facebook OAuth2 Strategy for OmniAuth.

Useful links

247 questions
5
votes
2 answers

CSRF detected error message on refreshing webpage

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…
5
votes
1 answer

OAuth2 Error during facebook authentication in Rails

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…
5
votes
2 answers

Ruby on Rails OmniAuth Facebook works for Live App on Heroku but not Test App on Cloud9

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…
Okomikeruko
  • 1,123
  • 10
  • 22
5
votes
1 answer

Omniauth facebook - Auth info fields

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 #
sethi
  • 1,869
  • 2
  • 17
  • 27
5
votes
1 answer

Rails - Omniauth-facebook App_id required error

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…
4
votes
4 answers

ERROR -- omniauth: (facebook) Authentication failure

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…
user922592
4
votes
2 answers

Broken FB-omniauth after bundle update, invalid credentials

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,…
nobilik
  • 736
  • 9
  • 29
4
votes
0 answers

sign in VS sign up | devise with 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…
4
votes
0 answers

CORS issue with Facebook JS SDK cookie and omniauth-facebook

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…
Felipe Arenales
  • 991
  • 1
  • 8
  • 19
4
votes
1 answer

Rails 4 - Devise Omniauth and allowing a single user to authenticate with multiple social media strategies

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…
Mel
  • 2,481
  • 26
  • 113
  • 273
4
votes
3 answers

Omniauth facebook how to set up properly configs in facebook apps dashboard?

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…
user2931706
  • 195
  • 1
  • 11
4
votes
1 answer

Rails how to create Authlogic session from Omniauth Facebook

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,…
cumi
  • 41
  • 2
4
votes
2 answers

Omniauth Facebook not returning email and gender rails 4

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) …
4
votes
1 answer

No route matches [GET] "/auth/facebook" in ruby on rails 4

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:…
Saravana
  • 115
  • 7
4
votes
3 answers

Rails devise omniauth-facebook .persisted? returning false

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…
Al D
  • 657
  • 2
  • 10
  • 27
1
2
3
16 17