Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require('../wp-blog-header.php');
- query_posts('&showposts=-1');
- while (have_posts()) : the_post();
- if ( has_post_thumbnail() ) {
- the_post_thumbnail( array(40,40) );
- }
- $url = get_the_permalink();
- $json = file_get_contents( 'https://graph.facebook.com/fql?q=SELECT%20like_count,%20total_count,%20share_count,%20click_count,%20comment_count%20FROM%20link_stat%20WHERE%20url%20=%20%27' . $url . '%27' );
- $json_data = json_decode($json, false);
- echo $json_data->data[0]->total_count;
- endwhile;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement