linkFacebookInstantGame method
Implementation
@override
Future<void> linkFacebookInstantGame({
required model.Session session,
required String signedPlayerInfo,
Map<String, String>? vars,
}) async {
final res = await _api.v2AccountLinkFacebookinstantgamePost(
body: ApiAccountFacebookInstantGame(
signedPlayerInfo: signedPlayerInfo,
vars: vars,
),
);
if (!res.isSuccessful) throw Exception('Linking failed.');
}