Resize facebook permission dialog in firefox using gigya

200 Views Asked by At

I am using gigya to connect to facebook and have included almost all the permissions for connecting. In firefox i could not see the Allow button as the permission dialog size is too big. Did anyone had this problem while connecting with gigya ?

Can scroll bars be added to permissions dialog ?

1

There are 1 best solutions below

0
On

You can resize the window using a JS proxy function:

if (!gigya) {
    return;
}

var providerCache = {};

// Proxify the _getProviderByName method on gigya, 
// then alter the dimensions values of the results.
var proxied = gigya.socialize._getProviderByName;
gigya.socialize._getProviderByName = function(name) {
    var provider = proxied.apply(this, arguments);
    if (!(name in providerCache)) {
        provider.width += 100;
        provider.height += 100;
        providerCache[name] = provider;
    }
    return provider;
}

This code will increase the dimensions of the popup window by 100px.