Search code examples
javascriptbuttonpinterest

Pinterest share without pin it button


Can I create pinterest share without pin it button? I had try using these but it seem fail.

<a href="http://pinterest.com/pin/create/link/?url=google.com">Pin it</a>

<a href="http://pinterest.com/pin/create/button/?url=google.com">Pin it</a>

Is there any way I can create a pinterest share link without pin it button?


Solution

  • Try making your hyperlink url like this, this worked for me

    string url = "http://pinterest.com/pin/create/button/" +
            "?url=" + "your link" +
            "&media=" + "link to youre image" +
            "&description=" + "your description";
    

    both media and description can be blank so you could do

    string url = "http://pinterest.com/pin/create/button/" +
            "?url=" + "" +
            "&media=" + "" +
            "&description=" + "";
    

    to test it out

    in my code im calling a redirect after a button press but i think this should work for you.