开发者

How to get URLs sorted by most Facebook Likes based on my appId?

开发者 https://www.devze.com 2023-02-26 23:28 出处:网络
Just as the question says, is there a way to get an array of 开发者_如何学运维URLs on my domain sorted by most Facebook Likes? I have a Facebook appId if that helps.

Just as the question says, is there a way to get an array of 开发者_如何学运维URLs on my domain sorted by most Facebook Likes? I have a Facebook appId if that helps.

Thanks!


You can use FQL, like this:

SELECT url, like_count FROM link_stat WHERE url IN ('http://www.url1.com', 'http://www.url2.com')

You can't get it sorted from facebook, you must do that manually later.

Here are some useful links, hope it helps:

http://sudocode.net/article/368/how-to-get-the-access-token-for-a-facebook-application-in-php/ http://developers.facebook.com/docs/reference/fql/

0

精彩评论

暂无评论...
验证码 换一张
取 消