Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I had set up my Twitter button using this tool from Twitter here

And I put it on every page of the website. But it generates the same message on every page. But ideally I would need it to generate a unique message and url per page so people can land on the page which is being shared.

Is there a way to do that?

Thanks!

share|improve this question

1 Answer 1

up vote 1 down vote accepted

While you are creating the code from twitter, If you have entered any url it will share that page content and url every time.

So the solution is just need to avoid the url option while your using twitter share button code , It will read the content from the current page and share current url.

Normally all the social share button using og meta data so set the og data properly some thing like

<meta name="description" content="meta description" />
<meta name="keywords" content="your page keywords" />
<meta name="og:title" content="Your page title nique" />
<meta name="og:type" content="type of content" />
<meta name="og:description" content="Description this will share on social media as a contnet." />
<meta name="og:url" content="http://www.walkswithme.net/smart-image-zoom-plugin-with-jquery" />

hope its make sense..

share|improve this answer
    
thank you, I will try this now :) –  Genadinik Oct 14 '13 at 13:21
    
see my edit too for better idea –  Jobin Jose Oct 14 '13 at 13:24
    
I am trying to figure it out :) .....how would I have the code if I don't want to hard-code the url for each page? Thank you! –  Genadinik Oct 14 '13 at 13:29
    
simply just avoid og:url meta , otherwise set it using server side language if you using any cms it will have option to get current url –  Jobin Jose Oct 14 '13 at 13:33
    
Figured it out with your help - thank you...much appreciated :) –  Genadinik Oct 14 '13 at 13:35

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.