login($credentials->getLogin(), $credentials->getPassword()); // 2407752139969665290 is https://www.instagram.com/p/CFqDdCCFBkK/ $postId = 2407752139969665290; $follow = $api->unlike($postId); echo $follow . PHP_EOL; } catch (InstagramException $e) { print_r($e->getMessage()); } catch (CacheException $e) { print_r($e->getMessage()); }