Home Forums Basel support forum In reply to: instagram did not return a 200 – March 15, 2018 at 4:50 pm #46296

In reply to: instagram did not return a 200 – March 15, 2018 at 4:50 pm #46296

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #46810

    Estefania
    Participant

    Hi guys!
    After the new change of API and so from Instagram, people get the error “instagram did not return a 200”.
    I am using Basel theme, and I could solve the problem by adding the code indicated in reply #46296:
    function basel_scrape_instagram( $username, $slice = 9 ) {
    $username = strtolower( $username );
    $by_hashtag = ( substr( $username, 0, 1 ) == ‘#’ );
    $transient_name = ‘instagram-media-new1-‘ . sanitize_title_with_dashes( $username );
    $instagram = get_transient( $transient_name );
    etc ……..
    But I have checked that the returning photos belong to the #, not to the user.
    Do you mind to check this issue? I need to show the user 🙂
    My site is in development, close to public, so I can not send you a link there…sorry for that….

    Best regards and thanks a lot!
    Estefanía.

    #46825

    Estefania
    Participant

    Absolutely amazing….
    I do not understand how it could occurred, but now I can see all Instagram photos by username I indicated….

    Maybe is it anything from Instagram?
    Thanks!
    I am going to update Basel theme to V4, if I note anything else, I will tell you! 🙂
    Thanks!
    Estefanía.

    #46867

    Artem Temos
    Keymaster

    Hi,

    OK, contact us if you will have any extra question regarding this concern.

    #47516

    Estefania
    Participant

    Sure! You can close this ticket 🙂
    Thanks a lot!
    Regards,
    Estefanía.

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘In reply to: instagram did not return a 200 – March 15, 2018 at 4:50 pm #46296’ is closed to new replies.