Skip to main content
Enable users to share content from your app with customizable URL patterns that match your brand and technical requirements. The SDK can generate shareable links for various content types including posts, user profiles, communities, and live streams.

Custom URL Patterns

Configure branded URL patterns that match your app’s domain and structure

Multi-Content Support

Generate links for posts, profiles, communities, and live streams

Overview

Content sharing allows users to share links to content from your app:
  • Custom URL Configuration: Define URL patterns that match your brand
  • Multiple Content Types: Support for posts, user profiles, communities, and live streams
  • Cross-Platform Support: Generate consistent links across all platforms
URL patterns are configured at the application level and can be customized to match your app’s domain structure and branding requirements.

Supported Content Types

Content TypeDescription
PostsAll post types (text, image, video, clip, etc.)
User ProfilesUser profile pages
CommunitiesCommunity pages and profiles
Live StreamsLive streaming content
1

Configure URL Patterns

Set up custom URL patterns in your app configuration
2

Query Share Links

Use the SDK to generate shareable links for content

Implementation

func getShareableLink() {
    Task {
        let config = try await client.getShareableLinkConfiguration()
    }
}

Best Practices

  • Fallback Handling: Provide meaningful fallbacks for invalid or deleted content
  • Loading States: Show loading indicators while resolving shared links
  • Error Messages: Display clear error messages for failed link opens
  • Context Preservation: Maintain user context when opening shared content
  • Link Caching: Cache generated links to avoid repeated API calls
  • Batch Generation: Generate multiple links in batch operations when possible
  • Lazy Loading: Generate links only when sharing functionality is accessed
  • Error Handling: Implement retry logic for failed link generation

Common Use Cases

  • Social Sharing: Enable users to share posts and content on external platforms
  • Content Discovery: Allow users to share interesting content with friends
  • Community Growth: Share community links to attract new members
  • User Onboarding: Share user profiles for networking and connections
  • Live Event Promotion: Share live stream links for event promotion

Troubleshooting