php-snapchat
php-snapchat copied to clipboard
Fatal Errors on using getSnaps();
So my program was running perfectly fine until about 3 days ago when suddenly these errors showed up. I did not change my code at all and I have re uploaded the original snapchat.php files to make sure I didn't mess those ones up. Do you have any ideas on what my problem is?
Fatal error: Call to a member function get() on a non-object in /homepages/15/d419114431/htdocs/bobink/snapchat/src/snapchat.php on line 317
Fatal error: Call to a member function get() on a non-object in /homepages/15/d419114431/htdocs/bobink/snapchat/src/snapchat.php on line 234
Same problem here. Tried digging down a bit, and I took out lines 233-238 from snapchat.php getUpdates function, and now it fails because of an invalid auth_token, so I'm guessing that's why $this->cache->get('updates') was making it fail as well.
Edit: Didn't see this pull request before. This fixes the issue: https://github.com/JorgenPhi/php-snapchat/pull/64
I added the code from issue #64. I still have the same error.
Commit fe0dd1c9a16e453fa96947c5f865092c3828a070 seems to fix this error. Snapchat seem to be cracking down on third party applications, my account was locked for using a "third party app", unlocking the account required changing the password. I think they worked this out just by looking at the Snapchat version number, noticing that we're all using the same version, same phone model :)