Closed AntonioCS closed 4 years ago
Hi @AntonioCS
I have not problem to fetch brunapetrillo stories. I tried many times and don't get any error.
Is your logged account following this user?
Apologies for this, might be some issue of my user. I will investigate further. Thanks for the quick reply.
Hello again, Apologies for this, this might have been something completely on my side! Thanks again for the quick reply
Version(s) affected: 6.6.2
Description
I have the following code:
This is returning:
Currently this user (https://www.instagram.com/brunapetrillo/) has 9 stories. Unsure if instagram changed something in their api.
UPDATE: Checking the calls on the browser I can see that the
QUERY_HASH_STORIES
is different from what I see in the code. This is the hash I saw in the request: 303a4ae99711322310f25250d988f3b7I have updated it manually in the code (on file src/Instagram/Transport/JsonStoriesDataFeed.php) but that have the same empty results unfortunately.
UPDATE 2: Here is the full url: https://www.instagram.com/graphql/query/?query_hash=303a4ae99711322310f25250d988f3b7&variables={%22reel_ids%22:[%226302052%22],%22tag_names%22:[],%22location_ids%22:[],%22highlight_reel_ids%22:[],%22precomposed_overlay%22:false,%22show_story_viewer_list%22:true,%22story_viewer_fetch_count%22:50,%22story_viewer_cursor%22:%22%22,%22stories_video_dash_manifest%22:false}
This was produced by the script but returns nothing (on the script) but if I paste it in the browser I get:
So the code on my machine is using the new hash but still returning empty results. Might this be something wrong with how the session is maintained in the request? This is what I have for creating the instance: (this is in a function that returns the instance)
The cache directory gets created without issues and I see no exceptions.
UPDATE 3: This seems to be a problem with this particular user (https://www.instagram.com/brunapetrillo/) because when I put in a different one I am able to get the stories, even with the other hash tag.. So not sure if this is something to do with the user I am logged in is blocked for brunapetrillo