SendButton is specifically designed for sharing content via Facebook Messenger. For general sharing to Facebook, use ShareButton.
Overview
TheSendButton component provides a native Facebook Messenger send button that allows users to send content via Messenger. This is different from the ShareButton which shares to Facebook feeds.
Import
Props
The content to be sent via Messenger. Can be
ShareLinkContent, SharePhotoContent, or ShareVideoContent.See the ShareContent documentation for details on content types.Optional custom styling for the button. If not provided, uses default dimensions (30px height, 80px width).
Type Definition
Usage Examples
Basic Usage
Send a link via Messenger:Custom Styling
Customize the button appearance:Send Photo via Messenger
Default Styling
The SendButton has the following default dimensions:- Height: 30px
- Width: 80px
style prop.
Platform Support
- iOS: Supported
- Android: Supported
The Facebook Messenger app must be installed on the device for the SendButton to work. If Messenger is not installed, the button may not function as expected.
Comparison with Other Buttons
| Component | Purpose | Destination |
|---|---|---|
| SendButton | Send content via Messenger | Facebook Messenger |
| ShareButton | Share to Facebook feed | Facebook Timeline/Feed |
| LoginButton | Authenticate users | N/A (Authentication) |
Related
- ShareButton - Share content to Facebook feed
- ShareContent - Content types for sharing
- MessageDialog - Programmatic Messenger sharing