{function() {
window.fbAsyncInit = function()
{
FB.init({appId: '{$AppId}', status: true, cookie: true, xfbml: true,channelUrl: '{$channelurl}'});{$subs}
//FB.Canvas.setAutoResize();
};
function async_load(){
var s = document.createElement('script');
s.type = 'text/javascript';
s.async = true;
s.src = document.location.protocol + '//connect.facebook.net/{$locale}/all.js';
//s.src = 'https://connect.facebook.net/en_US/all.js';
document.getElementById('fb-root').appendChild(s);
}
if (window.attachEvent)
window.attachEvent('onload', async_load);
else
window.addEventListener('load', async_load, false);
})();
(function() {
var e = document.createElement('script'); e.async = true;
e.src = document.location.protocol +
'//connect.facebook.net/en_GB/all.js';
document.getElementById('fb-root').appendChild(e);
}());FB.init({appId: '{$AppId}', status: true, cookie: true, xfbml: true,channelUrl: '{$channelurl}'});{$subs}
window.setTimeout(function() { FB.Canvas.setAutoResize(); }, 250); (function() {
window.fbAsyncInit = function()
{
FB.init({appId: '{$this->facebookAppId}', status: true, cookie: true, xfbml: true});
//FB.Canvas.setAutoResize();
FB.Canvas.setSize();
};
function async_load(){
var s = document.createElement('script');
s.type = 'text/javascript';
s.async = true;
s.src = document.location.protocol + '//connect.facebook.net/{$locale}/all.js';
//s.src = 'https://connect.facebook.net/en_US/all.js';
document.getElementById('fb-root').appendChild(s);
}
if (window.attachEvent)
window.attachEvent('onload', async_load);
else
window.addEventListener('load', async_load, false);
})();
function fb_login_button_click()\n
{
if (FB.getSession())
{
self.location = "{$optionPermsUrl}";
}
}
function fb_logout_button_click()\n
{
{$logoutCall}
}
function redirect_to_jfbconnect_logout()
{
self.location = '{$logoutLink}';
}Is it working with 3.2.2? After your issues and a few others with AJAX problems in the 3.0 version, we did update the inclusion of the Facebook library to prevent the same problems from occuring in the future. It's likely you won't need to make any changes, or at least not the original ones you posted back in January.Im not sure but with this new version 3.2.2 my component does seem to work . Without me having to apply any fixes
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.
