Skip to content

Instantly share code, notes, and snippets.

@voxelbustersold
Created January 4, 2019 08:28
Show Gist options
  • Save voxelbustersold/bfa9bbb799909f4b2ab953ce9e41ad7d to your computer and use it in GitHub Desktop.
Save voxelbustersold/bfa9bbb799909f4b2ab953ce9e41ad7d to your computer and use it in GitHub Desktop.
Share image on Instagram from Unity - http://u3d.as/1pMn
using VoxelBusters.InstagramKit;
void ShareImage(string filePath)
{
// Create Story Content Instance
StoryContent content = new StoryContent(filePath, false);
InstagramKitManager.Share(content, OnShareComplete);
}
private void OnShareComplete(bool success, string error)
{
string message = success ? "Successfully Shared" : "Failed to share " + error;
Debug.Log(message);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment