I am building an app which utilizes the Parse back-end. As part of my user object I want to directly use the FacebookID as my UserID, but I want to convert it to a BigInt instead of a string.
I used the following code, but when I check the data in Parse the value is slightly off.
"user" is a GraphUser object which I have declared above.
String iDString = user.getId();
BigInteger iD = new BigInteger(iDString);
currentUser.put("faceID", iD);
When I check the data in Parse I get the following:
Original ID in string format (* are used to cover digits):
************27645
BigInt ID:
************27644
Does anyone know why the last digit is 1 less than the digit above? May it have something to with the sign of the BigInt?