Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

GautierT
Copy 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 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>

@sirpy
Copy link

sirpy commented Feb 10, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants