Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var oldSize = FB.UIServer.Methods["fbml.dialog"].size;
- FB.UIServer.Methods["fbml.dialog"].size = {width:300, height:150};
- var dialog = {
- method: 'fbml.dialog',
- fbml: '<fb:header icon="false" decoration="add_border">Some Prompt</fb:header>' +
- '<div style="width:100%; height:100%;" align="center">' +
- '<div style="margin:15px;">Do you wish to continue?</div>' +
- '<label class="uiButton uiButtonLarge uiButtonConfirm"><input type="button" name="OK" value="OK"></label>' +
- '<label class="uiButton uiButtonLarge uiButtonConfirm"><input type="button" name="Cancel" value="Cancel"></label>' +
- '</div>',
- width:300,
- height:150
- };
- FB.ui(dialog, function(result) { console.log(result); } );
- FB.UIServer.Methods["fbml.dialog"].size = oldSize;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement