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.

Facebook

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

Share screenshot

Share image

Share URL

Last updated

Was this helpful?