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 8655969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:09:51+00:00 2026-06-12T15:09:51+00:00

Hey so I cannot seem to get Facebook, OmniAuth, Rails, and Heroku to play

  • 0

Hey so I cannot seem to get Facebook, OmniAuth, Rails, and Heroku to play together. Everything works fine locally.

The Problem

What happens? It just doesnt do anything at all when I click login. On Firebug, locally it shows a Facebook Oauth request got fired, but on the real site no such request happens. Instead in console I get the message FB.login() called before FB.init().

When I change the url on Facebook and try to login locally, I get an error message from Facebook which means a request happened. So, I think the issue has something to do with certificates.

This didnt solve it: omniauth with facebook not working on production, although Im not sure what to put in for permissions. I don’t use any extended fb graph permissions and it worked locally without specifying any (see initializer below).

My Setup

On Facebook under ‘Select how your app integrates with Facebook’ I have Website with Facebook login selected and for ‘Site URL’ I have either the working http://0.0.0.0:3000 or the not working http://mysite.tld.

Here is my omniath.rb initializer

OmniAuth.config.logger = Rails.logger

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :facebook, ENV['FACEBOOK_APP_ID'], ENV['FACEBOOK_SECRET'], { 
    client_options: { ssl: { 
        ca_file: '/usr/lib/ssl/certs/ca-certificates.crt',
        ca_path: "/etc/ssl/certs"
    }}
  }
end

Also I am using a custom domain name with masking, just fyi in case that is the problem. Again I don’t think so because I would get an error screen instead of nothing, but just in case.

Thanks, and I really look forward to any tips or troubleshooting you can suggest! I plan to blog a tutorial on setting all this up once I get it working cause its been a nightmare.

  • 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-12T15:09:52+00:00Added an answer on June 12, 2026 at 3:09 pm

    The problem was that I misspelled a variable. The code was fine…

    Thanks @Ashitaka for your double-effort in helping me!

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

Sidebar

Related Questions

Hey all, I cannot seem to get a simple ajax working between a php
Hey guys I simply cannot get this to work. I have some content that
hey guys having this really simple problem but cant seem to figure out have
Hey, I have been looking on google and I cannot seem to find anything
Hey guys I'm building my first website and I cannot figure how to get
hey guys, i can't seem to get it working. i have a div.post with
Hey i have been looking around and i cant find a way to get
Hey its really hard to define an exact title for my problem. I am
hey i followed a ruby on rails guide when i tried to run it
Possible Duplicate: non static method cannot be referenced from static context hey i have

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.