How to share on Pinterest
使用Figma进行原型设计,可以设置共享视图:'View' > 'Share' > 'Link to Shared Copy' #生活技巧# #数码产品使用技巧# #设计软件使用技巧#
This question shows research effort; it is useful and clear
5
Save this question.
Show activity on this post.
I have a JavaScript function for sharing on Pinterest like this:
function shareOnPinterest(url, desc, coverImage){ var str = "http://pinterest.com/pin/create/button/?url=" + encodeURIComponent(url) + "&media=" + coverImage + "&description=" + desc; window.open(str, "_blank"); }
The URL seems to be working fine but when I click Pin It button it doesn't pin to the board.
I have a reference to this Pinterest JavaScript on my page too.
<script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script>
Is there anything I did wrong or is there any other way to share on Pinterest?
Thanks.
Nathan
12k11 gold badges53 silver badges94 bronze badges
asked Aug 16, 2012 at 6:14

3
This answer is useful
2
Save this answer.
Show activity on this post.
I'm not sure what you're wanting... a button for your webpage or to simply pin images?
This codes works to pin images:
javascript:void((function(){var%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','http://assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());
Nathan
12k11 gold badges53 silver badges94 bronze badges
answered Aug 16, 2012 at 8:07

1
Start asking to get answers
Find the answer to your question by asking.
Ask question
Explore related questions
See similar questions with these tags.
网址:How to share on Pinterest https://klqsh.com/news/view/132813
相关内容
How to set up Dual Monitors on Windows 11/10How to Install a VPN on Kindle Fire
Share price
Sign in to Microsoft 365
How To Be Successful
How To See All Bing Related Searches
How to Get Help with File Explorer in Windows 11/10
How to Study for (and Take!) Open Book Exams
How to use multiple monitors in Windows
how to watch foxtel overseas?