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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:58:33+00:00 2026-05-27T10:58:33+00:00

I have set up facebook authentication for my site. When I click on sign-in

  • 0

I have set up facebook authentication for my site.

When I click on “sign-in with facebook” it throws me to the following url:

https://graph.facebook.com/oauth/authorize?redirect_uri=http%3A%2F%2Fexample.com%2Fla_facebook%2Fcallback&display=page&client_id=126197457491070

The redirect_url is “example.com”, which is obviously not correct or allowed.

However, nowhere in my code or in the authentication package I’m using is example.com set, so this must be generated by facebook? Where can I change it? Why is it not the same as the domain and website I’ve set in the facebook app settings?

I get the following error because of that redirect_url:

{ 
   "error": { 
      "message": "Invalid redirect_uri: Given URL is not permitted by 
      the application configuration.", 
      "type": "OAuthException" 
  } 
} 

I’m using Django with Heroku and django-la-facebook (https://
github.com/cartwheelweb/django-la-facebook)

  • 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-05-27T10:58:34+00:00Added an answer on May 27, 2026 at 10:58 am

    If you look at the code of the django app you are using for authenticating through facebook, you’ll see something like this:

    def callback_url(self):
            """
    current site id
    grab base site url
    grab callback url
    return base and callback url
    """
    
            current_site = Site.objects.get(pk=settings.SITE_ID)
            # @@@ http fix
            base_url = "http://%s" % current_site.domain
            callback_url = reverse("la_facebook_callback")
            return "%s%s" % (base_url, callback_url)
    

    as burhan pointed, the default contrib.sites domain is being used as the base for the redirect uri, so you should fix it to be your actual domain.

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

Sidebar

Related Questions

After following: https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview I can sign up a user via Facebook. But I'm struggling
I have set up the URL scheme suffix on Facebook to have a paid
My facebook app iframe height is stuck at 800px. I have it set at
I have a promotional Facebook page set up which anyone is allowed to comment
I have a game application released at the Facebook platform. I need to set
I'm new to Django and trying to set up a Facebook connected site. There
I have an <fb:requestform> in an iFrame Facebook app. I have set target=_parent, so
I made an application in android in which I set Facebook authentication on button
While trying to use Facebook's mobile authentication, I realized that they don't set any
I try to set up devise and omniauth by follow https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview and deploy to

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.