Tags: microservice-s/Instagram-API
Tags
Utils: Unified function for adding media locations - New, unified Utils function for validating and generating the media "location" parameter used by various functions that can attach locations to media uploads. This avoids code repetition. - We now explicitly FORBID locations that came from the Facebook-based location search functions, because they are NOT valid as media locations. They MAY work but there's no guarantee. The real app never uses those endpoints when attaching media locations. So we now throw exceptions if the user gives us a facebook location. - Updated function documentation in Location.php to clearly notify users which function to use if they want to attach media locations.
Instagram: Refactor and simplify login() system This simplifies the previous, confusing setUser()+login() system, to now just needing login() and nothing else. It should help all of the users who were confused by the old system (many people tried just doing setUser() and then never calling login(), etc). The fact is that we ALWAYS need to call login() anyway, so this new system simply takes care of setting the user automatically. - login() now takes two new parameters: $username, $password. - login() now automatically calls _setUser() internally. - setUser() is no longer a public function. Users should no longer call it manually. - The login() function documentation has been improved. - Renamed twoFactorLogin() to finishTwoFactorLogin() to make it clearer that it ISN'T a "standalone login function" and that it's meant to be called AFTER the regular login() attempt. This helps avoid confusion. - Added the "$appRefreshInterval" param to finishTwoFactorLogin() to let users control the state refreshing interval even when they're doing two-factor logins. - The finishTwoFactorLogin() function documentation has been improved.
PreviousNext