Welcome to this blog.
You can get the photos from Instagram by setting up the username in the url. You can simply use the ajax request and to avoid the cross domain issue you can use the whateverorigin.org in your url. You can use the dataType : jsonp for crossdomain but Instagram returns data in json format not in jsonp.
$.ajax({
url: "http://whateverorigin.org/get?url=" + encodeURIComponent("http://instagram.com/{author_name}/media");,
dataType : "json", // this is important
cache: false,
success: function(response){
// result goes here
}
});
0 Comment(s)