I know that there are many questions about it, but it is not really what I want.
I have a page with multiple posts on it. Each post has its own comments count. It was simple to get comments count of each post when I was using native website commenting system. Now I want to use Facebook comments API. But there is a problem, how to get comments count of 20-30 posts which are loading dynamicly.
I have few ideas about that:
1) Grab all urls of that 20-30 posts. Make an async request to FB opengraph to get comments count. Parse DOM and change count values.
But this can be slow and don't know if there is an ability to get count for a bunch of urls
2) Prepare CRON method to grab comments count for all posts. And save info to DB.
Not sure, how to do that. But still a variant =)
Any ideas about that? Would be nice to hear your variants to solve this issue!