Skip to content
Making a ranking rated by the number of Facebook like. You can make and use a ranking rated by the number of Facebook like width this plugin.
PHP JavaScript Vue HTML CSS
Branch: master
Clone or download
Latest commit 6e0a3ea Jun 15, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc-src ⚡️ upgrade axios Jun 14, 2019
languages ⚡️ update po May 16, 2019
.bash_profile version1.04 Dec 4, 2016 📚 Update May 16, 2019
readme.txt 📚 change the donation link Jun 14, 2019
screenshot-1.png version1.04 Dec 4, 2016
screenshot-2.png version1.04 Dec 4, 2016
setting.html.php 🎨 meet PSR2 May 16, 2019
wp-fb-like-ranking.php 🔖 v2.0.1 May 16, 2019
wp-fb-like-ranlking.css It's been a long time. Update. Dec 4, 2016

WordPress Facebook Like Ranking 😸😇😈

With this plugin, you can create a your posts' ranking sorted by the number of Facebook like.


How to use

Create FB App


Get FB App Token

You can get that here

Set your FB App Token

You can see the setting of this plugin when you install it. Click it.

You will see the setting page like below.
Put your token in the form and hit the save button.

Generate your ranking

All you need to do is just hit the "Create or Recreate" button.

🛠 Put code (or you can use wdget)

Put the code below whereever you would like to make the raking show up.

<?php if (function_exists('get_like_ranking')) get_like_ranking(); ?>

There are 6 parameters for this method.

get_like_ranking(int $post_number = 5, bool $post_count = true , array $thumbnail = null, $category_id = null, $shorten_words = null, $custom_post_name = null)

In this case, There should be 10 articles which are "Movie" custom post type on your raking.
Second argument is false, thus like count of each artile does not show up.
Thumbnails are 15px x 15px.
If the title og the article is over 25 characters, it's gonne be compressed to 25 characters.

<?php if (function_exists('get_like_ranking')) get_like_ranking(10, false, array(15, 15), null, 25, "movie"); ?>
You can’t perform that action at this time.