pgrimaud / instagram-user-feed

This is a scrapper to easily fetch any feed and interact with Instagram (like, follow, etc.) without OAuth for PHP.
MIT License
882 stars 138 forks source link

Get hd profile photo by username #253

Closed RoseGoli closed 3 years ago

RoseGoli commented 3 years ago

Hi

Could you add hd_profile_pic_url_info to getProfile method ?

In that way we can load users high quality profile picture fast and easy by username ...

I think the only way at this time is to getProfile first, to get thr user id and then use getProfileAlternative . But this is not a good way because of multiple request 😶

Tnx for your amazing lib 🤍🌸

RoseGoli commented 3 years ago

Can you provide example profile

If we have the username "google" Then we can get the photo url by this code :

$inf   = $api->getProfile($match[1])->toArray();
$photo = $inf['profilePicture'];

But this is not the hd profile picture ! Lets see the quality IMG_20211005_093345_219

But this is the hd one . . .

IMG_20211005_093508_747

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.