suphiyasin / instagram-api

Simple PHP Private API that allows you to use both mobile and web APIs of Instagram
https://suphi.org
MIT License
30 stars 10 forks source link

Close friends #6

Closed Skeid9 closed 2 months ago

Skeid9 commented 2 months ago

Hi,

does it also allow to add and delete a follower to close friends list? If not, this would be a great feature :))

suphiyasin commented 2 months ago

Of course it is possible to add it, I will add it when I am available.

suphiyasin commented 2 months ago

InstagramUser.php 253. lane

public function addCloseFriend($userid){
    $url = $this->apibase.'/api/v1/stories/private_stories/add_member/';
    $params = 'module=audience_selection&source=settings&user_id='.$userid.'&_uuid=69f73a0d-e663-4a2b-a7e9-56f38e1ad5a2';
    $sendRequest = $this->postwithcookie($url, $params);
    return $sendRequest;
    }