Topic on Project:Support desk

how to get the most likes on an article

10
Anyhowputx (talkcontribs)

Hi all

I am trying to get the most popular article based on the number of likes. I've already implemented FacebookLikeButton extension but am not sure what to do next. Anyone can point me to the correct direction? I've been struggling for days. :/ Thank you so much!

Subfader (talkcontribs)

Your request makes no sense. MediaWiki cannot know how many people liked an article on Facebook.

Check the view count tho.

88.130.105.169 (talkcontribs)

If with view count you mean the hitcounter feature, then I have to disappoint you: That feature got removed somewhere in the MediaWiki 1.25 release cycle and there is no replacement for it. The hit numbers should still be in the database, but they are no longer getting updated and they also are no longer displayed.

Subfader (talkcontribs)

Yes, epic fail by the dev team imo. There will be an extension tho.

88.130.65.71 (talkcontribs)

That is planned, but I would not be so sure: Currently, the counter is already no longer working (as its code has been removed) and this extension has not yet been created. Just do nothing and wait some more time and you have an additional argument on your side: The counter numbers are all wrong anyway (because the counter has not been working for x weeks, because its code had been removed). So then it's even less urgent to get it working again.

Apart from that: Having these numbers was nice, but not necessary; there are solutions like Google Webmaster Tools or Piwik, which present exactly the same information, but in a much better way and much more than that.

Basically this feature has been removed and I doubt that it will come back.

Subfader (talkcontribs)

I won't repeat the discussion from the Phabricator ticket here but your pro arguments are my cons. MediaWiki advises admins to use evil Google Analytics or Piwik...

88.130.123.63 (talkcontribs)

MediaWiki does not advise you to do anything; nowadays there are plenty of statistics tools, which are way better than this incomplete counter feature has ever been. It is your free decision to use whatever software you want - including MediaWiki or not MediaWiki.

Anyhowputx (talkcontribs)

Oh. I didn't know that. That was one of the requirement that my company wants me to do. By getting the top article (page) based on number of likes. So this task is not achieveable? Thank You.

88.130.88.246 (talkcontribs)

From the side of MediaWiki I would say it is not possible.

What I do not know, is, if Facebook maybe has some kind of API, where you can query, where and how often people liked something. Facebook basically stores everything - maybe they make that information available. But I don't know that.

Another idea might be to check the referrers of the links, with which people access your site; they might also give an indication of where they come from.

Anyhowputx (talkcontribs)

Thanks for your response. Greatly appreciated it!

Reply to "how to get the most likes on an article"