Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

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
<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.

1 decade ago by aclelland

I also use the following libraries in my application

jQueryUI
jStorage
playtomic
appmobi (not actually used but it was being included in the particular page)

1 decade ago by Rash

Hello,

I'm having a problem with impactjs and facebook javascript sdk!
I'm using the pay dialog of facebook creadits in order to let the player buy stuff in my game.
the dialog opens successfully, but the cancel button in it doesn't work!!
I called the impact.js after facebook.js as you did but it doesn't seem to work!

Do you have any suggestions?

Thanks,
Rasha
Page 1 of 1
« first « previous next › last »