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

Does not work... #25

Closed
pixelbart opened this issue Nov 23, 2016 · 12 comments
Closed

Does not work... #25

pixelbart opened this issue Nov 23, 2016 · 12 comments

Comments

@pixelbart
Copy link

Hello!

I've worked the last day with your class... today it does not working anymore.

Any ideas?

Thanks!

@hahatey
Copy link

hahatey commented Nov 24, 2016

@Bolandish , @Vassardish me too, not working any more.

failed to open stream: HTTP request failed! HTTP/1.1 405 Method Not Allowed
in vendor/bolandish/instagram-grabber/src/Instagram.php on line 19

or trying with the latest updated Instagram.php :

Notice: Trying to get property of non-object in vendor/bolandish/instagram-grabber/src/Instagram.php on line 36

If now must use access-token to fetch, please update the repo to provide a config option.

@paha77
Copy link

paha77 commented Nov 24, 2016

It seems like that Instagram has changed the endpoint URL's. It works with

https://www.instagram.com/explore/tags/[HASHTAG]/?__a=1

but I haven't figured it out how to pass the parameters like paging or etc.

@Bolandish
Copy link
Owner

God damn.. I will try looking into the problem . If you found a solution, feel free to make a pull request :)

@paha77
Copy link

paha77 commented Nov 24, 2016

I'm working on it but only besides my daily work. I've also figured it out that there's a second POST request to

https://www.instagram.com/query/

with the same parameters you use in the current version of the script, the only difference is that it's a POST request.

@paha77
Copy link

paha77 commented Nov 24, 2016

The

https://www.instagram.com/explore/tags/[HASHTAG]/?__a=1 request gives us the last 18 posts back.

@Bolandish
Copy link
Owner

We found a solution.. A update will come within an hour :)

@Bolandish
Copy link
Owner

Please update the script :)

@Bolandish
Copy link
Owner

@paha77 @pixelbart @hahatey

@hahatey
Copy link

hahatey commented Nov 25, 2016

@Bolandish
Thanks very much, is now working great .

$media = json_decode(static::getContentsFromUrl($parameters), ($assoc || $assoc == "array"));

just a little question abt api part,
is there sth like "next_page_url" returned for "load more" features ? is using "max_id"
(query for a big $count number might be heavy and takes longer time to response and render the page.)

stdClass Object
(
    [status] => ok
    [media] => stdClass Object
        (
            [count] => 13354692
            [page_info] => stdClass Object
                (
                    [has_previous_page] => 
                    [start_cursor] => 1391052535586251220
                    [end_cursor] => J0HWDe3RgAAAF0HWDe2XwAAAFiAA
                    [has_next_page] => 1
                )
            [nodes] => Array(
                  ......  .........  ........   
            ) 
)

@Bolandish
Copy link
Owner

@hahatey Maybe in the future. Make an issue and we will look into it :)

@hahatey
Copy link

hahatey commented Nov 25, 2016

ok I made it under #19
and thanks for the great work hope it works better.

@omarhanandeh
Copy link

i can't get page_info 'cursor id ...etc' ,how i can do it?

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

No branches or pull requests

5 participants