I am trying to add the tumblr sharing button to my online store and I am not getting the Share Tumblr button ( see here ) to work.
- I want to share an image of a user-configured product and set a clickthrough link to the product page.
- Since the store is built on Knockout.js and the product configurator loads dynamically, the script " share.js " provided by tumblr does not work.
So, my share url button looks like this:
var url = 'http://www.tumblr.com/share/photo';
url += '?source=' + encodeURIComponent('https://www.filltheblank.de/public/images/taschen/7_16.1-17.3-18.122-19.129-20.132_1.jpg');
url += '&caption=' + encodeURIComponent('little black dress bag');
url += '&click_thru=' + encodeURIComponent('https://www.filltheblank.de/konfigurator/#step:1|product:7_16.1-17.3-18.122-19.129-20.132');
Or if you split it:
http://www.tumblr.com/share/photo?source=https%3A%2F%2Fwww.filltheblank.de%2Fpublic%2Fimages%2Ftaschen%2F7_16.1-17.3-18.122-19.129-20.132_1.jpg&caption=little%20black%20dress%20bag&click_thru=https%3A%2F%2Fwww.filltheblank.de%2Fkonfigurator%2F%23step%3A1%7Cproduct%3A7_16.1-17.3-18.122-19.129-20.132
When you open this link, the streamer will appear just fine. But if you click Create Message, the page will redirect you to a page where you can share the sharing page itself ... And don’t publish anything!
I also tried using a different URL scheme provided by tumblr (but not documented):
http:
This works, but does not support including an image or setting a click on a link. Combining both methods does not work either.
Does anyone know what I can do to make it work? I would also be very grateful if someone could answer me one of the following questions:
- Does the script "share.js" provided by tumblr do anything other than create a pop-up link from my regular link?
- , URL javascript ?
, , , .