Open shadle10 opened 8 years ago
CB is fired when all the post are loaded. If not, then the CB is never call. I tried and it works nicely for me. Give me an example please
For example, on pavelk2.github.io/social-feed, the callback function has this line: console.log('all posts are collected'). But 'all posts are collected' is never visible in the console. Is it an issue with the number of posts that you set in the social networks?
Yes it's probably because google api return an error, than the posts are not counted
@pavelk2 I think we should found a solution to add the posts to the total count loaded in both case, if the network api return an error or not.
the problem on http://pavelk2.github.io/social-feed/ is that is using the google api that are not working anymore (nned a new api key probably).
Thanks for the quick response :)
It's no longer working for Twitter either, my set up...
$('.tweets').socialfeed({
twitter:{
accounts: ['@kyan', '#webmeetguildford'],
limit: 4,
consumer_key: 'key',
consumer_secret: 'secret'
},
template_html:
'<div class="gallery-cell tweetsCol twitter-post"> \
<img class="tweetsImg" src="{{=it.author_picture}}"/> \
<p class="tweetsTxt">{{=it.text}}</p> \
</div>',
callback: function() { //Function: This is a callback function which is evoked when all the posts are collected and displayed
console.log("All posts collected!");
}
});
Hi! First off, I absolutely love your plugin and really appreciate having the ability to reuse it - it has really helped me out. Second, I'm not able to get the callback function (from the options) to fire. This is happening on http://pavelk2.github.io/social-feed/ as well as my local version - the "all posts are collected" log message that should be displayed once all posts have been procured isn't. Thanks!