Facebook Connect cross-domain receiver URL (XXXXXXX) must have the application's Connect URL as pref

Posted by pallab on Stack Overflow See other posts from Stack Overflow or by pallab
Published on 2010-05-30T11:30:23Z Indexed on 2010/05/30 11:32 UTC
Read the original article Hit count: 513

I am trying to create a javascript widget which can be placed on any webpage and uses facebook connect to authenticate the user.

What I have done is that,in any html file you put a javascript which has a document.write to show the widget.

 <script type="text/javascript" src="button.js"></script>

On clicking the widget, the facecook login happens if the user is not already logged in to facebook (Single Sign On). There are no problems when I am putting the HTML file and the js file in the same directory as specified in the facebook connect URL. However, when I put the HTML file in some other folder and specify the absolute path to the js folder I get the warning "Facebook Connect cross-domain receiver URL (XXXXXXX) must have the application's Connect URL as prefix" The login however happens?

How can this be resolved?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about facebook