dongxue163536 2013-04-01 20:06
浏览 39
已采纳

如何使用return url创建Facebook共享链接?

I would like to know how to make a Facebook share link, of which has a return value to go to a different page. I have read that, although still available, the Facebook Share button was deprecated when Facebook launched the like button and the Like button contains of the sum of likes, shares and messages of URL.

For this question I am using a different situation, of which is very much the same. Once the user clicks to share, it will open up a JQuery dialog with an iframe in side of the Facebook share. Upon the user clicking to share, I would like to know how to listen for this so I can add to my own custom share button with counter and then to also redirect to a different URL which offers on for them sharing our

I have created a basic Dialog with a button to open it on JSFiddle: http://jsfiddle.net/kbJ57/

<a href="#" id="open">Share This!</a>

<div id="dialog-message" title="Share on Facebook!">
        <p>iFrame goes here</p>
</div>

This this example, please just show something like Google after the user has shared and any random page to share if you are able to help out with programming this, and I thank you so very much if you do.

Best Regards,

Tim

Edit: Looking at a page of a game I play, there is a share button at the bottom so I gather you can still do shares, I'm just not sure how to. (the link: http://services.runescape.com/m=news/behind-the-scenes-april-2013 )

  • 写回答

1条回答 默认 最新

  • donglu8344812 2013-04-01 21:38
    关注

    The short answer is that you need to create a facebook app and integrate that into your website in order to do sharing.

    See developers.facebook.com for more info. As far as I know there isn't an "easy" way to do facebook sharing as it requires that the user authorize you to post on their behalf.

    EDIT: I misunderstood the intent of the asker initially. Try using the facebook sharer: www.facebook.com/sharer.php?u= [the url you want to share properly escaped]

    Format the metadata of your site using the opengraph tags to have facebook pick up the content. Good details here: http://alistapart.com/article/like-able-content-spread-your-message-with-third-party-metadata

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度