-1

I have this code and as you can see I can see how much likes every photo has, but i want to know username of person who uploaded every photo. What should I write ?

            var str = '<p>likes: '+ photo.likes.count +'</p><img id="' + photo.id + '" src="' + photo.images.standard_resolution.url + '" width="50">';
            $('<div></div>').addClass('photo').html(str).appendTo('#p' + photo.id);

            $('#' + photo.id).load(function() {
                $('#p' + $(this).attr('id')).fadeTo('slow', 1.0);
            });

        }
    }else{
        alert('empty');
    }

}else{
    alert(data.meta.error_message);
}
4

1 回答 1

0

数据json对象在网站上有描述:http: //instagram.com/developer/endpoints/media/ 这是你需要使用的

data.user.username
于 2013-02-06T15:47:34.740 回答