linkFacebookInstantGame method

  1. @override
Future<void> linkFacebookInstantGame({
  1. required Session session,
  2. required String signedPlayerInfo,
  3. Map<String, String>? vars,
})
override

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.');
}