You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both methods to login with cookies (manual or from cache) stopped working. After using the either one it gets "Please login with instagram credentials" error now. Login with credentials works fine.
/** 1. Get cookies from file */
$sessionId = $cachePool->getItem(Session::SESSION_KEY . '.' . CacheHelper::sanitizeUsername($credentials->getLogin()))
->get()
->getCookieByName('sessionId');
// Generate CookieJar from instagram cookie 'sessionid'
$cookieJar = new CookieJar(false, [$sessionId]);
/** 2. Insert cookies manually
$sessionId = new SetCookie([
"Name" => "sessionid",
"Value" => "YOUR_INSTAGRAM_SESSIONID",
"Domain" => ".instagram.com",
"Path" => "/",
"Expires" => "YOUR_INSTAGRAM_SESSIONID_EXPIRES",
"Max-Age" => "31536000",
"Secure" => true,
"Discard" => false,
"HttpOnly" => true,
]);
// Generate CookieJar from instagram cookie 'sessionid'
$cookieJar = new CookieJar(false, [$sessionId]);
*/
The text was updated successfully, but these errors were encountered:
I tried to use pr #330 but still the same issue. After successful login with credentials and attempting to login with cookies after that I still get Please login with instagram credentials from Instagram
Works fine if I comment out the following code in the src/Instagram/Auth/Login.php starting at 154.
if (!isset($data->config->viewer) && !isset($data->config->viewerId)) {
throw new InstagramAuthException('Please login with instagram credentials.');
}
Both methods to login with cookies (manual or from cache) stopped working. After using the either one it gets
"Please login with instagram credentials"
error now. Login with credentials works fine.The text was updated successfully, but these errors were encountered: