tabalinas / jssocials

Social Network Sharing jQuery Plugin

Home Page:http://js-socials.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The counter counts separately for logged users and guests

OksanaRozsokha opened this issue · comments

commented

Hi, that is probably due to a different url for logged in users / guests.
counting is based on URL

@Ruud68
Do you know if it`s possible to use the dynamic URL?
Сan you look here please?
#219

commented

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:

  1. 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
  2. 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.