Quote:
Originally Posted by SocialNetworkBuzz
Yeap - https://apps.facebook.com/vbfourtest/
As you'll see, you get the pop up for app connection permission. But after agreeing, it doesn't log you in and anytime you click the fb connect button again, nothing happens. But if you go to https://socialnetwork.bz/vb4/ the button works fine. So it is only within canvas not working.
|
In your clientscript/vbulletin_facebook.js file find the vB_Facebook.prototype.do_fbRedirect function block. Replace it with this ...
Code:
vB_Facebook.prototype.do_fbRedirect = function() {
var A = window.location.href.replace(/#.*/, "");
var B = (window.location.search.substring(1) ? "&" : "?");
window.location = A + B + "dofbredirect=1" + window.location.hash
};
The original function was calling window.top.location which will throw the error ...
Code:
Unsafe JavaScript attempt to access frame with URL http://apps.facebook.com/vbfourtest/ from frame with URL https://socialnetwork.bz/vb4/forum.php. Domains, protocols and ports must match.
I have no way to test, so I'm hoping it'll work. Let m know
Edit: I just realized the vbulletin_facebook.js file is obfuscated. Try running with the attached file (make sure to remove the ".txt" in the filename)