Facebook Connect cross-domain receiver URL (XXXXXXX) must have the application's Connect URL as pref
- by pallab
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?