Topic-icon URI Redirect Errors - All Services

Active Subscriptions:

None
10 years 5 months ago #56374 by trechriron
I have a staging site - staging1.dragonflight.org (http) for the site www.dragonflight.org (http).

I have setup two APIs for each social service, one for live site and one for staging. Services: Facebook, Google, Twitter, Yahoo, Meetup, Instagram.

I have configured staging site with staging API IDs/secrets.

All the requests still contain the live site URL! So all redirects are failing.

I have setup the APIs as per instruction pages here at SF. I used the staging1.dragonflight.org where asked for (modified the Google redirect URIs for example).

Why is JFBConnect still sending the live site URL in the request?
The topic has been locked.
Support Specialist
10 years 5 months ago #56384 by alzander
First off, I wanna go to your convention! Sounds awesome. I'm in Florida though, so it would be a bit of a trip :)

As to your issues... Facebook looks like it should work, but the app is still in sandbox mode, so I can't fully test. We treat Facebook a bit differently though, and I can see some issues with Instagram at least. However, I'm not sure exactly what. To determine the URL to redirect to, we use Joomla's built-in function:
JURI::base()
That should return the root domain of your site. Generally, this is detected automatically. However, some SEF extensions or the $live_site setting in the configuration.php file can force this to another URL. My only guess is that something is forcing that URL to the live site, even while on dev, but I can't tell what from what I see so far.

To note, it is not a setting in your application. JFBConnect sets the redirection URL during the authentication process. Your applications just need to be setup to recognize it, but they are likely configured correctly, so I would not focus there.

Hopefully that gives you some ideas, but if not, let us know and we'll gladly help investigate further.

Thanks,
Alex
The topic has been locked.