สัญญาณขาดหายบางส่วนshare-external
FB.ui share is returning a null response to my app
5

FB.ui share is returning a null response to my app after posting done. I can see the href link posted on my feed but the response is null -sharing my snippet FB.ui({ method: 'share', appId: , display: 'popup', quote: , href: },function(response) {console.log(response)}); This has been working for a longtime and has suddenly stopped since the new share dialog on FB has been implemented

Can someone pls help asap.

Snehita
ถามแล้ว ประมาณ​ 9 เดือนที่แล้ว
藤澤 景子

I also encountered a similar issue when requesting the implementation of the new FB share dialog. Upon investigation, it was found that the issue occurs only on Mac devices. The devices with no issues were running Windows 11 with Google Chrome version 123.0.6312.86. It did not work on MacOS 13.5.1 (22G90) with Apple M2 Max.

It was discovered that there are differences in the URL for the Facebook share dialog between Windows and Mac. For Windows, the URL is https://facebook.com/v14.0/dialog/share?app_id=XXXXX&channel_url=https://XXXXX&display=popup&e2e=XXX&fallback_redirect_uri=https://XXXXX&href=https://XXXXX, whereas for Mac, it is https://facebook.com/share_channel/.

Furthermore, on Windows, the callback is executed when the share is completed and the dialog automatically closes, but on Mac, the callback is executed when the dialog is opened. Even if the share is completed, the dialog does not close automatically, and manually closing it does not trigger the callback.

I believe the issue lies here. It seems necessary for Facebook to fix this SDK issue on their end.

2 เมษายน เวลา 00:48 น.
藤澤 景子

Even on Windows 11, there were devices that did not function properly, so the exact cause is unknown. However, it is a fact that the behavior varies depending on the device.

2 เมษายน เวลา 02:33 น.