I am calling the Facebook Add Page Tab Dialog using the Javascript SDK as follows:
var obj = {
method: 'pagetab'
};
FB.ui(obj, function(response) {
console.log(response);
});
The dialog shows up on the page and then auto redirects to the same page which is presently open. It doesn’t show the options to select the pages as described in the docs.
Got it working now. The ‘display’ parameter should be specified explicitly to ‘popup’