Share Button

Hi all, my project is augmented reality based(Android Platform). So i need to capture the screenshot and share that screenshot to facebook, twitter, gmail, etc… How it’s possible to achieve this.

You can use the AndroidJavaClass and AndroidJavaObject classes in Unity to create a share feature in your app. Take a look at this article:

It also says about how to take screenshot and share via Android native share dialog.

Take a screenshot using Application.CaptureScreenshot and then you can share this image using the APIs of the respective Social Networking Site you want to share to.

Facebook has their own SDK for Unity: Facebook SDK for Unity

I have done this using Unity Asset Store - The Best Assets for Game Making
try this