Hi,
I have been trying to make the Publish Stream preview modal that appears when i click on Publish Button, to appear in a pop window instead of a javascript modal.
Can anyone help me with this? it is really urgent.
Thanks a lot in advance. :)
Hi,
I have been trying to make the Publish Stream preview modal that appears when i click on Publish Button, to appear in a pop window instead of a javascript modal.
Can anyone help me with this? it is really urgent.
Thanks a lot in advance. :)
Here is how you might go:
1: Create a html page
2: Put all your FB publish stream code in above created page
3: Use the window.open with the path to above created page to it in popup window.
Example:
<a href="#" onclick="window.open('popup.html', 'win', 'toolbar=0, menubar=0'); return false;">
In the callback for your FB.ensureInit, add this:
FB.Connect.get_status().waitUntilReady(function(status)
{
FB.Connect._openFeedDialogIframe = function(b, a, f)
{
FB.Connect._openFeedDialogWindow(b, a, f);
};
});
This will cause the call to _openFeedDialogIframe to actually call _openFeedDialogWindow, so your feed dialog will be in a popup instead of in an iframe.
Good luck!