ourresearch / total-impact-core

An api and backend code to gather the impacts of diverse scholarly products online.
http://impactstory.org
Other
55 stars 7 forks source link

Facebook stats appear broken #107

Closed jasonpriem closed 11 years ago

jasonpriem commented 11 years ago

See http://impactstory.org/collection/lesb5u and look at some of the highly discussed items you'll see something pop up in the Facebook numbers, specifically that for five items the facebook comments, likes, and shares all have exactly the same numbers (124, 396, 245 respectively)....In the collection c2sljf the exact same numbers pop up. Is this just what Facebook reports when it maxes out or something?

The tiids are:

bwduam9m1glsovf3c7bkpung 1bkr2e5nmabzj1xz1isfrapr 3ngcn4gzivsxg72weg1l7ase 9n53rbc3mtjhc36lfy254f0v evn2nxmf56m505b6nl823716 hhl4py75exjmzag6cxolw2x9

jasonpriem commented 11 years ago

Thanks to some detective work from @mfenner and @cameronneylon, the problem is more clear now:

FB is resolving DOI links. Some of these resolve to article pages that require cookies. When the pages see that the FB server doesn't have cookies enabled, it redirects to a "you need cookies" page. Taylor & Francis and NEJM DOIs (potentially among others) seem affected. See #109 for more on this.

So, for this set of DOI links, FB thinks they are all synonyms for a few "you need cookies" pages, and that lots of people are linking to those "you need cookies" pages.

It is not clear how to fix this, other than blacklisting DOI prefixes we know are troublesome (returning NA's from them).