Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Display Instagram photos from different account to my webpage

    • 0
    • 1
    • 1
    • 1
    • 0
    • 0
    • 0
    • 0
    • 135
    Comment on it

    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)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: