• Sign Up Login
  • Features
    • Game Services
    • Real-time Analytics
    • LiveOps
    • Add-ons
  • Game Services
  • Real-time Analytics
  • LiveOps
  • Add-ons
  • Games
  • Pricing
  • Blog
  • Support
    • Docs
    • Forums
    • Contact
  • Docs
  • Forums
  • Contact
  • Sign Up Login
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Ideas
    • Articles
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
avatar image
Question by michaelbb · Jun 22 at 09:40 PM · Friendswindows

C#/UWP: Friend-confirmation

Hi there,

I know there had been many questions regarding the topic. But unfortunately one thing is still unclear to me:

How can I add a friend to both players' lists?

Eg if players A adds player B to his list, player B does not know anything about player A, so how B add A to his list???

Many thanks for your hints.

Best wishes,

Michael

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by SethDu · Jun 24 at 08:37 AM

It is true that adding friends is one-way on PlayFab and I think the work around for now is to implement the adding-friend system on Cloud Script.

However, to avoid abusive use from users, you may need to add an invitation/acceptance system in your client, which is not easy to implement. There is no native-supported feature of it and you may use Player Read-Only Data to craft one. Write inviter ID and invitee ID into a player data and player clicks Accept/Decline button will execute Cloud Script functions to add friends for both sides or simply delete this invitation entry.

In addition, pushing an invitation message to a target player is only supported in the form of Push Notification or sending email for now, which is like what I have mentioned - not easy to get this friend system practical, however, you may be interested in the Private Preview feature PubSub. This is a feature that meets your requirement and if you are interested in trying it, please contact us at helloplayfab@microsoft.com.

Comment

People who like this

0 Show 0 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    3 People are following this question.

    avatar image avatar image avatar image

    Related Questions

    C#/UWP: AddFriend per Cloud Script fails 4 Answers

    Adding friends with two-way confirmation 1 Answer

    AddFriend is missing PlayFabId in response 3 Answers

    GetFriendLeaderboardAroundPlayer not returning Facebook friends. 2 Answers

    Multiple friend / user group leaderboards 1 Answer

    • PlayFab

      • Features
      • Games
      • Pricing
      • Blog
    • Engineers

      • Documentation
      • Quickstarts
      • API Reference
      • SDKs
      • Usage Limits
    • Support

      • Forums
      • Videos
      • Contact
      • Service Health
      • Terms of Service
    • Social

      • Facebook
      • Twitter
      • LinkedIn
      • YouTube
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • About Microsoft
    • Jobs
    • Accessibility
    • Diversity & inclusion
    • Security
    • Company news
    • © Microsoft 2019
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Post an idea
    • Create an article
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Ideas
    • Articles
    • Users
    • Badges