Accept/Decline Follow Request
The SDK product provides two important methods for managing follow requests between users: accept follow request and decline follow request. These methods enable users to accept or decline requests to follow other users within the app, promoting a more personalized and engaging user experience.
Accept Follow Request
To accept a follow request from another user, users can call the acceptMyFollower
method within the SDK and provide the userId
of the user whose follow request they wish to accept. This will add the user to the list of followers and allow them to receive updates within Global feed and User feed.
Decline Follow Request
Similarly, to decline a follow request from another user, users can call the declineMyFollower
method within the SDK and provide the userId
of the user whose follow request they wish to decline. This will remove the user's request to follow and prevent them from receiving updates within Global feed and User feed.
If the Follower request is no longer available (either the follower request sender has withdrawn the request or the request has been accepted or declined before), SDK will return the error message.
Last updated