Invalid Argument
The Facebook Connect cross-domain receiver URL (http://www.mysite.com/modules/fbconnect/xd_receiver.html#fname=_opener&%...) must have the application's callback url (http://mysite.com) as a prefix. You can configure the callback url in the application's settings.

- Getting this pop up on IE (all version) when clicking the Connect link

The call back URL is correct.

Can anybody help?

Regards

Simon

Comments

klowe’s picture

I had this error and it was because I did not have the facebook-platform in the right place. Check out item 2 of the "Read Me" file that came with Facebook Connect

2. Download the Facebook PHP libraries from http://svn.facebook.com/svnroot/platform/clients/packages/facebook-platf....
Copy the facebook-platform/php folder content to the facebook-client repertory,

doyleoliver’s picture

Klowe - Thanks, I have checked the location of the facebook platform, and reinstalled it several times. I works fine on Safari and firefox, but not on IE?

burn2149’s picture

I'm getting this message too, regardless of what browser I'm in.

klowe’s picture

it seems like a javascript error. did you add the line of code in your theme for IE support?

doyleoliver’s picture

burn2149 - me too, on a friends safari and it came up with the error!

doyleoliver’s picture

Status: Active » Fixed

Found the problem!

I was using http://mysite.com to build the domain, this always autofilled when typing the domain in safari.

and I entered this as the callback on facebook developer page.

So when testing on IE I entered the http://www.mysite.com so this then caused the error!

The simple www caused the problem!

Now set up domain host to redirect to the www version of the url!

I hope this helps, and reduces problems in the future.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

gateone’s picture

Status: Closed (fixed) » Active

Sadly not completely closed:

The issue still exists. Please read this information on Facebook about it: http://wiki.developers.facebook.com/index.php/Supporting_Subdomains_In_F...

The problem is that on some sites you might want to allow the user to use both www. and non-www. in your domain.

If that happens, fbconnect seems to use what the user has entered, not what has been configured in fbconnect AND in Facebook.

We would need a mandatory site's cross-domain communication channel setup that, whatever the user enteres as a domain or subdomain, the communication with Facebook takes only place on this predefined communication channel as configured in Facebook.

For the time being I simply force my users on www. whatever they enter... but ultimately this might not be such a great idea.

Apart from that: the fbconnect makes good progress, keep up the work I love it!

Steph

Neil Adair’s picture

According to the above reference if you set your facebook connect to use the domain "example.com" it should also work for all sub-domains including "www.example.com"

Cromicon’s picture

Neil Adair’s picture

Facebook connect works best if the domain is registered without the "www". Forcing "www.example.com" with htaccess just means you will not be able to use fbconnect with any other subdomains of example.com.

I can confirm that if you register example.com with facebook that subdomains work with the same api keys

Zarevac’s picture

subscribe

budda’s picture

Component: Code » Documentation

I can confirm that comment 11 is correct. You just need to set up your facebook app correctly. Probably worth noting in this modules README.txt ?

vectoroc’s picture

Title: Invalid Argument on face book pop up? » Write few lines about "Base Domain" setting in REAMDE.txt
Version: 6.x-1.0-beta6 »
Category: support » task
Priority: Normal » Minor
vectoroc’s picture

Status: Active » Closed (won't fix)