Share Post
The share post feature allows users to share posts from the feed to other apps or social media platforms, providing a seamless way to distribute and engage with content beyond your app's boundaries.
This guide will walk you through the steps to enable and customize the share post functionality using the LikeMinds SDK.
Customizing the Share URL Domain
By default, the share URLs generated by the LikeMinds SDK use a standard domain provided by LikeMinds. However, you can customize the domain to better align with your branding or specific requirements.
To change the custom domain used for share URLs, follow these steps:
- In your app's
AppDelegate
, call thesetupDomain(with:)
function provided by theLMFeedShareUtility
class during the app's launch process:
import LikeMindsFeed
func application(_ application: UIApplication, willFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool {
LMFeedShareUtility.setupDomain(with: "your.custom.domain")
// Other setup code...
return true
}
Replace "your.custom.domain"
with the desired custom domain you want to use for share URLs.
- After setting up the custom domain, the generated share URLs will follow the pattern:
https://your.custom.domain/post?post_id=<postID>
.