react-share icon indicating copy to clipboard operation
react-share copied to clipboard

[Messenger] Add mobile props to choose between web link or app link

Open GautierT opened this issue 5 years ago • 1 comments

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 true it will use fb-messenger://share
  • When false it will use https://www.facebook.com/dialog/send
<FacebookMessengerShareButton
        url={url}
        mobile={isMobile}
        appId='************'
        className='share_button'
      >
        <FacebookMessengerIcon size={32} round />
</FacebookMessengerShareButton>

GautierT avatar Oct 13 '20 13:10 GautierT

@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>

sirpy avatar Feb 10 '21 10:02 sirpy