-
Notifications
You must be signed in to change notification settings - Fork 858
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Photos I like and with hashtag #87
Comments
Hi @naderby |
Hey @naderby! Yeah, I'm sorry to say @neilcampbell is correct, there is no method for getting photos you like. Only for getting your public photos. Sorry to disappoint! |
This would be a great feature! I would gladly pay for this! |
Hi! Edit: yep, that's working. var feed = new Instafeed({
target: 'TARGET_HERE',
get: 'tagged',
tagName: 'TAG_NAME_HERE',
clientId: 'ID_HERE',
limit: 60,
userId: USER_ID_HERE,
accessToken: 'TOKEN_HERE',
filter: function(image) {
return image.user_has_liked;
}
}) |
@tanelkarp you awesome person! image.user_has_liked; does not seem to be in the instafeed.js documentation. |
@tanelkarp Ah, clever! I really like this approach 👍 |
@sethsanders My main reason for not adding the "photos you like method" was that it (at the time anyways) required a higher permission level in the In the mean time, @tanelkarp's approach is a good option. |
@stevenschobert / @tanelkarp great script and very useful options provided. I have tried the above approach to get user liked images with a limit of 30. Everything worked fine till about a week back when it displayed about 24 images, now the script retrieves only 5 to 6 recently "liked" images. Any idea on where my configuration is wrong! You can access this @ www.oakngrill.co.uk/Gallery var imgFeed = new Instafeed({
get: 'user',
userId: 1513315715,
clientId: '268a7fc8926b4d27b93dda847b33870b',
accessToken: '1513315715.467ede5.a0bc1a1063e740e68cfeba1ed86172f6',
resolution: 'thumbnail',
template: '<div class="instabox"><div class="instabox-img"><img src="{{image}}" /></div><div class="instabox-temp"> </div><div class="instabox-info"><div class="instatitle">{{caption}}</div><div class="instaicon"><div class="instaicon-love"><div class="flaticon-heart13"></div></div><div class="instaicon-text"><a href="#"></a></div></div></div></div>',
links: 'false',
limit: 30,
filter: function (image) {
return image.user_has_liked;
}
});
$(document).ready(function () {
if ($('#instafeed').length ) imgFeed.run();
}); |
Just a heads up, using this filter with the new method of not using an access token but only the clientID doesn't seam to work, and the link to get an access token from the Instafeed site seams to have been removed with the last update so people still may need an access token I believe
|
Great js guys, please forgive my limited knowledge but what code do I use to get photos I've liked (including my own) but also have a specific hashtag?
The text was updated successfully, but these errors were encountered: