Basically, I have been looking at a facebook integration to invite facebook friends specifically, using the facebook feature "game request" in the form of invite. It is a feature that exists in the facebook API, but I've been unable to understand if I would be able to use it with Playfab/FB integration.
The feature in question is explained here: https://developers.facebook.com/docs/games/services/gamerequests#invites
I found no other threads in forums that specifically deals with this feature in the scope of Playfab.
Answer by pfnathan · May 11, 2018 at 06:43 PM
You could call PlyfabID as follows ... Note: it's just for the reference.
Below code are from https://developers.facebook.com/docs/games/services/gamerequests#invites UnitySDK
FB.AppRequest( message: "I Just got " + GameStateManager.Score.ToString() + " points! Can you beat it?", to: recipients, data: "{\"challenge_score\":" + GameStateManager.Score.ToString() + "}" title: "Friend Smash Challenge!", callback:appRequestCallback );
Modify above code to something like this by adding "PlayfabId"
var playFabIdStored = "34098409234"; FB.AppRequest( message: "I Just got " + GameStateManager.Score.ToString() + " points! Can you beat it?", to: recipients, data: {"challenge_score":1000, "PlayFabId":playFabIdStored } //"{\"challenge_score\":" + GameStateManager.Score.ToString() + "}" title: "Friend Smash Challenge!", callback:appRequestCallback );
I'm not entirely sure I follow. How is the PlayfabID related to Facebook SDK here? Is it actually a reference to the facebook token?
If playfab would let me use the token from facebook directly, I guess I could then build my own features around this.
Can you please clarify what you saw that implied the Facebook game request feature was compatible with PlayFab? We have custom game server hosting, which you can use to host game sessions, but we generate unique Lobby IDs for all games which are unrelated to anything in Facebook.
Photon chat or PlayFab friends? 1 Answer
Tags does not show in GetFriendLeaderboard 1 Answer
Server API for GetFriendLeaderboardAroundPlayer equivalent missing 1 Answer
LinkFacebookAccount ForceLink 1 Answer
Chat using photon chat 1 Answer