diff --git a/src/SocialFeed.php b/src/SocialFeed.php index 716fd00..cc158b4 100644 --- a/src/SocialFeed.php +++ b/src/SocialFeed.php @@ -481,9 +481,8 @@ public function setCredentials(array $credentials) { public function getFeed($username) { $response = []; - $data = $this->getApi("users/search?q=$username"); - $id = $data->data[0]->id; - $data = $this->getApi("users/$id/media/recent/"); + $data = $this->getApi("users/self"); + $data = $this->getApi("users/self/media/recent"); foreach ($data->data as $item) { $response[] = $this->parseItem($item); }