question

Ozan Yilmaz avatar image
Ozan Yilmaz asked

Is there a way to cancel a friend request?

Hello everyone,

We were wondering if there is a way to cancel a friend request before the other player accepts the request? Not a mandatory feature for the game but we'll implement it if PlayFab has this feature.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Hernando avatar image
Hernando answered

Notably, friendship on PlayFab is a one-way street, sort of like the following system: When player A adds player B as a friend, he does not need to ask for B's approval, and therefore does not need to send a request.

If player B want to establish friendship with Player A, he must add Player A as a friend.

Therefore, you can not cancel the request. If you have already called AddFriend API to added someone as a friend, you should call RemoveFriend API to delete this friend.

2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Ozan Yilmaz avatar image Ozan Yilmaz commented ·

I have another question to understand it completely. If Player A adds Player B as a friend, does Player A appear on the Player B's friend list when I call GetFriendList API?

0 Likes 0 ·
Hernando avatar image Hernando Ozan Yilmaz commented ·

No, Player A will not appear.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.