1 decade ago by aclelland
Ok so I believe I've found an issue with the FB.UI javascript library and Impact.
My html was set out in this format
When I tried to call the standard Facebook Credits popup dialog I was shown a message about an unauthorized domain. The fix was to change the structure
Obviously this isn't a major change to the code (although it took a while to narrow down) but I thought that it might be worth a look at since FB are beginning to push HTML5 and Impact seems to be one of the leading engines. My guess is that Impact is doing something to the DOM but that's about as vague as could be :)
I've got sample code which replicates this issue 100%, if you would like me to send you it please let me know.
My html was set out in this format
<head> <src="impact.js"> <src="main.js"> </head> <body> <src ="facebook.js"> //this must be in the body and cannot be in <head> </body>
When I tried to call the standard Facebook Credits popup dialog I was shown a message about an unauthorized domain. The fix was to change the structure
<head> </head> <body> <src ="facebook.js" <src="impact.js">//MUST be under the facebook api <src="main.js"> </body>
Obviously this isn't a major change to the code (although it took a while to narrow down) but I thought that it might be worth a look at since FB are beginning to push HTML5 and Impact seems to be one of the leading engines. My guess is that Impact is doing something to the DOM but that's about as vague as could be :)
I've got sample code which replicates this issue 100%, if you would like me to send you it please let me know.