react-share
react-share copied to clipboard
[Messenger] Add mobile props to choose between web link or app link
Hi.
https://www.facebook.com/dialog/send doesn't work on mobile and fb-messenger://share doesn't work on desktop.
So i added a new props mobile.
- When
trueit will usefb-messenger://share - When
falseit will usehttps://www.facebook.com/dialog/send
<FacebookMessengerShareButton
url={url}
mobile={isMobile}
appId='************'
className='share_button'
>
<FacebookMessengerIcon size={32} round />
</FacebookMessengerShareButton>
@nygardk can we merge this?
also @GautierT @nygardk can we add this to facebook on android mobile? this will open the native facebook app. but it doesntt work on iOS:(
fb://faceweb/f?href=https://m.facebook.com/sharer.php?u=<url>