我怎样才能创建类似于雅虎在 www.news.yahoo.com 中所做的类似功能?我的网站有很多文章。当用户从我的网站登录到 FB 时,他在我的网站中访问的页面的链接应显示在他的 FB 最近活动中。如何 ?
Functionality :
Your Activity : Shows the News that has been read after logged in.
It Posts in Face Book activities.
Social ON : To allow the script to post in FB
Social OFF : To not allow the script to post in FB
我试图创建一个 facebook 应用程序并获得了 AppKey。但它没有提供我需要的功能。我怎样才能做到这一点 ?
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Sample4.aspx.cs" Inherits="Sample4" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<div id="fb-root"></div>
<script> (function (d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
} (document, 'script', 'facebook-jssdk'));</script>
<div id="Div1"></div>
<script> (function (d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=APPKEY";
fjs.parentNode.insertBefore(js, fjs);
} (document, 'script', 'facebook-jssdk'));</script>
<div id="Div2"></div>
<script> (function (d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=APPKEY";
fjs.parentNode.insertBefore(js, fjs);
} (document, 'script', 'facebook-jssdk'));</script>
<form id="form1" runat="server">
<div>
<div class="fb-activity" data-width="300" data-height="300" data-header="false" data-colorscheme="light" data-linktarget="_blank" data-recommendations="false"></div>
</div>
<div class="fb-like" data-href="http://localhost:27531/FaceBook-Integration/Sample4.aspx" data-send="true" data-layout="button_count" data-width="450" data-show-faces="true" data-font="tahoma"></div>
<div class="fb-login-button" data-show-faces="true" data-width="200" data-max-rows="1"></div>
</form>
</body>
</html>