Questions tagged [omniauth-facebook]

Facebook OAuth2 Strategy for OmniAuth.

Facebook OAuth2 Strategy for OmniAuth.

Useful links

247 questions
0
votes
1 answer

Signing out of rails app when signed out of facebook

Haven't seen this question asked, but if something similar, please point me that way! I learned the fb login from the railscast pro eps (http://railscasts.com/episodes/361-facebook-graph-api?view=asciicast) but can't get the logout to work properly…
Clam
  • 935
  • 1
  • 12
  • 24
0
votes
1 answer

Saving user location, bio, website upon signup through Facebook - Omniauth Facebook

Within my rails app, when someone signs up with Facebook, I'm trying to grab their email, name, image, location, bio, website. I'm using Omniauth Facebook Here is the guide I followed. The signup works smoothly, I get no errors in the browser or in…
Katie H
  • 2,283
  • 5
  • 30
  • 51
0
votes
1 answer

Why ActiveModel::ForbiddenAttributesError error?

Here's my model class User < ActiveRecord::Base def self.from_omniauth(auth) where(auth.slice(:provider, :uid)).first_or_initialize.tap do |user| user.provider = auth.provider user.uid = auth.uid user.name = auth.info.name …
mlemboy
  • 387
  • 2
  • 3
  • 15
0
votes
0 answers

Making personal profile after Devise / Omniauth-facebook authentication

I'm relatively new to the RoR community and I'm trying to make a personal profile for each users after their authentications through the original Devise or Omniauth-Facebook. I am sort of stuck on where to go after implementing authentications…
0
votes
2 answers

undefined local variable or method `user' omniauth callbacks controller

I'm trying to implement facebook login authentication using devise and omniauth, but I got an error during the callback section. The error goes like this... > `User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."provider" = ? AND…
ahk
  • 17
  • 7
0
votes
1 answer

Is the provider and uid stored somewhere even after deleting a user using Devise and Omniauth?

Is the provider and uid stored in another table after deleting a user using Devise and Omniauth? In my Rails 4 app I was trying to integrate Omniauth-facebook with Devise, following the Devise and Omniauth Overview Guide I successfully logged in…
Zedrian
  • 909
  • 9
  • 29
0
votes
1 answer

NoMethodError with Devise and Omniauth -rails

I am in the process of trying to integrate Omniauth Facebook login with Devise for a Rails application that I'm currently in the early stages of developing. I'm a (very) junior developer, and I've hit a roadblock which I'm unsure how to resolve. So…
0
votes
1 answer

Rails, Devise & Omniauth - See what's in env["omniauth.auth"]

I've set up a rails project using devise and omniauth-facebook. It works but I can only access certain information using user.email =auth.info.email || "" etc. I'm pretty new to this, especially JSON so I'm wondering is there a quick and easy way to…
Al D
  • 657
  • 2
  • 10
  • 27
0
votes
1 answer

Facebook ignores scope

I am using Devise and omniauth-facebook to do Facebook login for my website. This is defined in an config/initializers/devise.rb: config.omniauth :facebook, app_id, app_secret, scope: 'email' For my website, I need the email address only. However,…
0
votes
0 answers

Paperclip pictures uploaded with URL doesn't get stored

I'm using paperclip to store pictures on Amazon S3. It works fine if I upload via a normal form, but I also want to set users' profile pictures to their facebook picture by default if they are registering with facebook via omniauth. It sets the…
sanny
  • 156
  • 1
  • 14
0
votes
0 answers

Facebook Auth / CORS preflight and Omniauth

I'm implementing a facebook authentication with client side flow. After that, I'd like to integrate with the Omniauth framework on backend using the cookies strategy. The problem is that after login on facebook and try to call the Omniauth callback,…
armoucar
  • 408
  • 1
  • 4
  • 15
0
votes
1 answer

Where does the method 'where' come from when using the Omniauth-Facebook gem?

The code shown below is commonly utilized when integrating the rubygems, Omniauth and Omniauth-Facebook, into a rails app. I need an explanation of this piece of code, line by line. class User < ActiveRecord::Base def self.from_omniauth(auth) …
Denzel Pressey
  • 117
  • 1
  • 5
0
votes
1 answer

Where is the "Register Now" button on the Facebook Developers homepage? It isn't appearing for me

I am trying to set up a Facebook Developer account. According to this, I need to visit the Facebook Developers homepage and then click the "Register Now" button at the top. However, that button doesn't seem to show up. I have tried going to that…
0
votes
0 answers

omniauth-facebook Gem: omniauth.auth sometimes has nil provider and uid?

My application is authenticating users with the omniauth-facebook gem version 1.6.0. It seems that sometimes within the facebook action in the OmniauthCallbacksController, the request.env["omniauth.auth"] hash will have nil values for provider and…
James
  • 5,273
  • 10
  • 51
  • 76
0
votes
2 answers

login using omniauth-facebook "undefined method `slice' for nil:NilClass" error

i have a problem using omniauth-facebook. i tried to login in my rails app using facebook but its giving me an error and the env['omniauth.auth'] is throwing a nil value here is the error.. NoMethodError at /auth/facebook/callback undefined…
nsantiago2719
  • 325
  • 1
  • 3
  • 13
1 2 3
16
17