Social Share Composer
Plugin supports sharing to three social networks.
Facebook
Twitter
Whats App
When creating an instance of SocialShareComposer you can pass the SocialShareComposerType for sharing to specific social network.
You can check the availability of a composer by calling IsComposerAvailable.
bool isFacebookAvailable = SocialShareComposer.IsComposerAvailable(SocialShareComposerType.Facebook);The above returns true if the app is installed on the device and ready to accept any sharing.
On some social networks, it's not possible to share multiple data at same time. For example sharing url and image may lead to share only one of those.
Facebook
As per facebook policy, it's not possible to share a pre-filled text.
Share screenshot
SocialShareComposer composer = SocialShareComposer.CreateInstance(SocialShareComposerType.Facebook);
composer.AddScreenshot();
composer.SetCompletionCallback((result, error) => {
Debug.Log("Social Share Composer was closed. Result code: " + result.ResultCode);
});
composer.Show();Share image
Share URL
Twitter
Share text
Share screenshot
Share image
Share URL
Whats App
Share text
Share text with screenshot
On iOS, sharing both text and screenshot are not possible. Only either one of those is possible on WhatsApp.
Share screenshot
Share image
Share URL
Last updated
Was this helpful?