Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • General Discussion /
avatar image
Question by Chethan V · Jan 27 at 09:11 AM · Friends

How to implement a 2 way friend request system in PlayFab

Alright, I know this question has been asked many times, but I am still asking this because I want to know whether as of today this has been implement or not because these questions date back to being asked 7 years ago.

So a two way friend request system is a very simple thing which I want which goes like this:

Here is exactly what I need:

  1. Player A wants to be friend with Player B.
  2. Player A sends a friend request to Player B.
  3. Player B sees the friend request and accepts the friend request or declines it
  4. Then in Player A's friend list Player B is there and vice-versa

But currently in the system the it is more like a follow system in twitter ,wherein Player A can add Player B as his/her friend but not vice versa.

I saw that there is a fix for this problem via Cloud Scripting as per this post .But the Cloud scripting, I am really stuck, Thats because the documentation, somehow I can't understand from them. Secondly the video of cloud scripting in youtube there are akin to the older dashboard UI of the playfab under Automation.

In the older UI of the Playfab dashboard under "Automation" you had the revision button and could enter the cloud script. There are videos for these. But the newer UI there is this "Http" and "Queue" stuff and there is no information about these things next to it. Neither they are good videos which cover stuff. While following the documentation I somehow can't get around with it.Also further more as per the the "post" mentioned in the previous para there is no reference to the C# code which can execute this code

So is there is simpler way to achieve this without cloud scripting , because I have been working on my project for the past 3 months and this is the last piece of the puzzle and really exhausted with everything.

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 · Jan 28 at 02:23 AM

Cloud Script has been deprecated and it only remains accessible for users that had used it before. The replacement solution is Azure Function, which is much more flexible and powerful. Please refer to PlayFab CloudScript using Azure Functions Quickstart Guide - PlayFab | Microsoft Docs to implement your Azure Function.

The built-in friend system matches what you have indicated in the question, and it is more like a following system, hence the Azure Function is required.

Comment

People who like this

0 Show 2 · 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
avatar image Chethan V · Jan 28 at 12:40 PM 0
Share

I did follow the documentation , but I am stuck on two levels.


I am able to create whatever is given as per this visual studio guide, but here after 1 deploy it to cloud , I realise that C# code is needed. But as per this solution, the code is in JavaScript. Also for Visual studio , the way you need to run the the Azure function is not in much detail and depth as Visual studio code.

Then I chose Visual studio code guide dealing with JavaScript , but I am stuck in a point where I can't run the default code itself because it says azure functions core tools not installed to run visual studio code. I ran the necessary commands in commands prompt, but still it doesn't work.

The problem in these documentation are things go way ward . Do you have any other better source for this issue? I dont understand , this problem is there for the past 7 years and still yet to impemented . The legacy Cloud Scripts were easier to work with , now thats gone. I am really going nowhere

avatar image Jay Zuo ♦ Chethan V · Feb 04 at 09:39 AM 0
Share

You can either change the JavaScript code to C# or create a new JS Azure Function project. If you have any issue with the implementation, please feel free to open a new thread with the error details you've got.

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

    10 People are following this question.

    avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

    Related Questions

    Photon + PlayFab matchmaking parties (invite friends) 2 Answers

    Help with friend confirmation 1 Answer

    [Bug] Sometimes friends list on player's profile doesn't show display name 1 Answer

    Filter Player by Username 1 Answer

    Best way to send a message to a friend asking them to join a game? 2 Answers

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

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

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges