【发布时间】:2014-02-09 18:45:49
【问题描述】:
我的 pinterest 分享网址返回无效。收到此错误:
参数'method'(值链接)不是unknown、uploaded、scraped、bookmarklet、email、iphone、button、ipad、android、android_tablet、api_sdk、extension、api_other、bad之一。
我不明白为什么会这样,因为生成的 URL 是正确的。我的代码是:
<?php
$postpermalink = urlencode( get_permalink() );
$featureImage = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large-thumb');
?>
<a href="//pinterest.com/pin/create/link/?url=<?php echo $postpermalink ?>&media=
<?php echo urlencode($featureImage[0]);?>&description=<?php the_title() ?>" target="_blank">
<img src="<?php bloginfo('template_url') ?>/core/images/pinterest-icon.png" alt="Pin it"
width="26px" height="26px" title="Pin it"/>
</a>
在页脚中:
<script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script>
有人知道这个问题的解决方案吗?
【问题讨论】: