Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Pinterest button have a callback?

I need to unlock content when someone shares the post with pinterest, and I can't find a callback function on pinterest button. Is there any way to do this?

like image 652
Laura Avatar asked Mar 08 '12 18:03

Laura


People also ask

Is there a Pinterest extension for Safari?

By installing the Pinterest Safari extension in your browser, you can quickly pin images to your Pinterest boards from almost any page on the web.


1 Answers

You could wrap the pinterest link with a span and add a jQuery click event to the span to at least know that the pinit button was clicked. That's about the best you can do until they release a real callback so you can know that an item was actually pinned.

<span id="pin-container"><a data-pin-config="beside" href="http://pinterest.com/pin/create/button/?url=[your_url]&media=[your_image]&description=[your_desc]" data-pin-do="buttonPin" ><img src="//assets.pinterest.com/images/pidgets/pin_it_button.png" /></a></span>

$('#pin-container').click(function () {
        alert('clicked pin button');
    });
like image 129
Don Fitz Avatar answered Nov 04 '22 13:11

Don Fitz