【问题标题】:How to create custom share links for Facebook, Twitter, Google+ and Pinterest如何为 Facebook、Twitter、Google+ 和 Pinterest 创建自定义共享链接
【发布时间】:2014-05-10 02:09:49
【问题描述】:

在没有大量脚本或元标记的情况下,我看不到任何允许此特定请求的解决方案,所以我希望有一种简单的方法来做到这一点。

我正在寻找所有四个社交网络的自定义共享链接。让我举一个具体的例子。

如果有人点击我网站上的 Twitter 图标链接,他们点击的是以下内容:

<a href="https://twitter.com/home?status="Welcome to my site and tell all your friends! @sitename #mysiterules http://bit.ly/site">
    <img src="twitter.png">
</a>

它将转到 Twitter 的网站并生成以下内容:

这允许某人使用自定义消息非常快速地宣传我的网站,如果他们愿意,他们可以更改该消息,但除了单击图标链接之外无需其他任何努力。

这正是我想对其他三个社交网络做的,带有自定义消息和链接。他们还可以提取我网站的默认徽标,这是 twitter 无法做到的。

我怎样才能做到这一点?

【问题讨论】:

    标签: facebook twitter google-plus social-networking pinterest


    【解决方案1】:

    我建议您使用正确的社交分享按钮,就像我们在 live campaign page 中实施的那样,但这是我从活动页面的模型中窃取的一些代码。

    <div class="leader-half kids0514-share">Share this on:
        <a href="mailto:?subject=Your%20Family,%20Your%20Vacation&body=Enter%20to%20win%20a%20dream%20family%20vacation.%20http://www.cwtvacations.ca/yourfamilyyourvacation"><img src="images/en/share_mail.jpg" alt="email"></a>
        <a href="https://facebook.com/sharer.php?u=http://www.cwtvacations.ca/yourfamilyyourvacation" target="_blank"><img src="images/en/share_fb.jpg" alt="facebook"></a>
        <a href="https://twitter.com/intent/tweet?url=http://www.cwtvacations.ca/yourfamilyyourvacation&text=Your%20family,%20your%20vacation.%20Enter%20to%20win%20a%20dream%20family%20vacation.&via=CWTVacationsCA" target="_blank"><img src="images/en/share_tweet.jpg" alt="twitter"></a>
        <a href="http://pinterest.com/pin/create/button/?url=http://www.cwtvacations.ca/yourfamilyyourvacation&description=Your%20family,%20your%20vacation.%20Enter%20to%20win%20a%20dream%20family%20vacation.&media=https://www.cwtvacations.ca/cwt/images/en/kids2014_share.jpg" target="_blank"><img src="images/en/share_pin.png" alt="pinterest"></a>
        <a href="https://plus.google.com/share?url=http://www.cwtvacations.ca/yourfamilyyourvacation" target="_blank"><img src="images/en/share_plusone.jpg" alt="google plus"></a>
    </div>
    

    并非所有社交分享按钮都是一样的,有些按钮具有更多功能,甚至您仍然可以使用旧版本。 Pinterest 非常少。 I recommend using the official buttons and full structured meta data,不像样机中的 sn-p 那样做。

    【讨论】:

      【解决方案2】:

      根据平台政策 2.3,您不得在 Facebook 上分享预填消息:“确保用户消息参数中的所有内容均由用户输入。请勿预填。这包括帖子、消息、cmets和字幕。”

      如果您希望人们在 Facebook 上分享,我建议您使用分享按钮:https://developers.facebook.com/docs/plugins/share-button/

      【讨论】:

      • 哎呀,太糟糕了。 :( 我很感激你对此表示赞赏。
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-08-11
      • 1970-01-01
      • 2014-04-06
      • 1970-01-01
      • 2014-05-04
      • 2021-02-15
      • 2018-07-12
      相关资源
      最近更新 更多