Manage incoming follow requests with accept and decline actions, including multi-platform code examples.
Enable users to manage their incoming follow requests for a more personalized and secure social experience. Accepting or declining requests gives users control over who can follow them and see their updates.
Accept Requests
Approve follow requests to allow new followers and expand your network.
Decline Requests
Decline requests to maintain privacy and control your audience.
Accepting a follow request adds the user to your followers and allows them to see your updates. Declining removes the request and prevents updates from being shared.
// Decline a follow requestdo { let result = try await userRelationship.declineMyFollower(withUserId: "<user-id>")} catch { // Handle error here}
If the follow request is no longer available (withdrawn, already accepted/declined), the SDK will return an error. Always handle errors gracefully and inform the user.