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?


1 Answer 1


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

  • see my edit too for better idea
    – Jobin
    Commented Oct 14, 2013 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
    Commented Oct 14, 2013 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
    Commented Oct 14, 2013 at 13:33
  • Figured it out with your help - thank you...much appreciated :)
    – Genadinik
    Commented Oct 14, 2013 at 13:35
  • Glad to hear that :) Good luck :)
    – Jobin
    Commented Oct 14, 2013 at 13:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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