loginFB method

Future<SXTuple1<IGLoggedInUser>> loginFB(
  1. String fbuid,
  2. String accessToken
)

Implementation

Future<SXTuple1<IGLoggedInUser>> loginFB(
    String fbuid, String accessToken) async {
  _account = await IGAccount.forLogin(fbuid, facebook: true);

  final body = {
    "dryrun": "true",
    "allow_contacts_sync": "false",
    "phone_id": "",
    "waterfall_id": _makeUUID(toUpperCase: false),
    "device_id": _deviceId,
    "fb_access_token": accessToken
  };
  return (await _apiNet.postSignedJson("/fb/facebook_signup", body,
          action: IGAPIAction.AuthFBLogin))
      .tuple1();
}