I'm relatively new to mediawiki and has just started last week. Anyone can point me to the correct direction of getting the top article (based on number of likes) in mediawiki? I've already implemented the fblikebutton extension on every article and managed to retrieve the number of likes for each article. Code that I used to check the number of likes in each article on different URLS $query_for_fql = "SELECT like_count FROM link_stat WHERE url = '".$full_url."'"; $fqlURL = "https://api.facebook.com/method/fql.query?format=json&query=" . urlencode($query_for_fql); $response = file_get_contents($fqlURL); $json_data = json_decode($response); $fb_like_count = $json_data[0]->like_count; echo 'Facebook Like:'.$fb_like_count .'<br/>'; eg: example.com/wiki/index.php?title=ABC (1 like) example.com/wiki/index.php?title=XYZ …

Member Avatar
+0 forum 0

The End.