Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getMedias() doesn't work. #370

Open
esedArk opened this issue Jan 19, 2024 · 3 comments
Open

getMedias() doesn't work. #370

esedArk opened this issue Jan 19, 2024 · 3 comments
Assignees
Labels
need-investigations Need investigations to classify

Comments

@esedArk
Copy link

esedArk commented Jan 19, 2024

Version(s) affected: ^7.0.0

Description
When I do a $profile->getMedias() it returns an empty array

How to reproduce
image

image

Additional context
I am using the login with sessionId cookie

@esedArk esedArk added the need-investigations Need investigations to classify label Jan 19, 2024
@muhammedfisek
Copy link

yes, this is important. empty array is returned.

@gregorysouzasilva
Copy link

It seems to work if you use $api->getMoreMedias($profile). V6.16 here.

$profile = $api->getProfile($instagram_account);
$profile = $api->getMoreMedias($profile);
$medias = $profile->getMedias();

@bookoly
Copy link

bookoly commented Mar 17, 2024

It seems to work if you use $api->getMoreMedias($profile). V6.16 here.

$profile = $api->getProfile($instagram_account); $profile = $api->getMoreMedias($profile); $medias = $profile->getMedias();

Check out the changelog for version v6.16.5 - 2023-12-24:

Medias are no longer returned after fetching a profile.
$profile->getMedias() will always return an empty array after calling $api->getProfile().
It is necessary to call $api->getMoreMedias($profile) to return the first 12 media (cookieguru)
Same for IGTV (cookieguru)
Fix imap_delete second parameter (deepvision7)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need-investigations Need investigations to classify
Projects
None yet
Development

No branches or pull requests

5 participants