Canonical Link and extra values

January 2013 WordPress Theme
GK User
Mon Mar 18, 2013 11:44 am
Hi!

I've noticed that when sharing an article, the facebook, twitter, and google account are updated regularly with the number shared (liked, etc)

Let's get this example http://www.albanianews.it/cultura/arte- ... ile-torino (here we have some 154 likes)

But when you add some values after the link for different purposes, like this http://www.albanianews.it/cultura/arte- ... ce=twitter the counter doesn't function.

It seems like Gavern treats it like a new url. You have to get the canonical url for this thing to be ok (by the way: when I used to use Joomla, Gavern it had the same problem when putting the url to the share buttons)

Please, could you verify this problem and find e solution?
User avatar
Fresh Boarder

GK User
Mon Mar 18, 2013 12:28 pm
Hi,

You're right, I've found an easy solution which you can apply on your site: https://github.com/GavickPro/Meet-Gaver ... f7dceb9643

We will also add this code to GavernWP 1.7.

Thank you for your feedback :)
User avatar
Administrator

GK User
Mon Mar 18, 2013 1:53 pm
I don't think it's enough.

The changes must be done on og:url for sure. But you must change also the function where you call the buttons.

$fb_like_output = '<div class="fb-like" data-href="'.get_permalink($postID).'" '.$fb_like_attributes.'></div>';

And now, it should be OK

:-)

dziudek wrote:Hi,

You're right, I've found an easy solution which you can apply on your site: https://github.com/GavickPro/Meet-Gaver ... f7dceb9643

We will also add this code to GavernWP 1.7.

Thank you for your feedback :)
User avatar
Fresh Boarder

GK User
Mon Mar 18, 2013 2:01 pm
You're right :) I've added this fix: https://github.com/GavickPro/Meet-Gaver ... e5ce9cf523

Thanks again :)
User avatar
Administrator


cron