【问题标题】:ASP.Net Web page in C# , Facebook LIKE & Comment button neededC# 中的 ASP.Net 网页,需要 Facebook LIKE 和评论按钮
【发布时间】:2012-05-27 06:40:39
【问题描述】:

您好,我正在用 ASP.net 和 C# 创建一个简单的网站。
假设我的网站名称是“XYZ”,并且在 FACEBOOK 同名页面上,即“XYZ”。
那么,当我在网站上单击它时,如何显示 facebook 的“喜欢”按钮 n,它实际上喜欢 FB .. 当我在网页上评论时,评论自动添加到 Facebook 时也是如此。

感谢提前,需要 Uegent 帮助...

【问题讨论】:

标签: c# asp.net .net windows winforms


【解决方案1】:

对于喜欢代码,您可以访问http://developers.facebook.com/docs/reference/plugins/like/ 对于 cmets http://developers.facebook.com/docs/reference/plugins/comments/

fb 样例 iframe 代码将其放置在您的网站正文中,并将 href 值更改为您的 Facebook 页面

<iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2Fxyz&amp;send=false&amp;layout=standard&amp;width=450&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-02-17
    • 1970-01-01
    • 2011-11-24
    • 1970-01-01
    • 2011-08-16
    • 2012-02-20
    相关资源
    最近更新 更多