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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T23:31:39+00:00 2026-05-14T23:31:39+00:00

We have a CMS that supports multiple sites, one of our features allows our

  • 0

We have a CMS that supports multiple sites, one of our features allows our users (The site admin) to connect to the site facebook account to allow status updates, create events and upload pictures to FB from with in the CMS.

The authentication needs to occur once since each site may have multiple site admins that do not have access to the site FB user name and password. We use iframe and authenticate using $facebook->require_login() which redirects the user to the FB login and authentication pages.

All this works just fine but when the user hits “Allow” the authentication will break as it will only redirect to whatever is in the “Post-Authorize Redirect URL” field making the app obsolete for any other domain except the one in the “Post-Authorize Redirect URL”

I know other API’s authentication methods like in Vimeo and YouTube will allow you to specify a NEXT parameter which is the equivalent of the “Post-Authorize Redirect URL” and it can be set at run time.

How can I make this work for multiple domain names?

Any hints on this issue will be of great help

  • 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-14T23:31:39+00:00Added an answer on May 14, 2026 at 11:31 pm

    If the call back page is in your domain, that page could acts as a proxy, all you have to do is pass the parameters needed by the proxy page to redirect the user to the proper location. For example I used the URL of the domain I want to redirect and an ID needed for me to know which user I am dealing with.

    My code end up looking something like this:

    Authorize link:

    $authorizeURL = "http://www.facebook.com/authorize.php?api_key=" . $facebookApiKey . "&v=1.0&ext_perm=status_update&domainName=$domainName&path=/path/to/my/next/page.php";

    and the “proxy” code would like something like this:

    
    
        $path =  $_GET['path'];
        $query = $_GET['query'];
        $domainName = $_GET['domainName'];
    
        //if you happen to have a query, get the values like this:
        parse_str($query, $queryValues);
        $id = $queryValues['id'];
    
        // construct the url where your user came from or where you want them to be redirected.
        $url = "http://$domainName/$path?$query";
    
        header("Location: " . $url);
        exit;
    
    
    

    This is not the whole code, but it will give you an idea on how to do it.

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

Sidebar

Related Questions

I have a CMS website written in aspx 2.0 that allows users to build
For our CMS we have a site manager that defines the site's tree structure
I have a CMS that multiple people administer. We enable/disable some of our shipping
I have a activate button in my CMS that allows the user to quickly
I have a CMS running. I am seeing that my CMS users are entering
I have a CMS application that manages multiple websites, today whenever i change the
I have a CMS system that allows people to also use HTML code, but
I'm working on a multi-site CMS that has a notion of cross-publication among sites.
This is a bit of a specific request unfortunately. I have a CMS that
I have a open source editor on the cms that I am making that

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.