× Joomla Facebook Connect support forum

Topic-icon Cross-Domain Receiver Error - Ensure callback URL is correct

Support Specialist
15 years 1 month ago - 13 years 9 months ago #416 by alzander
There have been some posts that describe an error similar to the one below when using the Login module (along with others):

The Facebook Connect cross-domain receiver URL (SITENAME.com/index.php?opt ... .535%22%7D) must have the application's Connect URL (www.SITENAME.com/) as a prefix. You can configure the Connect URL in the Application Settings Editor.


This happens when you set the callback URL to use www and the site responds to the non-www version of the site (or vice versa).

You must set up your site to redirect the root of your domain to the callback you specify in your Callback URL. This is not only necessary for FB Connect, but also great for SEO purposes.

There are many ways to do this within different SEO components or the .htaccess file itself. In either case, it's important that you test your site both with and without www to ensure it functions properly:
SH404
- In the Configuration panel, go to the "Advanced" tab.
- Ensure the setting "301 redirect www/non-www" is set to Yes

.htaccess
The below code snippet comes from this page about half-way down in the section "301 Redirect Using Mod_Rewrite". Add the following line to your .htaccess file. Some/all of these lines may already be in there, so search to see if they are there first:
RewriteEngine On
rewritecond %{http_host} ^yoursite.com
rewriteRule ^(.*) http://www.yoursite.com/$1 [R=301,L]
Last edit: 13 years 9 months ago by alzander.
The topic has been locked.
Active Subscriptions:

None
15 years 1 month ago #525 by paz
Um, is this assuming the sh404SEF on a J1.5 is using the old 1.0 sh404SEF in legacy mode? The new beta 1.016 doesnt have such tab...
The topic has been locked.
Support Specialist
Yes it does :) When you go to the main SH404 page, in the top right theres a big blue bar that says

Click here to switch to extended display (with all available parameters)


Make sure you click that.
The topic has been locked.
Active Subscriptions:

None
I think, my error was for SEO generator plaguin. I disable it & Its works fine.. :)
The topic has been locked.
Active Subscriptions:

None
hi,

i installed jfb login ,module, and it worked fine before with joomsocial , now when i click register this site its redirect to [url:1gb5w4z9]http://www.kol-how-opensug-openjug.org/index.php?option=com_user&view=login&return=aHR0cDovL3d3dy5rb2wtaG93LW9wZW5zdWctb3Blbmp1Zy5vcmcvaW5kZXgucGhwP29wdGlvbj1jb21fY29tbXVuaXR5JnZpZXc9cmVnaXN0ZXImSXRlbWlkPTc4[/url:1gb5w4z9] this page. donot know why, pls help

thanks

Partha
The topic has been locked.
Active Subscriptions:

None
HAve the same problem here, Fixed the error , when i login through my facebook account it redirects me to a page 403 http error.
The topic has been locked.
Support Specialist
Ali,
Stop posting your problem in every thread. This one is not related to your issue at all and it causes confusion.
The topic has been locked.
Active Subscriptions:

None
ok in sh404SEF 301 thing is set to "YES" i still get this message

Invalid Argument

The Facebook Connect cross-domain receiver URL (<!-- m --><a class="postlink" href="rugbyleaguespace.com/index.php?option=co...%22%3A%220.005%22%7D">rugbyleaguespace.com/index.php?o ... .005%22%7D) must have the application's Connect URL (rugbyleaguespace.com/index.php?option=co...=frontpage&Itemid=53">rugbyleaguespace.com/index.php?o ... &Itemid=53) as a prefix. You can configure the Connect URL in the Application Settings Editor.
The topic has been locked.
Active Subscriptions:

None
14 years 7 months ago #2073 by lazlo
I need help understanding this statement:

The Facebook Connect cross-domain receiver URL (<!-- m --><a class="postlink" href="SITENAME.com/index.php?opt">SITENAME.com/index.php?opt ... .535%22%7D) must have the application's Connect URL (www.SITENAME.com/">www.SITENAME.com/) as a prefix. You can configure the Connect URL in the Application Settings Editor.


Where do you set the FB cross-domain receiver URL? In the xd_receiver.htm file itself?

Should it look like this?

(<!-- m --><a class="postlink" href="www.SITENAME.com/http://SITENAME.com/index.php?opt">www.SITENAME.com/http://SITENAME ... ex.php?opt ... .535%22%7D)

My connect URL is configured <!-- m --><a class="postlink" href="www.SITENAME.com/">www.SITENAME.com/ in the FB application settings editor.

Thanks in advance.
Laz

<!-- w --><a class="postlink" href="www.JasonsFitKitchen.com">www.JasonsFitKitchen.com
The topic has been locked.
Active Subscriptions:

None
My server don't use .htaccess and I don' t have SH404. How can I fix the problem??

I receive the message We suggest updating your Connect URL to: <!-- m --><a class="postlink" href="site.com/">site.com/ but when change it in application I receive We suggest updating your Connect URL to: <!-- m --><a class="postlink" href="wwwsite.com/">wwwsite.com/!!!!!!!!!!!!!!!!!!!!!!!!!!!!

sourcecoast wrote: There have been some posts that describe an error similar to the one below when using the Login module (along with others):

The Facebook Connect cross-domain receiver URL (<!-- m --><a class="postlink" href="SITENAME.com/index.php?opt">SITENAME.com/index.php?opt ... .535%22%7D) must have the application's Connect URL (www.SITENAME.com/">www.SITENAME.com/) as a prefix. You can configure the Connect URL in the Application Settings Editor.


This happens when you set the callback URL to use www and the site responds to the non-www version of the site (or vice versa).

You must set up your site to redirect the root of your domain to the callback you specify in your Callback URL. This is not only necessary for FB Connect, but also great for SEO purposes.

There are many ways to do this within different SEO components or the .htaccess file itself. In either case, it's important that you test your site both with and without www to ensure it functions properly:
SH404
- In the Configuration panel, go to the "Advanced" tab.
- Ensure the setting "301 redirect www/non-www" is set to Yes

.htaccess
The below code snippet comes from this page about half-way down in the section "301 Redirect Using Mod_Rewrite". Add the following line to your .htaccess file. Some/all of these lines may already be in there, so search to see if they are there first:
RewriteEngine On
rewritecond %{http_host} ^yoursite.com
rewriteRule ^(.*) http&#58;//www.yoursite.com/$1 &#91;R=301,L&#93;

The topic has been locked.