Facebook once recommended saving your user_id values ββas strings (now you cannot find the link anywhere). The documentation also states that user_id is a string.
In my experience, the value of user_id may be the value of bigint(20) , but I think it is a good idea to save it as a string in order to try to prevent any possible future changes from messing with my applications. In any case, no numerical operations are required on the actual user_id ; This is just a unique identifier. Make sure you use it as an index in the database user table so that it is not possible to duplicate user_ids.
Lix source share