pgrimaud / instagram-user-feed

This is a scrapper to easily fetch any feed and interact with Instagram (like, follow, etc.) without OAuth for PHP.
MIT License
881 stars 137 forks source link

userId integer overflowed #240

Closed dejvidecz closed 3 years ago

dejvidecz commented 3 years ago

userId is stored as integer functions in Instagram\Api.php has userId argument as integer

Max integer value is 2147483647 But for example one of my ids is 6383308725

So all methods with userId as argument not works for me :-) And method $profile->getId() instead of 6383308725 returns 2147483647

maybe it should be changed to float or string :)

pgrimaud commented 3 years ago

Hello, I guess you're running this package on 32bits env?

dejvidecz commented 3 years ago

Hello @pgrimaud, yes i am running on 32 bit environment. I've just implemented few new classes (changed int to string) and it works great :)

pgrimaud commented 3 years ago

Ok, cool ! I won't add a compatibility with 32bits env on this lib, because it will create tons of breaking changes and add lot of useless lines of code.