How can I get the list of top 10 artciles shared on Facebook using Graph API or FQL?

空扰寡人 提交于 2019-11-30 23:56:07

I suggest you to do this way:

For example: Articles from http://googledevelopers.blogspot.com (It may not work on all website, so you may try your luck.)

https://graph.facebook.com/search?q=googledevelopers.blogspot.com&type=post&limit=25

The you can collect all link/message/...etc which was exist/valid article on the domain(For example, http://googledevelopers.blogspot.com/2013/05/an-easier-way-to-save-files-to-google.html is exist and consider increment one count, however http://googledevelopers.blogspot.com is not consider one count.)

You collect ALL via pagination "until=", until one week or month and you stop pagination.

Of course, each count should be tied to one post id. Remove these count which was duplicated post_id.(May happen when both message and link contains 'http://googledevelopers.blogspot.com/2013/05/an-easier-way-to-save-files-to-google.html', so it should consider as only one count)

Sum all counts for each unique articles.(For example, http://googledevelopers.blogspot.com/2013/05/an-easier-way-to-save-files-to-google.html have 3 counts), then sort all those articles by counts. Again, make sure no duplicated post_id for all count.

Cheers

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!