source/php/Module/Social/Feed.php
private function getInstagramProfile() : array
    {
        if (isset($this->cache->entry_data->ProfilePage[0]->graphql->user)) {
            $user = $this->cache->entry_data->ProfilePage[0]->graphql->user;
            return array(
                'name' => $user->full_name,
                'user_name' => $user->username,
                'profilepic_sd' => $user->profile_pic_url,
                'profilepic' => $user->profile_pic_url_hd,
                'biography' => $user->biography,
            );
        }
        return array();
    }
private function getInstagramProfile() : array
    {
        if (isset($this->cache->entry_data->ProfilePage[0]->graphql->user)) {
            $user = $this->cache->entry_data->ProfilePage[0]->graphql->user;
            return array(
                'name' => $user->full_name,
                'user_name' => $user->username,
                'profilepic_sd' => $user->profile_pic_url,
                'profilepic' => $user->profile_pic_url_hd,
                'biography' => $user->biography,
            );
        }
        return array();
    }
private function getInstagramProfile ( ) : array { if ( isset ( $ this -> cache -> entry_data -> ProfilePage [ 0 ] -> graphql -> user ) ) { $ user = $ this -> cache -> entry_data -> ProfilePage [ 0 ] -> graphql -> user ; return array ( 'name' => $ user -> full_name , 'user_name' => $ user -> username , 'profilepic_sd' => $ user -> profile_pic_url , 'profilepic' => $ user -> profile_pic_url_hd , 'biography' => $ user -> biography , ) ; } return array ( ) ; }
Request the user profile
@param string $username The usernanme to fetch profile of
@return array/bool The data fetched from the service api or false if none
Request the user profile