top of page

Friend Manager

The Friend Manager plugin is specifically designed to manage friend features through the PlayFab service, for games built using Construct 3 and Construct 2.


Interconnected with major platforms including Google Play, Game Center, Apple Login, Instant Games, Facebook, Facebook Instant Games, Steam, Xbox Live, Nintendo Switch, PS4 and of course PlayFab's own account system allows you to add, remove and get the friends list of players.


Depending on the developer's preference, friends can be added and removed using the display name, email, username or playfab id.


You can easily manage the player's friend list from the client side using this plugin, and it automatically syncs with other social network's friends list while also retrieving the complete account and player info of each friends.

PlayFab API v2.png

Introduction

Step 1.png

The Construct Master Collection supports the full and easy integration of the PlayFab service for both Construct 3 and Construct 2.


Please click here to learn more about PlayFab.

Features


Here are some of the features of the PlayFab service:

  • Add or remove friends

  • Get friends list

  • Player information

  • Friend profile data

    • Account information

    • Player information

    • Virtual currencies

    • Real legal tender currencies

    • Linked social accounts or authentication methods

    • Account locations

    • Account tags

    • Leaderboards and player statistics


For more information about all the integrated PlayFab service features, please click here to learn the introductory lessons to PlayFab.


Network Services


Here are some of the platform services that can be linked:

  • PlayFab

  • Google Play

  • Game Center

  • Facebook

  • Facebook Instant Games

  • Steam

  • Xbox Live

  • Instant Games (Android Studio port)

  • Nintendo Switch (3rd party porting services)

  • PS4 (3rd party porting services)

  • Nintendo Switch (3rd party porting services)


Editor Features


Here are some of the features in the Construct editor:

  • All platforms support, including web, mobile and desktop.

  • Construct 3

  • Construct 2

Introduction
Features

How to use?

It is easy to use the Friend Manager plugin, you will only need to follow the steps below.

  1. Set up the PlayFab API plugin, please click to visit the documentation. This includes creating a PlayFab account, studio and title.

  2. Set up the Authentication plugin, please click to visit the documentation.

  3. Finally, you can now use the Friend Manager object, and include more PlayFab addons for more features.


Instructions
Documentation

Documentation

There is currently nothing to show, we will add more in the future.



Related Plugins


  • Cloud Script - is a plugin that implements the friend management on the application's client-side. However, you can also use PlayFab's Server Automation feature to implement this in the server-side, and you can easily call your cloud functions through the Cloud Script object similar to calling a function in Construct 3. This is a recommended approach for more advanced online games due to its easier and efficient support for JavaScript scripting.

ACEs

Actions, Conditions & Expressions

Actions

The following action groups:

  • Add Friendship

  • Remove Friend

  • Get Friends List

  • Friend Tags

Add Friendship

  • Add Friend by Email - Adds the PlayFab user, based upon a match against a supplied unique identifier, to the friend list of the local user.

    • Email - Email address of the user being added.

    • Tag - Return the "Tag" of the latest request.


  • Add Friend by PlayFabID - Adds the PlayFab user, based upon a match against a supplied unique identifier, to the friend list of the local user.

    • Friend PlayFab ID - The PlayFab identifier of the user being added.

    • Tag - Return the "Tag" of the latest request.


  • Add Friend by DisplayName - Adds the PlayFab user, based upon a match against a supplied unique identifier, to the friend list of the local user.

    • DisplayName - The PlayFab identifier of the user being added.

    • Tag - Return the "Tag" of the latest request.


  • Add Friend by Username - Adds the PlayFab user, based upon a match against a supplied unique identifier, to the friend list of the local user.

    • Username - The PlayFab identifier of the user being added.

    • Tag - Return the "Tag" of the latest request.



Remove Friendship

  • Remove Friend - Removes a specified user from the friend list of the local user.

    • Friend PlayFab ID - PlayFab identifier of the friend account which is to be removed.

    • Tag - Return the "Tag" of the latest request.


Get Friends List

  • Get Friends List - Retrieves the current friend list for the local user.

    • Facebook Friends - Indicates whether Facebook friends should be included in the response. Default is "Include".

    • Steam Friends - Indicates whether Steam service friends should be included in the response. Default is "Include".

    • Xbox Friends - Indicates whether Xbox service friends should be included in the response. Default is "Exclude".

    • Xbox Token - Xbox token if Xbox friends should be included. Requires Xbox be configured on PlayFab.

    • Tag - Return the "Tag" of the latest request.


Friend Tags

  • Plan Friend Tag - Plan Friend Tag to Stack for the next "Set Tags".

    • Tag - Tag to set on the friend account.

  • Set Friend Tags - Updates the tag list for a specified user in the friend list of the local user.

    • Friend PlayFab ID - PlayFab identifier of the friend account to which the tag(s) should be applied.

    • Tag - Return the "Tag" of the latest request.

Conditions

The following condition groups:

  • Add Friendship

  • Remove Friendship

  • Get Friends List

  • Set Friend Tags

  • Friends List

  • Friends List : Tags

  • Friends List : Location

  • Friends List : Email

  • Friends List : Currency

  • Friends List : Statistics

  • Friends List : Linked Accounts

Add Friendship

  • On Add Friend - Triggers when the Add Friend Succeeded.


  • On Account Not Found - Triggers when the Add Friend responded that the account was not found.


  • On Users Already Friends - Triggers when the Add Friend responded that the users are already friends.


  • On Add Friend Failed - Triggers when the Add Friend Failed.



Remove Friendship

  • On Remove Friend - Triggers when the Remove Friend Succeeded.


  • On Account Not Found - Triggers when the Remove Friend responded that the account was not found.


  • On Remove Friend Failed - Triggers when the Remove Friend Failed.


Get Friends List

  • On Get Friends List - Triggers when the Get Friends List Succeeded.


  • On Get Friends List Failed - Triggers when the Get Friends List Failed.


Set Friend Tags

  • On Set Friend Tags - Triggers when the Set Friend Tags Succeeded.


  • On Account Not Found - Triggers when the Set Friend Tags responded that the account was not found.


  • On Set Friend Tags Failed - Triggers when the Set Friend Tags Failed.


Friends List

  • For Each Friend - Loops through all the Friends List using the "loopFriends" expression.


Friends List : Tags

  • For Each Friends Tag - Loops through all the Friend Tags List using the "loopFriendTags" expression.


Friends List : Location

  • For Each Friend Location - Loops through all the Friend Locations List using the "loopLocations" expression.


Friends List : Email

  • For Each Friends Email - Loops through all the Friend Emails List using the "loopFriendEmails" expression.


Friends List : Currency

  • For Each Friends Currency - Loops through all the Friend Currency List using the "loopFriendCurrencies" expression.


Friends List : Statistics

  • For Each Friends Statistic - Loops through all the Friend Statistics List using the "loopStatistics" expression.


Friends List : Linked Accounts

  • For Each Friends Linked - Loops through all the Friend Linked Accounts List using the "loopLinkedAccounts" expression.

Expressions

The following expression groups:

  • Get Friends List

  • Get Friends List : Game Center

  • Get Friends List : Steam

  • Get Friends List : Tags

  • Get Friends List : Xbox

  • Get