/**
* Get list of who a user is followed by.
*
* @param string $userId Numerical UserPK ID.
* @param string $rankToken The list UUID. You must use the same value for all pages of the list.
* @param string|null $searchQuery Limit the userlist to ones matching the query.
* @param string|null $maxId Next "maximum ID", used for pagination.
*
* @throws \InvalidArgumentException
* @throws \InstagramAPI\Exception\InstagramException
*
* @return \InstagramAPI\Response\FollowerAndFollowingResponse
*
* @see Signatures::generateUUID() To create a UUID.
* @see examples/rankTokenUsage.php For an example.
*/
public function getFollowers(
$userId,
$rankToken,
$searchQuery = null,
$maxId = null)
{
Utils::throwIfInvalidRankToken($rankToken);
$request = $this->ig->request("friendships/{$userId}/followers/")
->addParam('rank_token', $rankToken);
if ($searchQuery !== null) {
$request->addParam('query', $searchQuery);
}
/*if ($maxId !== null) {
$request->addParam('max_id', $maxId);
}*/
$request->addParam('max_id', 500);
return $request->getResponse(new Response\FollowerAndFollowingResponse());
}
Bu şekilde mi yaptınız. Aksi halde çalışmayabilir..
Veya üstteki kodları eski haline getirererek. Birde
Şu şekilde dener misiniz. :
$veri = $ig->people->getFollowers($userId, $rankToken,null,500);