Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7939359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T23:04:37+00:00 2026-06-03T23:04:37+00:00

Omniauth branch 0-3-stable of git://github.com/intridea/omniauth.git Rails 3.0.7 When Omniauth redirects a user to the

  • 0

Omniauth branch 0-3-stable of git://github.com/intridea/omniauth.git
Rails 3.0.7

When Omniauth redirects a user to the Facebook auth dialog by making a GET call to “/auth/facebook”, if that user clicks “Cancel” from the auth dialog, then we can the callback request

GET "/auth/facebook/callback?error_reason=user_denied&error=access_denied&error_description=The+user+denied+your+request." 

which Omniauth immediately appears to redirect to:

GET "/auth/failure?message=invalid_credentials"

Unfortunately, when this is a response to an app. invitation generated by the FB request dialog, there is no identifying information on which user has “Canceled” out of the auth dialog. If we could send along some identifying information with the Omniauth request, we could allow ourselves to “remember” which user did the “Canceling” which would help us track explicit denials on the back end.

Is there any way to send along data with the call to “/auth/facebook” that would simply get repeated back to us in the resulting call to “/auth/facebook/callback”? This would be similar to the “data” parameter in the requests dialog documentation.

Thanks,
Wes

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T23:04:38+00:00Added an answer on June 3, 2026 at 11:04 pm

    You can pass through a ‘state’ param which will be passed along to the callback url.

    eg. you’d make a call to ‘/auth/facebook?state=SOME_INFO’

    Then in the controller action that you route ‘/auth/facebook/callback’ to, you retrieve just as you would a normal param:

    info = params[:state]

    The param must be named ‘state’. This is mentioned in the omniauth-facebook documentation under the section ‘Per-Request Options’.
    https://github.com/mkdynamic/omniauth-facebook

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

https://github.com/intridea/omniauth.git (at master) is not checked out. Please run `bundle install` (Bundler::GitError) So what
I am using the omniauth-facebook gem in rails 3 following the tutorial at http://blog.railsrumble.com/blog/2010/10/08/intridea-omniauth
I setup Facebook login with Devise and omniauth with these instructions https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview The Devise
I am developing a Rails app using OmniAuth, OmniAuth-salesforce and this gem: https://github.com/heroku/databasedotcom I
I am using Omniauth in my Rails project, and I'd like to hide /auth/facebook
I'm using OmniAuth, and after logging in via Facebook, I get my omniauth.auth key,
Using the omniauth plugin for Rails to find a user, I get a SQL
Getting this error after updating OmniAuth gem to 1.1: Started GET /users/auth/facebook for 127.0.0.1
I'm using Omniauth to get credentials from Twitter for a specific User. Part of
I followed Ryan Bates Omniauth Part1 railscats http://railscasts.com/episodes/235-omniauth-part-1 . I put twitter and Facebook

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.