The counter counts separately for logged users and guests
OksanaRozsokha opened this issue · comments
Hi, that is probably due to a different url for logged in users / guests.
counting is based on URL
Hi,
this is a facebook feature;
when you share url: https://mydomain/blog-one?123 and url https://mydomain/blog-one?123, these are for your site probably the same urls, but for facebook (and also linkedin) these are two different urls. Each url will have it's own share counter.
This can be solved (for facebook) in two ways:
- adjust the jssocials script to drop the ?xyz from the shared url so that in both cases https://mydomain/blog-one is shared (and counted)
or - set the og:url metatag to the https://mydomain/blog-one url.
og:url works the same as the canonical tag for google. When set, facebook will use the url set in the og:url metatag as the url for the share count.