question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

sharing via facebook messenger doesn't work on mobile devices

See original GitHub issue

I implemented the facebook messenger share button as follows :

<FacebookMessengerShareButton
            url={"https://www.google.com"}
            title={"please click me"}
            appId="521270401588372"
          >
            <FacebookMessengerIcon size={64} round />
          </FacebookMessengerShareButton>

and tried it with different mobile devices. It always gives the following error :

This dialog is not available on this device

Also i think it’s safe to say to assume that since the component’s name is FacebookMessengerShareButton the messenger app will open on your mobile device and if you’re on browser then the normal facebook site will open. Instead when clicking on the button with a mobile device a new page will open with the facebook mobile version. I couldn’t find any open issue about this, so is this a bug or the expected behavior ?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

4reactions
achraf-boussaadacommented, May 28, 2020

It would be great if they can integrate some sort of device detection, to check if the user is using the mobile or the web version and accordingly display the right component.

2reactions
bfintalcommented, May 7, 2020

@stiwwelll Yes it works in Chrome iOS in mine. Here’s what I have which is only shown in mobile:

<button className="react-share__ShareButton" style={ { background: '#3885f7' } }
	onClick={ () => {
		window.location.href =
			'fb-messenger://share?link=' +
			encodeURIComponent( `https://myurl` ) +
			'&app_id=' +
			encodeURIComponent( 123123123 )
	} }
>
	<FacebookMessengerIcon size={ 24 } bgStyle={{ fill: 'none' }} />
</button>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix a problem | Messenger Help Center - Facebook
Make sure you have a strong Wi-Fi or mobile data connection. · Check your device's storage space to make sure you have enough...
Read more >
Solve “Facebook Messenger Not Sending Videos” on iPhone ...
One of the most common problems is when your messages, photos, or videos are not sent on Facebook Messenger is a network issue....
Read more >
Messenger Not Working? Here Are 11 Best Ways to Fix It
1. Restart Your Device · 2. Clear Messenger App's Cache · 3. Uninstall and Reinstall If Messenger Is Not Working · 4. Check...
Read more >
Top 7 Ways to Fix Facebook Messenger Not Connecting to the ...
If you haven't updated Messenger in a while, the app may fail to work correctly on your iPhone, especially if it has gone...
Read more >
unable to send links to Facebook messenge…
My wife has an iPad and an iPhone but I only have the iPad so for ... user using the Share button in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found