문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top