I’m using facebooks PHP SDK version 3. It turns out that it won’t work on 32-bit system as the SDK casts the facebook ids to integers and the ids can be larger than 2147483647 that is a 32-bit systems max integer value.
I also found the issue here https://github.com/facebook/php-sdk/issues/11
Is there anyone that has a “not so hacky” solution for this?
There is a workaround for this. Just change integer to string
Find this line
and change it to
and also find
and change it to
and also find
change it to
And it works. Int isn’t able to handle such a long user ids on 32bit systems, that’s why is it making problems