Looking at that answer it's clear that varchar(2048) will be ok for a while. What is the extra work required by your application to store as a character large object or TEXT. If it is significant then implement as varchar(2048) for now and add this as a possible risk/bugfix for the future, if it is trivial then use TEXT.
Best field type for storing Facebook Access Token
-
28-09-2022 - |
Question
Regarding to this answer to a question on SO a Facebook representative is making me a bit confused. He actually says, that there should be no upper limit on the length on the field storing a Facebook Access Token.
This leaves me behind with one question: What is the best MySQL field type for storing a facebook access token then? Is it TEXT? Or is VARCHAR(2048) better, even though it still has a maximum length?
Hope there is some bright minds, that can help me :)
Thanks in advance!
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow