Pregunta

I have incorporated the ShareWidget on the profile pages of www.hireinfluence.com

e.g.

  1. https://beta.hireinfluence.com/shardulbhatt
  2. https://beta.hireinfluence.com/HireInfluence

As I am using this over https, I have included the button.js available over http://ws.sharethis.com/button/buttons.js

Further, the og:url tag on the page also points to the URL seen in the browser.

Somehow the URL shared by the ShareThis widget is always info.hireinfluence.com instead of the one in the browser address bar.

Can someone please help me resolve this issue?

Thanks Shardul.

¿Fue útil?

Solución

ShareThis has a tweak where you can add: expr:st_title='data:post.title' expr:st_url='data:post.url' to each button, forcing the share buttons to share the link in the post instead of the link in the broswer.

The code would look something similar to this:

    < span class='st_twitter_hcount' expr:st_title='data:post.title' expr:st_url='data:post.url'/>
< span class='st_facebook_hcount' expr:st_title='data:post.title' expr:st_url='data:post.url'/> 
< span class='st_googleplus_hcount' expr:st_title='data:post.title' expr:st_url='data:post.url'/> 
< span class='st_linkedin_hcount' expr:st_title='data:post.title' expr:st_url='data:post.url'/>

That should also solve the image issue too.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top