π FacebookMessenger
π¨βπ» Code
import {
FacebookMessengerShareButton,
FacebookMessengerIcon,
} from 'next-share'
<FacebookMessengerShareButton
url={'https://github.com/next-share'}
appId={''}
>
<FacebookMessengerIcon size={32} round />
</FacebookMessengerShareButton>π₯° Generate
π FacebookMessengerShareButton Props
| Props | Type | Default | Description | Required |
|---|---|---|---|---|
| children | node | React component, HTML element or string. | β | |
| url | string | The URL of the shared page. | β | |
| appId | string | Facebook application id. | β | |
| redirectUri | string | The URL to redirect to after sharing (default: the shared url). | β | |
| to | string | A user ID of a recipient. Once the dialog comes up, the sender can specify additional people as recipients. | β | |
| windowWidth | number | 1000 | Opened window width. | β |
| windowHeight | number | 820 | Opened window height. | β |
| blankTarget | boolean | false | Open share window in a new tab if set to true. | β |
π FacebookMessengerIcon Props
| Props | Type | Default | Description | Required |
|---|---|---|---|---|
| size | number | Icon size in pixels. | β | |
| round | boolean | Show round or rectangle. | β | |
| borderRadius | number | Set rounded corners if using round icon. | β | |
| bgStyle | object | Customize background style. | β | |
| iconFillColor | string | white | Customize icon fill color. | β |
| blankTarget | boolean | false | Open share window in a new tab if set to true. | β |