Skip to content

Instantly share code, notes, and snippets.

@vincentchu
Created August 24, 2010 01:39
Show Gist options
  • Save vincentchu/546733 to your computer and use it in GitHub Desktop.
Save vincentchu/546733 to your computer and use it in GitHub Desktop.
FB.provide('UIServer.Methods', {
'permissions.request': {
size : { width: 575, height: 240 },
url : 'connect/uiserver.php',
transform : function(call) {
if (call.params.display == 'dialog') {
call.params.display = 'iframe';
call.params.channel = FB.UIServer._xdChannelHandler(
call.id,
'parent.parent'
);
call.params.cancel = FB.UIServer._xdNextHandler(call.cb, call.id, 'parent.parent', true );
call.params.next = FB.UIServer._xdResult(call.cb, call.id, 'parent.parent', false );
}
return call;
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment