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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T08:53:11+00:00 2026-05-20T08:53:11+00:00

I have a site that uses, exclusively, Facebook authentication as it’s membership system. In

  • 0

I have a site that uses, exclusively, Facebook authentication as it’s membership system. In the Facebook app settings the callback url is set to the site’s domain.

I’d like to continue development of the site, locally… while keeping the site live as well. However, since the callback url is the site’s live domain name and not the localhost address, the Facebook authentication parts fail.

Is it possible to have both a localhost and a domain callback url active? If not, what’s standard practice in continuing local development of a site that is already live?

  • 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-20T08:53:12+00:00Added an answer on May 20, 2026 at 8:53 am

    Assuming you use ASP. But will work for any language.

    You can create another application in facebook with http://localhost as the domain name. Store the appid and secret in the web.config file separately.

    Then in the code behind of your master page, check for the Request.ServerVariables(“HTTP_HOST”) and if it is localhost, use the appropriate settings from the web.config file.

    If Request.ServerVariables("HTTP_HOST").StartsWith("localhost") Then
        FBAppID = System.Configuration.ConfigurationManager.AppSettings.Item("FBAppIDLocal")
    Else
        FBAppID = System.Configuration.ConfigurationManager.AppSettings.Item("FBAppID")
    End If
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an app that uses Facebook exclusively as a provider for authentication and
We have an MVC3 site that uses the ASP.NET Membership Provider with Forms Authentication
I have a web site that uses Membership and form authentication: ASP.NET Page: <asp:LoginView
I have an ASP.NET MVC intranet site that uses Windows Authentication (Kerberos) exclusively with
I have a PHP site that uses a fairly common authentication scheme. The entire
I have a ASP.NET MVC site that uses forms authentication with custom AuthorizeAttribute on
I've got a site that uses Forms Authentication (with a custom membership provider, but
I have an ASP.NET MVC 3 web site that uses Windows Authentication running under
i have a web site that uses forms authentication. the problem is that i
I have a site that uses the asp.net membership tables (ASP 3.5 site). I

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.