question

adnannazir2012 avatar image
adnannazir2012 asked

Referral Codes can be used as an alternative to In App gifting

Hello,

I wanted to create a mechanism where user can send in app gifts like lives, health, coins, gems to their friends just like in many famous games.
The referral codes system can be consumed only once from the same user. Is there any way I can do it ? Especially when Facebook has deprecated their Open graph Custom objects. How can we use PlayFab for In app gifting ?

unity3dIn-Game EconomyFriends
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

·
brendan avatar image
brendan answered

Sure, there are a few ways you could go about this. One would be using referral codes, as we show in this sample: https://github.com/PlayFab/PlayFab-Samples/tree/master/Recipes/ReferralCodes. Alternately, you could just use the Trading system (https://api.playfab.com/docs/tutorials/landing-tournaments/trading) to gift items directly from the player's inventory (just have no required items, so that it's a gift).

10 |1200

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

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.