Questions tagged [omniauth-facebook]

Facebook OAuth2 Strategy for OmniAuth.

Facebook OAuth2 Strategy for OmniAuth.

Useful links

247 questions
33
votes
7 answers

How to get rid of OpenSSL::SSL::SSLError

I am trying to authenticate users with Facebook using OmniAuth. Initially, it was working, but along the way it just stopped working and started to give me this error message: OpenSSL::SSL::SSLError SSL_connect returned=1 errno=0 state=SSLv3…
Eugene
  • 331
  • 1
  • 3
  • 3
19
votes
3 answers

Rails 4.1.5 omniauth strong parameters

After upgrading Rails 4.1.4 to 4.1.5 i get errors with my facebook omniauth session everything was working fine since then. When i create a User Session i get an ActiveModel::ForbiddenAttributesError Route: match 'auth/:provider/callback', to:…
12
votes
2 answers

Devise/OmniAuth Override default callback url

I'm using Devise 3.5 with Omniauth in a Rails 4 app. I've created an integration with Facebook that allows a user to connect their Facebook account to my app. Currently when the user clicks the connect button, they're sent to /user/auth/facebook and…
Daniel Bonnell
  • 4,817
  • 9
  • 48
  • 88
11
votes
5 answers

Latest omniauth-facebook gem breaks devise

ruby '2.6.3' gem 'rails', '~> 6.0.2', '>= 6.0.2.1' I'm using the latest omniauth-facebook and devise together Gemfile: gem 'devise' gem 'omniauth-facebook' Getting this error when starting the…
jco40
  • 297
  • 3
  • 9
9
votes
1 answer

omniauth-facebook cannnot get email address

I created new Rails App and install Devise and omniauth-facebook gem. And setting my Facebook App, as testing environment. So, I logged in via facebook and signed up my new Rails app, but request.env did not contain email address.info. this is…
myoo
  • 333
  • 2
  • 11
8
votes
3 answers

get first_name and last_name fields from facebook omniauth

I am now implementing omniauth feature into my app. Everything works fine except that i cant get the first and last name from the facebook. Here is my model code. def self.from_omniauth(auth) user = User.where(email: auth.info.email).first …
Abhilash
  • 2,864
  • 3
  • 33
  • 67
8
votes
2 answers

omniauth for rails and ios authentication

I have a rails app that handles the api for an iOS client. I use devise, omniauth-facebook for rails. for the iOS client I'm using Accounts and Social framework for the facebook authentication. I've grabbed the oauth token and passing it to rails…
7
votes
2 answers

Rails server stopped running after omniauth update (breaks devise)

I followed the pull request from the branch to the master (devise) but I'm still having the error and I can't deploy the api to the server anymore I also tried the solutions provided in this question but was not successful: Latest omniauth-facebook…
7
votes
3 answers

undefined local variable or method `flash' for #

I am building a Rails-API using Omniauth-facebook and Devise-token-auth with Angular and ng-token-auth for the frontend. However when logging in with facebook I am presented with the error: undefined local variable or method `flash' for…
7
votes
5 answers

Ruby on Rails Omniauth facebook doesn't return email

I have been trying for days to setup my Omniauth for facebook I don't know what am I doing wrong. I am not able to get the email of the user. The returned hash only contains the "name" and the "uid" not even "first_name" and "last_name" devise.rb: …
Ayman Salah
  • 1,039
  • 14
  • 35
7
votes
1 answer

How to specify facebook graph API version while using devise and omniauth-facebook

I'm using devise and omniauth-facebook authentication in my rails 4 application. Facebook has moved on to v2.x graph API. (deadline for api migration is April 30, 2015). During authentication, facebook's login dialog show the following message "You…
6
votes
3 answers

Facebook authentication data returns nil, except name and email

I used the Devise gem to set up a User model for my app. I'm trying to work in Facebook authentication using Omniauth. I can retrieve the Name and Email data, but I'm having trouble getting any other public_profile data. In this example I'm trying…
Joe Morano
  • 1,715
  • 10
  • 50
  • 114
6
votes
1 answer

Rails 4 + omniauth facebook - csrf detected

I am working on my RoR4 app to enable users to login via existing facebook account. I registered a facebook app (a live and tested version) and stored its api and secret in development.rb. I used omniauth-facebook and devise gems and encountered an…
6
votes
2 answers

Getting Facebook callback error even after enabling 'Embedded browser OAuth Login' and specifying the callback url

I have a rails(4.2.0) application that uses Facebook login functionality. The main gems are devise(3.4.0) and omniauth-facebook(2.0.0). I have registered the application on Facebook and have been using its test app for development. The Facebook…
Prasad Surase
  • 6,486
  • 6
  • 39
  • 58
6
votes
1 answer

Facebook NoAuthorizationError after passing signed_parameters manually

I've had a lot of issues trying to get the client-side login to work, so I'm going to take the liberty of referencing a ton of other questions here... none have resulted in an answer that has worked for me. CONTEXT Server-side login works…
1
2 3
16 17