Share Buttons
Facebook Messenger

πŸŽ€ FacebookMessenger

πŸ‘¨β€πŸ’» Code

import {
  FacebookMessengerShareButton,
  FacebookMessengerIcon,
} from 'next-share'
 
<FacebookMessengerShareButton
  url={'https://github.com/next-share'}
  appId={''}
>
  <FacebookMessengerIcon size={32} round />
</FacebookMessengerShareButton>

πŸ₯° Generate


πŸ“– FacebookMessengerShareButton Props

PropsTypeDefaultDescriptionRequired
childrennodeReact component, HTML element or string.βœ…
urlstringThe URL of the shared page.βœ…
appIdstringFacebook application id.βœ…
redirectUristringThe URL to redirect to after sharing (default: the shared url).❌
tostringA user ID of a recipient. Once the dialog comes up, the sender can specify additional people as recipients.❌
windowWidthnumber1000Opened window width.❌
windowHeightnumber820Opened window height.❌
blankTargetbooleanfalseOpen share window in a new tab if set to true.❌

πŸ“š FacebookMessengerIcon Props

PropsTypeDefaultDescriptionRequired
sizenumberIcon size in pixels.❌
roundbooleanShow round or rectangle.❌
borderRadiusnumberSet rounded corners if using round icon.❌
bgStyleobjectCustomize background style.❌
iconFillColorstringwhiteCustomize icon fill color.❌
blankTargetbooleanfalseOpen share window in a new tab if set to true.❌