Skip to main content
SDK v7.x · Last verified March 2026 · iOS · Android · Web · Flutter
Full walkthrough below ↓
Platform note — code samples below use TypeScript. Every method has an equivalent in the iOS (Swift), Android (Kotlin), and Flutter (Dart) SDKs — see the linked SDK reference in each step.
Shareable links turn your users into a growth engine. When a user shares a post or community to WhatsApp, Twitter, or SMS, the recipient can tap straight into your app. This guide covers generating share URLs from the SDK, configuring link patterns in the console, and handling incoming deep links.
Prerequisites: SDK installed and authenticated → SDK Setup. Shareable links must be configured in Admin Console → Settings → Shareable Links (custom domain is optional).
After completing this guide you’ll have:
  • Shareable URLs generated for posts, communities, and user profiles
  • Deep link routing that opens your app directly to the target content
  • Share sheet integration for native OS sharing on iOS, Android, and Web

TypeScript
Full reference → Content Sharing
Shareable links are for sharing outside the app. They produce a URL a user can send to WhatsApp, SMS, or social media that deep-links back into your app. social.plus does not have an in-app repost or reshare API — there is no way to reshare a post into another feed from the SDK.

Step-by-Step Implementation

1

Get the shareable link configuration

The SDK fetches your configured domain and URL patterns from the server. Call this once and cache the result — it rarely changes.
TypeScript
Full reference → Content Sharing
2

Generate links for different content types

Use generateLink with the content type and reference ID. It returns null when that content type has no configured pattern, so gate on isEnabled if you need to hide the share action.
TypeScript
Full reference → Content Sharing
3

Wire up the native share sheet

Pass the generated URL to the platform’s native share API. On web, use the Web Share API with a clipboard fallback.
TypeScript
4

Handle incoming deep links

When your app opens from a shared link, parse the URL and navigate to the right screen. Match against the same patterns from the configuration.
TypeScript
5

Configure shareable links in the Admin Console

Set up your custom domain and URL patterns in Admin Console → Settings → Shareable Links:
  • Domain: Your app’s domain (e.g., https://your-app.com)
  • Post pattern: /posts/{postId}
  • Community pattern: /communities/{communityId}
  • User pattern: /users/{userId}
These patterns are served to the SDK via getShareableLinkConfiguration().

Connect to Moderation & Analytics

UIKit — Shareable link component

UIKit — Shareable link configuration with customizable URL patterns

Shareable links are generated on the client, so the SDK does not emit a built-in share event or a per-post share count. To measure sharing, log your own analytics event when a user taps share, and combine it with post impressions for a reach picture.
Links to private community content should only work for authenticated users who are members. Visitors landing on a private community link should see a “Request to join” prompt, not the content.

Common Mistakes

Exposing internal object IDs in share URLs — Use the SDK’s shareable link configuration to generate safe, user-facing URLs instead of constructing them manually with raw IDs.
Not testing deep links on all platforms — iOS Universal Links, Android App Links, and web fallbacks all have different requirements. Test the full flow on each platform — especially the “app not installed” case.
Skipping deep link verification — Always validate the incoming deep link format before navigating. Malformed or tampered URLs should redirect to a safe fallback, not crash the app.

Best Practices

  • Add Open Graph meta tags to your web fallback pages so shared links show rich previews on social media
  • Use UTM parameters on share links to track which channels drive the most installs
  • Cache getShareableLinkConfiguration() at app startup — it only needs to refresh once per session
  • Pre-compose the share text with the post’s first 50 characters + the link
  • Show a “Copied!” toast when the clipboard fallback fires
  • On mobile, use the native share sheet (iOS UIActivityViewController, Android Intent.createChooser) for the best experience

Dive deeper: Posts API Reference has full parameter tables, method signatures, and platform-specific details for every API used in this guide.

Next Steps

Your next step → Post Impressions & Creator Analytics

Content is shareable — now track who’s viewing it with impression analytics and reach metrics.
Or explore related guides:

User Onboarding & Visitor Mode

Handle visitors who arrive via shared links

Build a Social Feed

Build the feed that shared links navigate to

Community Platform

Create the communities that users share