potomak / jquery-instagram

Instagram jQuery plugin
http://potomak.github.io/jquery-instagram/
MIT License
555 stars 143 forks source link

Just says 'No photos for this query'? #8

Closed cmykaye closed 12 years ago

cmykaye commented 12 years ago

No matter what tag I use, nothing works?

Here's the .js file:

http://yyy.comuf.com/jquery.instagram.js

And the script:

$(function() { $(".instagram").instagram({ hash: 'op' , clientId: '17329093' }); });

cmykaye commented 12 years ago

I'm practicing with this file but same thing happens. I have a feeling it's a really stupid solution. :/

http://yyy.comuf.com/instagram.php

potomak commented 12 years ago

It is, you're using a wrong clientId. If you're using Google Chrome you can look at Inspector's "Network" tab and see this response form Instagram API:

{
    "meta": {
        "error_type": "OAuthClientException",
        "code": 400,
        "error_message": "The \"client_id\" provided is invalid and does not match a valid application."
    }
}
cmykaye commented 12 years ago

How do I get the correct client ID?

potomak commented 12 years ago

Go to http://instagr.am/developer/register/ and register a new client app then Flattr jquery-instagram at http://flattr.com/thing/269500/Instagram-jQuery-plugin :)