0

When I like the page from my site, the link is from index...I need that this link be the link of the correct page...I'm trying to take the url address( have the index of my site..then I click in a image..and open another link with infos from my photo. There has a like button and when I click , this like the link of the first page of my site , don't the current page) I'm trying to follow this tutorial: http://support.addthis.com/customer/portal/articles/381249-adding-parameters-to-urls#.UW1-Kit8KPV

here is the code that I have tried:

   <style type="text/css">
    .float-all {
        float: left;
        width: 82px;
        height: 30px;
        overflow: hidden;
        margin: 2px;
        padding: 4px 2px;
    }
    .post-btn-share {
        width: 100%;
        overflow: auto;
    }

</style>

<!-- AddThis Button BEGIN -->
<div class="post-btn-share">
    <div class="addthis_toolbox addthis_default_style">
        <div class="float-all">
            <a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
        </div>
        <div class="float-all">
            <a class="addthis_button_tweet"></a>
        </div>
        <div class="float-all">
            <a class="addthis_button_google_plusone" g:plusone:size="medium"></a>
        </div>
    </div>
</div>

<script type="text/javascript">
var addthis_share = {
url_transforms : {
add: {
img: '<?php echo $_GET['img']; ?>',
user: '<?php echo $_GET['user']; ?>'
  }
 }
}
</script>
<script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-51473a5c09315ac4"></script>

<!-- AddThis Button END -->
4

1 回答 1

0

通过 AddThis 支持站点,我发现这篇关于 URL 和标题的文章:http: //support.addthis.com/customer/portal/articles/381242-url-title#.UW26obVg8y4

注意:某些服务,尤其是 Facebook 和 LinkedIn,不使用我们发送给它们的参数。相反,他们使用元标记来确定要共享的 URL、标题和描述。有关更多信息,请参阅此博客文章。有关详细信息,请参阅此博客文章

于 2013-04-16T20:59:33.540 回答