potomak / jquery-instagram

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

getting "object has no method 'instagram' " error. #39

Closed cjch0 closed 11 years ago

cjch0 commented 11 years ago

i already saw this post: https://github.com/potomak/jquery-instagram/issues/4 but the solution does not apply in my case.

$(".instagram").instagram({ hash: 'something', clientId: myClientId });

I've imported the script and followed all instructions, but still nothing. please help!

potomak commented 11 years ago

create a fiddle or post your code here to get support please

cjch0 commented 11 years ago

http://jsfiddle.net/ZqHhs/4/

here is my fiddle. I loaded the same external resource uri that you used in your fiddles.

On Sun, Jun 9, 2013 at 6:13 AM, Giovanni Cappellotto < notifications@github.com> wrote:

create a fiddle or post your code here to get support please

— Reply to this email directly or view it on GitHubhttps://github.com/potomak/jquery-instagram/issues/39#issuecomment-19165855 .

potomak commented 11 years ago

New versions of Chrome browser don't allow javascript resources with the wrong MIME type.

See the error:

Refused to execute script from 'https://raw.github.com/potomak/jquery-instagram/master/jquery.instagram.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.

Example solution: use http://cdnjs.cloudflare.com/ajax/libs/jquery-instagram/0.2.2/jquery.instagram.js (http://jsfiddle.net/ZqHhs/5/)

See also #38