Skip to content

Instantly share code, notes, and snippets.

@BrokedTV
Forked from jonatanfroes/InstagramController.php
Created December 19, 2018 09:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BrokedTV/849cb32c7d7001899a5ea02f82cab7e0 to your computer and use it in GitHub Desktop.
Save BrokedTV/849cb32c7d7001899a5ea02f82cab7e0 to your computer and use it in GitHub Desktop.
fix login required
/*
Jonatan Froes <jonatanfroes@gmail.com>
1. on InstagramController.php, remove this line:
$Account->set("login_required", 1)->update();
*/
/*
2. add this lines:
*/
$message = strtolower($msg);
if(strpos($strtolower($msg), "login required") === false) {
//another error, not login required
} else {
$Account->set("login_required", 1)->update();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment