When calling FB.ui() as shown below
FB.ui({
display: 'popup',
method: 'share',
href: result.link,
}, response => {
callback(response);
});
In some environments, the share dialog appears well, but FB.ui() return response immediately( callback() called immediately ) while the share dialog is not closed. The response value is an empty string.
additionally, In an environment where response returned collectly, The URL of the share dialog is 'https://www.facebook.com/v15.0/dialog/share?app_id=~~~~~', In an environment where response returned immediately, The URL of the share dialog is 'https://www.facebook.com/share_channel/'.
Environment where problems occur
macOS 12.6, chrome 122.0.6261.129