-
Notifications
You must be signed in to change notification settings - Fork 0
/
Index.aspx
66 lines (50 loc) · 2.77 KB
/
Index.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace="FacebookExtensions" %>
<%@ Import Namespace="FacebookExtensions.Markup" %>
<%@ Import Namespace="FacebookExtensions.Markup.Javascript" %>
<%@ Import Namespace="FacebookExtensions.Markup.SocialPlugin.Like" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
Home Page
</asp:Content>
<asp:Content ID="Head" ContentPlaceHolderID="Head" runat="server">
<%Html.Facebook().OpenGraph.Initilise("Demo Site2", "355645108863");%>
<%=Html.Facebook().OpenGraph.OpenGraphTags("PageTitle", "http://www.g.com/qwe.jpg", "http://www.google.com", OpenGraphType.Website)%>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h2><%: ViewData["Message"] %></h2>
<p>
To learn more about ASP.NET MVC visit <a href="http://asp.net/mvc" title="ASP.NET MVC Website">http://asp.net/mvc</a>.
</p>
<h2>Facebook Like</h2>
<div><%=Html.Facebook().SocialPlugins.Like() %></div>
<h2>Activity Feed</h2>
<div><%=Html.Facebook().SocialPlugins.ActivityFeed() %></div>
<h2>Comments</h2>
<div><%=Html.Facebook().SocialPlugins.Comments() %></div>
<h2>Facepile</h2>
<div><%=Html.Facebook().SocialPlugins.Facepile() %></div>
<h2>LikeBox</h2>
<div><%=Html.Facebook().SocialPlugins.LikeBox("http://www.facebook.com/justgiving") %></div>
<h2>LiveStream</h2>
<div><%=Html.Facebook().SocialPlugins.LiveStream("355645108863") %></div>
<h2>LoginButton</h2>
<div><%=Html.Facebook().SocialPlugins.LoginButton() %></div>
<h2>Recommendations</h2>
<div><%=Html.Facebook().SocialPlugins.Recommendations() %></div>
<h2>Registration</h2>
<div><%=Html.Facebook().SocialPlugins.Registration("355645108863", new Uri("http://localdevpc.justgiving.com/"), "")%></div>
<h1>Javascript SDK</h1>
<script type="text/javascript">
function Share()
{
<%=Html.Facebook().JavascriptSdk.Stream.Publish()
.Message("This is a shared message")
.WithAttachment(new StreamPublishAttachment { Name = "Google",
Description = "Google",
Href = "http://www.google.com",
Media = new StreamPublishMediaItem { Src = "http://www.google.com/logo.jpg" } })
.AddActionLink("Visit Google!", "http://www.google.com")%>
}
</script>
<a href="#" onclick="Share();">Share!</a>
</asp:Content>