https://metaplay.io logo
Knowing what social platform i'm connected to in t...
# questions-and-feedback
d
Hi, just wondering if there is a way in the client to detected which Platform I have successfully connected to. i.e. which social platform in in "Account attached" state. I can see it connected in the liveops console. I am creating a connector for Discord Social SDK. Thanks Andre
j
Implementing
IMetaplayClientSocialAuthenticationDelegate
in your client state manager and it's
IMetaplayClientSocialAuthenticationDelegate.OnSocialAuthenticationSuccess(AuthenticationPlatform platform)
should give you that info on the client. Additionally, in your MetaplayClientOptions you need to set the listener:
Copy code
// Listen to social authentication validation responses from the server
            SocialAuthenticationDelegate = this,
Let me know if that doesn't work for you!
Ah I see
AuthenticationPlatform
doesn't by default list discord. Not sure what it'll return then. Looking into it...
I'll check with our social platform experts tomorrow on this.
d
Well I have had to modify Metaplay source code to be able to add discord authentication. As far as i could tell the social authentication is not extensible from the outside.
I have implemented the SocialDelegate and know when the Authentication has succeeded. I was just wondering if the fact that a user has a discord id associate with it is something that is available in the PlayerModel or where i need to save it myself.
j
For the record,
AttachedAuthMethods
would probably be the right member in the PlayerModel to look at for this info, but in your case it's customizations to the SDK which normally go under a support contract. But you were already in touch with us over email so we'll sort out a solution that works for you.