我需要使用Instagram API來獲得Instagram新追隨者。我能夠得到全友,但無法獲得新的追隨者。我必須得到新的追隨者。如何通過在PHP中使用API獲取instagram新的關注者?
$obj = new Instagram\Instagram;
$obj->setAccessToken($sKey1);
$_SESSION['Inst_'.$keys['AppKey']] = $obj;
$current_user = $_SESSION['Inst_'.$keys['AppKey']]->getCurrentUser();
$follows = $current_user->getFollows(isset($_GET['follows_cursor']) ? array('cursor' => $_GET['follows_cursor']) : null);
$follows_count = $current_user->getFollowsCount();
如何獲得新的追隨者不是完全追隨者?
理想情況下,我們需要一個僅返回新追隨者或未關注追隨者的端點。而且這樣做可以減輕Instagram API的沉重負擔,因爲我們目前不得不通過循環來吸引所有追隨者,以確定誰是新的或未關注的。 – James 2017-10-13 14:41:18