Facebook Share Dialog not working on Facebook built in browser.
1

Hi.

Since today Facebook share dialog is no longer working on Facebook built in browser for Android. I don't know it ft works on iOS.

The code bellow does nothing:

FB.ui({ method: 'share', href: 'https://developers.facebook.com/docs/', }, function(response){});

Trying to open the sharer on a popup does not work either. window.open("https://www.facebook.com/sharer/sharer.php?u=" + $(this).data("url"), "facebook-share-dialog", "width=572,height=567");

On Desktop or Chrome on mobile it works as expected, and the share dialog is shown. When browsing thru the built in Facebook browser, share dialog does not show up.

I have tested this on several websites that have a Share button from Facebook. None of them seems to be working.

Hope you take a look at this. Thanks.

Valter
Asked about 4 years ago
Boris

We (Change.org) are seeing the same issue from the built in browser on Android since the 26 of November 2pm (UTC).

It's reproducible by clicking on the facebook button on this page from the webview from the Facebook Android app https://www.change.org/p/city-of-victoria-mayor-and-council-build-the-new-crystal-pool-and-fitness-centre-now/psf/share

Or any other Change.org petition share page.

After investigation, it doesn't trigger any error from the javascript console, but there is one error from the Android App, that we saw with adb : START u0 {act=android.intent.action.VIEW dat=fb://composer/?link=http://chng.it/xQxrW9F5Lf&app_id=48409868550&is_web_share=true&is_in_app_web_share=true&name=null&caption=null&description=null&picture=null&quote=null&next=cb=f3ea2a669dd7508&domain=www.change.org&origin=https://www.change.org/f3fd215a234dd8&relation=opener&frame=f14c83535c2cd38&result="xxRESULTTOKENxx"&host_url=https://www.change.org/p/city-of-victoria-mayor-and-council-build-the-new-crystal-pool-and-fitness-centre-now/psf/share flg=0x10000000 cmp=com.facebook.katana/.IntentUriHandler (has extras)} from uid 10001 11-29 10:54:02.071 668 668 D QCOM PowerHAL: LAUNCH HINT: ON 11-29 10:54:02.073 668 668 D QCOM PowerHAL: Activity launch hint handled 11-29 10:54:02.126 15338 15338 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@cec6e16 11-29 10:54:02.129 15338 15338 E Instrumentation: Uninitialized ActivityThread, likely app-created Instrumentation, disabling AppComponentFactory 11-29 10:54:02.129 15338 15338 E Instrumentation: java.lang.Throwable 11-29 10:54:02.129 15338 15338 E Instrumentation: at android.app.Instrumentation.getFactory(Instrumentation.java:1259) 11-29 10:54:02.129 15338 15338 E Instrumentation: at android.app.Instrumentation.newActivity(Instrumentation.java:1250) 11-29 10:54:02.129 15338 15338 E Instrumentation: at X.04v.newActivity(:13809) 11-29 10:54:02.129 15338 15338 E Instrumentation: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3182) 11-29 10:54:02.129 15338 15338 E Instrumentation: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3409) 11-29 10:54:02.129 15338 15338 E Instrumentation: at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83) 11-29 10:54:02.129 15338 15338 E Instrumentation: at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) 11-29 10:54:02.129 15338 15338 E Instrumentation: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) 11-29 10:54:02.129 15338 15338 E Instrumentation: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016) 11-29 10:54:02.129 15338 15338 E Instrumentation: at android.os.Handler.dispatchMessage(Handler.java:107) 11-29 10:54:02.129 15338 15338 E Instrumentation: at android.os.Looper.loop(Looper.java:214) 11-29 10:54:02.129 15338 15338 E Instrumentation: at android.app.ActivityThread.main(ActivityThread.java:7356) 11-29 10:54:02.129 15338 15338 E Instrumentation: at java.lang.reflect.Method.invoke(Native Method) 11-29 10:54:02.129 15338 15338 E Instrumentation: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) 11-29 10:54:02.129 15338 15338 E Instrumentation: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930) 11-29 10:54:02.156 926 7072 I ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.facebook.katana/com.facebook.account.login.activity.SimpleLoginActivity (has extras)} from uid 10001 11-29 10:54:02.168 15338 15338 W fb4a.18r: stopTrackingActivityLaunch called for class com.facebook.katana.IntentUriHandler while tracking class com.facebook.account.login.activity.SimpleLoginActivity. 11-29 10:54:02.235 668 668 D QCOM PowerHAL: LAUNCH HINT: OFF

We have reproduced on Android 10 with the Facebook App version 248.1.0

We would love to have feedback on this issue has it's impacting our user.

November 29 at 1:21 PM
Selected Answer
1

Hi Boris. I filled a bug report to try to reach Facebook's attention to this. https://developers.facebook.com/support/bugs/3869157133110053/ - maybe you can post some comment there. thanks

November 30 at 3:00 AM
Valter
1

I have alos tested it and this is a confirmed bug! It's not working for any of the website on any of the android devices from anyone's account!

Where can we report this kind of bugs?

December 9 at 9:45 PM
Olivia
Valter

Hi. I already reported this bug. Nobody paid attention to it. Finally I found a way to make it work.

Use this URL instead to open the share dialog and it will work.

https://mobile.facebook.com/dialog/share?app_id=YOURAPPID&display=popup&href=https://www.url.com/&redirect_uri=https://www.url.com/

December 9 at 10:37 PM