Avatar Image #257

Closed
johnnydevs opened this Issue Apr 27, 2015 · 2 comments

Projects

None yet

2 participants

@johnnydevs

Is it possible to show the user instagram avatar/profile image next to the post?

My current code is as follows;

var userFeed = new Instafeed({
    get: 'user',
    userId: my_user_id,
    accessToken: 'my_token'
});,
template: '<a href="{{link}}" target="_blank"><img src="{{image}}" /></a>'
userFeed.run();

Thanks,
J

@stevenschobert
Owner

Yes, you can use <img src="{{model.user.profile_picture}}" /> in your template to display the users profile picture!

For a complete list of properties that are under model see #21.

@johnnydevs

Excellent thanks for this plugin :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment