<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>Facebook Helper</title><link>http://facebookhelper.codeplex.com/project/feeds/rss</link><description>The helper is designed to integrate your WebMatrix site with Facebook, making it possible to add the Facebook Social Plugins, such as Like button, Facepile, Comments, Login Button and Like Box, among others, in a few simple steps.</description><item><title>Source code checked in, #16392</title><link>http://facebookhelper.codeplex.com/SourceControl/changeset/changes/16392</link><description>Upgrade&amp;#58; New Version of LabDefaultTemplate.xaml. To upgrade your build definitions, please visit the following link&amp;#58; http&amp;#58;&amp;#47;&amp;#47;go.microsoft.com&amp;#47;fwlink&amp;#47;&amp;#63;LinkId&amp;#61;254563</description><author>Project Collection Service Accounts</author><pubDate>Mon, 01 Oct 2012 20:28:03 GMT</pubDate><guid isPermaLink="false">Source code checked in, #16392 20121001082803P</guid></item><item><title>Source code checked in, #16391</title><link>http://facebookhelper.codeplex.com/SourceControl/changeset/changes/16391</link><description>Checked in by server upgrade</description><author>Project Collection Service Accounts</author><pubDate>Mon, 01 Oct 2012 20:26:15 GMT</pubDate><guid isPermaLink="false">Source code checked in, #16391 20121001082615P</guid></item><item><title>New Comment on "Documentation"</title><link>http://facebookhelper.codeplex.com/documentation?&amp;ANCHOR#C24579</link><description>i am getting error &amp;#10;&amp;#10;Line 216&amp;#58;    &amp;#125;&amp;#10;Line 217&amp;#58;    &amp;#10;Line 218&amp;#58;    private static SimpleMembershipProvider GetMembershipProvider&amp;#40;&amp;#41; &amp;#123;&amp;#10;Line 219&amp;#58;        var provider &amp;#61; Membership.Provider as SimpleMembershipProvider&amp;#59;&amp;#10;Line 220&amp;#58;&amp;#10;&amp;#10;&amp;#10;---------------------------------------------------------&amp;#10;&amp;#10;Compiler Error Message&amp;#58; CS0246&amp;#58; The type or namespace name &amp;#39;SimpleMembershipProvider&amp;#39; could not be found &amp;#40;are you missing a using directive or an assembly reference&amp;#63;&amp;#41;</description><author>dashang</author><pubDate>Wed, 01 Aug 2012 05:17:56 GMT</pubDate><guid isPermaLink="false">New Comment on "Documentation" 20120801051756A</guid></item><item><title>New Post: Avaiable on non ASP.net server</title><link>http://facebookhelper.codeplex.com/discussions/377509</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Will ever this heper and/or other helpers avaiable for server without ASP.net Support?&lt;/p&gt;
&lt;p&gt;I mean PHP/HTML support&lt;/p&gt;
&lt;/div&gt;</description><author>Hitmanpt</author><pubDate>Thu, 19 Jul 2012 22:27:27 GMT</pubDate><guid isPermaLink="false">New Post: Avaiable on non ASP.net server 20120719102727P</guid></item><item><title>New Comment on "Documentation"</title><link>http://facebookhelper.codeplex.com/documentation?&amp;ANCHOR#C22908</link><description>Hello&amp;#33;&amp;#10;Are there any update plans to this helper&amp;#63;&amp;#10;Thanks.</description><author>victorxx</author><pubDate>Wed, 14 Mar 2012 06:59:39 GMT</pubDate><guid isPermaLink="false">New Comment on "Documentation" 20120314065939A</guid></item><item><title>New Post: Send Button</title><link>http://facebookhelper.codeplex.com/discussions/267981</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;&lt;span&gt;There is already&lt;/span&gt;&amp;nbsp;&lt;span&gt;some implementation&lt;/span&gt;&amp;nbsp;&lt;span&gt;for that&lt;/span&gt;&amp;nbsp;&lt;span&gt;this&lt;/span&gt;&amp;nbsp;&lt;span&gt;helper&lt;/span&gt;&lt;span&gt;?&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;</description><author>rodrigooliveira</author><pubDate>Fri, 05 Aug 2011 22:36:24 GMT</pubDate><guid isPermaLink="false">New Post: Send Button 20110805103624P</guid></item><item><title>New Post: Login Button Not Working</title><link>http://facebookhelper.codeplex.com/discussions/250260</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;&lt;a href="http://makemoneyfromyourfacebook.com/"&gt;http://makemoneyfromyourfacebook.com/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I can login, but nobody else can. I'm using a default example project that I found online. The login window just&amp;nbsp;disappears&amp;nbsp;after you hit Login and accept the app.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any idea why?&lt;/p&gt;
&lt;/div&gt;</description><author>dremation</author><pubDate>Fri, 18 Mar 2011 13:48:06 GMT</pubDate><guid isPermaLink="false">New Post: Login Button Not Working 20110318014806P</guid></item><item><title>New Post: ASP MVC 3 Version?</title><link>http://facebookhelper.codeplex.com/discussions/248098</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;I want to know if you plan to release a version to be used in MVC 3 (or MVC 2) projects.&lt;/p&gt;
&lt;p&gt;The current version only works with WebMatrix.&lt;/p&gt;
&lt;p&gt;Exists any limitation?&lt;/p&gt;
&lt;p&gt;Thank you guys, keep doing this excellent work.&lt;/p&gt;
&lt;/div&gt;</description><author>ZeroDotNet</author><pubDate>Wed, 02 Mar 2011 08:15:30 GMT</pubDate><guid isPermaLink="false">New Post: ASP MVC 3 Version? 20110302081530A</guid></item><item><title>Updated Wiki: Documentation</title><link>http://facebookhelper.codeplex.com/documentation?version=27</link><description>
&lt;h1&gt;Summary&lt;/h1&gt;
&lt;div class="wikidoc"&gt;The Facebook helper is designed to integrate your WebMatrix site with Facebook, making it possible to add the
&lt;a href="http://developers.facebook.com/plugins"&gt;Facebook Social Plugins&lt;/a&gt;, such as Like button, Facepile, Comments, Login Button and Like Box, among others, in a few simple steps. It also allows you easily integrate your site with the Facebook login mechanism,
 so users do not have to create another account just to access your website.&lt;/div&gt;
&lt;div class="wikidoc"&gt;Depending on the social plugin you want to use, the helper requires that you call an initialization method. Check the table below and if the social plugin you want to use does not require initialization see the
&lt;strong&gt;Getting Started in 60 seconds (without initialization)&lt;/strong&gt; section, otherwise see the
&lt;strong&gt;Getting Started in 60 seconds (with initialization)&lt;/strong&gt; section.&lt;/div&gt;
&lt;div class="wikidoc"&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="wikidoc"&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Social Plugin&lt;/th&gt;
&lt;th&gt;Initialization Required&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Like Button&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Activity Feed&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Recommendations&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Like Box&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Login Button&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Facepile&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Comments&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Live Stream&lt;/td&gt;
&lt;td&gt;Yes &lt;br&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;h1&gt;Getting started in 60 seconds (without initialization)&lt;/h1&gt;
&lt;p&gt;These steps will guide you on how to display a Facebook Like button into your Web site:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Add the bolded line from below in the page where you want to show the Like button, in this case for liking the Microsoft Web home page:
&lt;div class="wikidoc"&gt;&lt;br&gt;
&lt;pre&gt;&lt;span style="color:blue"&gt;&amp;lt;!&lt;/span&gt;&lt;span style="color:#a31515"&gt;DOCTYPE&lt;/span&gt; &lt;span style="color:red"&gt;html&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style="color:blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#a31515"&gt;html&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;    ...&lt;br&gt;    &lt;span style="color:blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#a31515"&gt;body&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;        ...&lt;br&gt;        &lt;strong&gt;@Facebook.LikeButton(&amp;quot;http://www.microsoft.com/web&amp;quot;)&lt;/strong&gt;&lt;br&gt;        ...&lt;br&gt;    &lt;span style="color:blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#a31515"&gt;body&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style="color:blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#a31515"&gt;html&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;&lt;/ol&gt;
&lt;h1&gt;Getting started in 60 seconds (with initialization)&lt;/h1&gt;
&lt;p&gt;These steps will guide you on how to display a Facebook Comments box into your Web site:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Make note of the &lt;strong&gt;Site URL&lt;/strong&gt; where your Microsoft WebMatrix site is running (click the Site workspace | Settings page).
&lt;br&gt;
&lt;a href="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197657"&gt;&lt;img title="wm-mysite-settings[6]" src="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197658" border="0" alt="wm-mysite-settings[6]" width="416" height="97" style="padding-left:0px; padding-right:0px; display:inline; padding-top:0px; border-width:0px"&gt;&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.facebook.com/developers/createapp.php"&gt;Register&lt;/a&gt; a new Facebook application and make note of the Application Id and Secret. (Check
&lt;a href="http://www.facebook.com/developers"&gt;http://www.facebook.com/developers&lt;/a&gt; for instructions on how to create a Facebook application).
&lt;p&gt;&lt;a href="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197659"&gt;&lt;img title="FBCreateApplication[6]" src="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197660" border="0" alt="FBCreateApplication[6]" width="636" height="260" style="padding-left:0px; padding-right:0px; display:inline; padding-top:0px; border-width:0px"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;&lt;li&gt;When creating your Facebook application, make sure you set the Site Url to &lt;strong&gt;
http://localhost:[port]&lt;/strong&gt;, replacing the &lt;em&gt;[port]&lt;/em&gt; placeholder with the port where your local WebMatrix site is running.
&lt;p&gt;&lt;a href="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197661"&gt;&lt;img title="FBCoreSettings[6]" src="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197662" border="0" alt="FBCoreSettings[6]" width="651" height="231" style="padding-left:0px; padding-right:0px; display:inline; padding-top:0px; border-width:0px"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;&lt;li&gt;Add the following line to the &lt;strong&gt;_AppStart.cshtml&lt;/strong&gt; page of your WebMatrix Site (create this page if it does not exist). Replace the placeholders with your Application Id and Secret.
&lt;p&gt;@{ &lt;br&gt;
Facebook.Initialize(&amp;quot;{your App ID}&amp;quot;, &amp;quot;{your App Secret}&amp;quot;); &lt;br&gt;
}&lt;/p&gt;
&lt;/li&gt;&lt;li&gt;Add the highlighted lines from below in the page where you want to show the Comments box:
&lt;pre&gt;&lt;span style="color:blue"&gt;&amp;lt;!&lt;/span&gt;&lt;span style="color:#a31515"&gt;DOCTYPE&lt;/span&gt; &lt;span style="color:red"&gt;html&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style="color:blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#a31515"&gt;html&lt;/span&gt; &lt;strong&gt;@Facebook.FbmlNamespaces()&lt;/strong&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;    ...&lt;br&gt;    &lt;span style="color:blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#a31515"&gt;body&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;        &lt;strong&gt;@Facebook.GetInitializationScripts()&lt;/strong&gt;&lt;br&gt;        ...&lt;br&gt;        &lt;strong&gt;@Facebook.Comments()&lt;/strong&gt;&lt;br&gt;&lt;br&gt;        ...&lt;br&gt;    &lt;span style="color:blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#a31515"&gt;body&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style="color:blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#a31515"&gt;html&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Some of the Facebook Social Plugins require that your site is published into a public address where others can use it; see the
&lt;a href="#x_HelperReference"&gt;helper reference&lt;/a&gt; for a complete list. To do this you can try some of the *Free* WebMatrix Hostings providers (also check this tutorial on
&lt;a href="http://www.asp.net/webmatrix/tutorials/publish-a-website"&gt;publishing with WebMatrix)&lt;/a&gt;.&lt;/p&gt;
&lt;h1&gt;Running the Facebook Helper Sample&lt;/h1&gt;
&lt;p&gt;Optionally, you can download a sample WebMatrix web site where you can see the helper in action, and also see how to use the helper to
&lt;strong&gt;integrate the Facebook login mechanism with the membership model of your web site&lt;/strong&gt;. To download and run it with Microsoft WebMatrix, follow these steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Download the sample site from the Downloads section. &lt;/li&gt;&lt;li&gt;Extract the content of the package, right-click the &lt;strong&gt;Facebook.Bakery&lt;/strong&gt; folder and select 'Open as a Web Site with Microsoft WebMatrix'. This will open the Bakery sample web site with WebMatrix.
&lt;/li&gt;&lt;li&gt;Change your WebMatrix site settings to match the &lt;strong&gt;Site Url&lt;/strong&gt; you have configured in your Facebook application settings.
&lt;p&gt;&lt;a href="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197664"&gt;&lt;img title="wm-site-settings" src="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197665" border="0" alt="wm-site-settings" width="415" height="90" style="padding-left:0px; padding-right:0px; display:inline; padding-top:0px; border-width:0px"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;&lt;li&gt;Open the &lt;strong&gt;_AppStart.cshtml&lt;/strong&gt; page, uncomment the following line and replace the placeholders with your Facebook Application Id and Secret.
&lt;p&gt;@{ &lt;br&gt;
Facebook.Initialize(&amp;quot;{your App ID}&amp;quot;, &amp;quot;{your App Secret}&amp;quot;, &amp;quot;bakery&amp;quot;); &lt;br&gt;
... &lt;br&gt;
}&lt;/p&gt;
&lt;/li&gt;&lt;li&gt;Click on the &lt;strong&gt;Run&lt;/strong&gt; button located in the Home tab. &lt;/li&gt;&lt;li&gt;Play with the sample! &lt;/li&gt;&lt;/ol&gt;
&lt;ol&gt;
&lt;/ol&gt;
&lt;h1 id="x_HelperReference"&gt;Helper Reference&lt;/h1&gt;
&lt;p&gt;The helper ships with the following files:&lt;/p&gt;
&lt;div class="wikidoc"&gt;
&lt;ul&gt;
&lt;li&gt;The &lt;strong&gt;Facebook.cshtml&lt;/strong&gt; file located into the &lt;strong&gt;App_Code&lt;/strong&gt; folder
&lt;/li&gt;&lt;li&gt;A &lt;strong&gt;Login.cshtml&lt;/strong&gt; file under the &lt;strong&gt;Facebook&lt;/strong&gt; folder that will handle user login when using his Facebook account.
&lt;/li&gt;&lt;/ul&gt;
&lt;/div&gt;
&lt;h2&gt;Helper Properties&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;Note: Current version does not support the full Facebook API.&lt;/em&gt;&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;static string&lt;/td&gt;
&lt;td width="715" valign="bottom"&gt;&lt;strong&gt;AppId&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Gets or sets the Facebook application id. &lt;br&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;static string&lt;/td&gt;
&lt;td valign="bottom"&gt;&lt;strong&gt;AppSecret&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Gets or sets the Facebook application secret. &lt;br&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;static string&lt;/td&gt;
&lt;td valign="bottom"&gt;&lt;strong&gt;MembershipDBName&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Gets or sets the name of the database used for storing the membership data. &lt;br&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;static string&lt;/td&gt;
&lt;td valign="bottom"&gt;&lt;strong&gt;Language&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Gets or sets the code of the language used to display the Facebook plugins.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:20px; font-weight:bold"&gt;Helper Methods&lt;/span&gt;&lt;/p&gt;
&lt;table border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&lt;span style="text-decoration:underline"&gt;&lt;strong&gt;Method&lt;/strong&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style="text-decoration:underline"&gt;&lt;strong&gt;Requires Initialization&lt;/strong&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style="text-decoration:underline"&gt;&lt;strong&gt;Requires Publishing&lt;/strong&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;static void&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Initialize&lt;/strong&gt; (string appId, string appSecret, [string membershipDBName])&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;-&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;-&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Initialize the helper with your Facebook application settings. &lt;br&gt;
If the 'membershipDBName' parameter is specified, Facebook membership integration will be enabled, allowing users to register and associate their Facebook user account (identified with the e-mail) with your site membership and the WebSecurity helper. In this
 case, the helper will initialize the WebSecurity WebMatrix helper automatically (if not done previously) and the store the membership information in the 'membershipDbName' database.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;GetInitializationScripts()&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;-&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;-&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Initialize the Facebook JavaScript SDK to be able to support the XFBML tags of the social plugins.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="#x_x_UserProfile"&gt;UserProfile&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;GetFacebookUserProfile()&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Yes (calling GetInitializationScripts() not required)&lt;strong&gt; &lt;br&gt;
&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Retrieves the Facebook profile of current logged in user. See the section at the bottom of the page for details on the information you can access.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;static void&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;AssociateMembershipAccount &lt;/strong&gt;(string userName)&lt;/td&gt;
&lt;td&gt;Yes (calling GetInitializationScripts() not required )&lt;strong&gt; &lt;br&gt;
&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Associates the specified user name (e.g. email, depending on your membership model) with the current Facebook User Id from the logged user. See the Facebook.Bakery sample Web site for an example on how to use this method.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;static void&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;MembershipLogin&lt;/strong&gt;()&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Creates an authentication cookie with the current Facebook logged User name and returns 'true'. If the membership user name cannot be retrieved returns 'false' This method can be called after postback to customize page redirection.&lt;/td&gt;
&lt;td&gt;Yes (calling GetInitializationScripts() not required)&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;LoginButton&lt;/strong&gt; (string registerUrl, [string returnUrl], [string callbackUrl] [string buttonText], [bool autoLogoutLink], [string size], [string length], [bool showFaces], [string extendedPermissions])&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Shows a Facebok Login Button, with site membership integration, allowing users to login on your site with their Facebook account (e-mail).
&lt;br&gt;
To use this method, you need to provide the 'membershipDbName' in the helper's Initialize method.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;LoginButtonTagOnly&lt;/strong&gt; ([string buttonText], [bool autoLogoutLink], [string size], [string length], [string onLogin], [bool showFaces], [string extendedPermissions])&lt;/td&gt;
&lt;td&gt;No&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Shows a Facebook Login Button, without integrating Facebook login with your site membership.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;LikeButton&lt;/strong&gt; ([string href], [string buttonLayout], [bool showFaces], [int width], [int height], [string action], [string font], [string colorScheme], [string refLabel])&lt;/td&gt;
&lt;td&gt;No&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Shows a Facebook Like Button. When the user clicks the Like button on your site, a story appears in the user's friends' News Feed with a link back to your website.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Comments&lt;/strong&gt; ([string xid], [int width], [int numPosts], [bool reverseOrder], [bool removeRoundedBox])&lt;/td&gt;
&lt;td&gt;Yes&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Shows a Facebook Comments plugin. The Comments Box easily enables your users to comment on your site's content &amp;mdash; whether it's for a web page, article, photo, or other piece of content.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Recommendations&lt;/strong&gt; ([string site], [int width], [int height], [bool showHeader], [string colorScheme], [string font], [string borderColor], [string filter], [string refLabel])&lt;/td&gt;
&lt;td&gt;No&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Shows a Facebook Recommendations plugin. The Recommendations plugin shows personalized recommendations to your users.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&lt;strong&gt;LikeBox&lt;/strong&gt; ([string profileId], [string name], [int width], [int height], [string colorScheme], [int connections], [bool showStream], [bool showHeader])&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;No&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Shows a Facebook Like Box. The Like Box is a social plugin that enables Facebook Page owners to attract and gain Likes from their own website.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Facepile&lt;/strong&gt; ([int maxRows], [int width])&lt;/td&gt;
&lt;td&gt;Yes&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Shows a Facebook Facepile plugin. The Facepile plugin shows the Facebook profile pictures of the user's friends who have already signed up for your site.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;LiveStream&lt;/strong&gt; ([int width], [int height], [string xid], [string viaUrl], [bool allwaysPostToFriends])&lt;/td&gt;
&lt;td&gt;Yes (calling GetInitializationScripts() not required) &lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Shows a Facebook Live Stream plugin. The Live Stream plugin lets users visiting your site or application share activity and comments in real time.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;ActivityFeed&lt;/strong&gt; ([string site], [int width], [int height], [bool showHeader], [string colorScheme], [string font], [string borderColor], [bool showRecommendations])&lt;/td&gt;
&lt;td&gt;No&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Shows a Facebook Activity Feed plugin. The activity feed displays stories both when users like content on your site and when users share content from your site back to Facebook.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;OpenGraphRequiredProperties&lt;/strong&gt; (string siteName, string title, string type, string url, string imageUrl, [string description])&lt;/td&gt;
&lt;td&gt;No&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;OpenGraph properties allows you to specify structured information about your web pages to show up your pages richly across Facebook and enable Facebook users to establish connections to your pages.
&lt;br&gt;
Use this method to show OpenGraph page data, as the page title, URL, and so on.&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;OpenGraphLocationProperties&lt;/strong&gt; ([string latitude], [string longitude], [string streetAddress], [string locality], [string region], [string postalCode], [string countryName])&lt;/td&gt;
&lt;td&gt;No&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Use this method to show page location data. This is useful if your pages is a business profile or about anything else with a real-world location. You can specify location via latitude and longitude, a full address, or both.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;OpenGraphContactProperties&lt;/strong&gt; ([string email], [string phoneNumber], [string faxNumber])&lt;/td&gt;
&lt;td&gt;No&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Use this method to show contact information about your page. Consider including contact information if your page is about an entity that can be contacted.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;FbmlNamespaces&lt;/strong&gt; ()&lt;/td&gt;
&lt;td&gt;No&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Use this method inside your opening HTML tag for W3C compatibility.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2 id="x_x_UserProfile"&gt;User Profile Information&lt;/h2&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width="163"&gt;string &lt;strong&gt;Id&lt;/strong&gt;&lt;/td&gt;
&lt;td width="625"&gt;Facebook User Id&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Name&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Display Name&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;First_Name&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;First Name&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Last_Name&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Last Name&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Link&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Link to Profile&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Bio&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Short biography&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Gender&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Gender&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Email&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Published e-mail address&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Timezone&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;User timezone&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Locale&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;User regional settings&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Updated_Time&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Last updated time on Facebook&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
</description><author>jsenior</author><pubDate>Thu, 13 Jan 2011 20:13:54 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Documentation 20110113081354P</guid></item><item><title>Updated Wiki: Documentation</title><link>http://facebookhelper.codeplex.com/documentation?version=26</link><description>
&lt;h1&gt;Summary&lt;/h1&gt;
&lt;div class="wikidoc"&gt;The Facebook helper is designed to integrate your WebMatrix site with Facebook, making it possible to add the
&lt;a href="http://developers.facebook.com/plugins"&gt;Facebook Social Plugins&lt;/a&gt;, such as Like button, Facepile, Comments, Login Button and Like Box, among others, in a few simple steps. It also allows you easily integrate your site with the Facebook login mechanism,
 so users do not have to create another account just to access your website.&lt;/div&gt;
&lt;div class="wikidoc"&gt;Depending on the social plugin you want to use, the helper requires that you call an initialization method. Check the table below and if the social plugin you want to use does not require initialization see the
&lt;strong&gt;Getting Started in 60 seconds (without initialization)&lt;/strong&gt; section, otherwise see the
&lt;strong&gt;Getting Started in 60 seconds (with initialization)&lt;/strong&gt; section.&lt;/div&gt;
&lt;div class="wikidoc"&gt;&amp;#160;&lt;/div&gt;
&lt;div class="wikidoc"&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Social Plugin&lt;/th&gt;
&lt;th&gt;Initialization Required&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Like Button&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Activity Feed&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Recommendations&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Like Box&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Login Button&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Facepile&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Comments&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Live Stream&lt;/td&gt;
&lt;td&gt;Yes &lt;br&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;h1&gt;Getting started in 60 seconds (without initialization)&lt;/h1&gt;
&lt;p&gt;These steps will guide you on how to display a Facebook Like button into your Web site:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Add the bolded line from below in the page where you want to show the Like button, in this case for liking the Microsoft Web home page:
&lt;div class="wikidoc"&gt;&lt;br&gt;
&lt;pre&gt;&lt;span style="color:blue"&gt;&amp;lt;!&lt;/span&gt;&lt;span style="color:#a31515"&gt;DOCTYPE&lt;/span&gt; &lt;span style="color:red"&gt;html&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;
&lt;span style="color:blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#a31515"&gt;html&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;
    ...
    &lt;span style="color:blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#a31515"&gt;body&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;
        ...
        &lt;strong&gt;@Facebook.LikeButton(&amp;quot;http://www.microsoft.com/web&amp;quot;)&lt;/strong&gt;
        ...
    &lt;span style="color:blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#a31515"&gt;body&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;
&lt;span style="color:blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#a31515"&gt;html&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;&lt;/ol&gt;
&lt;h1&gt;Getting started in 60 seconds (with initialization)&lt;/h1&gt;
&lt;p&gt;These steps will guide you on how to display a Facebook Comments box into your Web site:
&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Make note of the &lt;strong&gt;Site URL&lt;/strong&gt; where your Microsoft WebMatrix site is running (click the Site workspace | Settings page).
&lt;br&gt;
&lt;a href="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197657"&gt;&lt;img title="wm-mysite-settings[6]" border="0" alt="wm-mysite-settings[6]" src="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197658" width="416" height="97" style="border-right-width:0px; padding-left:0px; padding-right:0px; display:inline; border-top-width:0px; border-bottom-width:0px; border-left-width:0px; padding-top:0px"&gt;&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.facebook.com/developers/createapp.php"&gt;Register&lt;/a&gt; a new Facebook application and make note of the Application Id and Secret. (Check
&lt;a href="http://www.facebook.com/developers"&gt;http://www.facebook.com/developers&lt;/a&gt; for instructions on how to create a Facebook application).
&lt;p&gt;&lt;a href="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197659"&gt;&lt;img title="FBCreateApplication[6]" border="0" alt="FBCreateApplication[6]" src="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197660" width="636" height="260" style="border-right-width:0px; padding-left:0px; padding-right:0px; display:inline; border-top-width:0px; border-bottom-width:0px; border-left-width:0px; padding-top:0px"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;&lt;li&gt;When creating your Facebook application, make sure you set the Site Url to &lt;strong&gt;
http://localhost:[port]&lt;/strong&gt;, replacing the &lt;em&gt;[port]&lt;/em&gt; placeholder with the port where your local WebMatrix site is running.
&lt;p&gt;&lt;a href="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197661"&gt;&lt;img title="FBCoreSettings[6]" border="0" alt="FBCoreSettings[6]" src="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197662" width="651" height="231" style="border-right-width:0px; padding-left:0px; padding-right:0px; display:inline; border-top-width:0px; border-bottom-width:0px; border-left-width:0px; padding-top:0px"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;&lt;li&gt;Add the following line to the &lt;strong&gt;_AppStart.cshtml&lt;/strong&gt; page of your WebMatrix Site (create this page if it does not exist). Replace the placeholders with your Application Id and Secret.
&lt;p&gt;@{ &lt;br&gt;
Facebook.Initialize(&amp;quot;{your App ID}&amp;quot;, &amp;quot;{your App Secret}&amp;quot;); &lt;br&gt;
}&lt;/p&gt;
&lt;/li&gt;&lt;li&gt;Add the highlighted lines from below in the page where you want to show the Comments box:
&lt;pre&gt;&lt;span style="color:blue"&gt;&amp;lt;!&lt;/span&gt;&lt;span style="color:rgb(163,21,21)"&gt;DOCTYPE&lt;/span&gt; &lt;span style="color:red"&gt;html&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;
&lt;span style="color:blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:rgb(163,21,21)"&gt;html&lt;/span&gt; &lt;strong&gt;@Facebook.FbmlNamespaces()&lt;/strong&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;
    ...
    &lt;span style="color:blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:rgb(163,21,21)"&gt;body&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;
        &lt;strong&gt;@Facebook.GetInitializationScripts()&lt;/strong&gt;
        ...
        &lt;strong&gt;@Facebook.Comments()&lt;/strong&gt;

        ...
    &lt;span style="color:blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:rgb(163,21,21)"&gt;body&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;
&lt;span style="color:blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:rgb(163,21,21)"&gt;html&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Some of the Facebook Social Plugins require that your site is published into a public address where others can use it; see the
&lt;a href="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197663"&gt;
helper reference&lt;/a&gt; for a complete list. To do this you can try some of the *Free* WebMatrix Hostings providers, like
&lt;a href="http://www.cytanium.com/"&gt;Cytanium&lt;/a&gt; (also check this tutorial on &lt;a href="http://www.asp.net/webmatrix/tutorials/publish-a-website"&gt;
publishing with WebMatrix)&lt;/a&gt;.&lt;/p&gt;
&lt;h1&gt;Running the Facebook Helper Sample&lt;/h1&gt;
&lt;p&gt;Optionally, you can download a sample WebMatrix web site where you can see the helper in action, and also see how to use the helper to
&lt;strong&gt;integrate the Facebook login mechanism with the membership model of your web site&lt;/strong&gt;. To download and run it with Microsoft WebMatrix, follow these steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Extract the content of the package, right-click the &lt;strong&gt;Facebook.Bakery&lt;/strong&gt; folder and select 'Open as a Web Site with Microsoft WebMatrix'. This will open the Bakery sample web site with WebMatrix.
&lt;/li&gt;&lt;li&gt;Change your WebMatrix site settings to match the &lt;strong&gt;Site Url&lt;/strong&gt; you have configured in your Facebook application settings.
&lt;p&gt;&lt;a href="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197664"&gt;&lt;img title="wm-site-settings" border="0" alt="wm-site-settings" src="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197665" width="415" height="90" style="border-right-width:0px; padding-left:0px; padding-right:0px; display:inline; border-top-width:0px; border-bottom-width:0px; border-left-width:0px; padding-top:0px"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;&lt;li&gt;Open the &lt;strong&gt;_AppStart.cshtml&lt;/strong&gt; page, uncomment the following line and replace the placeholders with your Facebook Application Id and Secret.
&lt;p&gt;@{ &lt;br&gt;
Facebook.Initialize(&amp;quot;{your App ID}&amp;quot;, &amp;quot;{your App Secret}&amp;quot;, &amp;quot;bakery&amp;quot;);
&lt;br&gt;
... &lt;br&gt;
}&lt;/p&gt;
&lt;/li&gt;&lt;li&gt;Click on the &lt;strong&gt;Run&lt;/strong&gt; button located in the Home tab. &lt;/li&gt;&lt;li&gt;Play with the sample! &lt;/li&gt;&lt;/ol&gt;
&lt;ol&gt;
&lt;/ol&gt;
&lt;h1&gt;Helper Reference&lt;/h1&gt;
&lt;p&gt;The helper ships with the following files:&lt;/p&gt;
&lt;div class="wikidoc"&gt;
&lt;ul&gt;
&lt;li&gt;The &lt;strong&gt;Facebook.cshtml&lt;/strong&gt; file located into the &lt;strong&gt;App_Code&lt;/strong&gt; folder
&lt;/li&gt;&lt;li&gt;A &lt;strong&gt;Login.cshtml&lt;/strong&gt; file under the &lt;strong&gt;Facebook&lt;/strong&gt; folder that will handle user login when using his Facebook account.
&lt;/li&gt;&lt;/ul&gt;
&lt;/div&gt;
&lt;h2&gt;Helper Properties&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;Note: Current version does not support the full Facebook API.&lt;/em&gt;&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;static string&lt;/td&gt;
&lt;td valign="bottom" width="715"&gt;&lt;strong&gt;AppId&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;#160;&lt;/td&gt;
&lt;td&gt;Gets or sets the Facebook application id. &lt;br&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;static string&lt;/td&gt;
&lt;td valign="bottom"&gt;&lt;strong&gt;AppSecret&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;#160;&lt;/td&gt;
&lt;td&gt;Gets or sets the Facebook application secret. &lt;br&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;static string&lt;/td&gt;
&lt;td valign="bottom"&gt;&lt;strong&gt;MembershipDBName&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;#160;&lt;/td&gt;
&lt;td&gt;Gets or sets the name of the database used for storing the membership data. &lt;br&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;static string&lt;/td&gt;
&lt;td valign="bottom"&gt;&lt;strong&gt;Language&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;#160;&lt;/td&gt;
&lt;td&gt;Gets or sets the code of the language used to display the Facebook plugins.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:20px; font-weight:bold"&gt;Helper Methods&lt;/span&gt;&lt;/p&gt;
&lt;table border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&lt;span style="text-decoration:underline"&gt;&lt;strong&gt;Method&lt;/strong&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style="text-decoration:underline"&gt;&lt;strong&gt;Requires Initialization&lt;/strong&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style="text-decoration:underline"&gt;&lt;strong&gt;Requires Publishing&lt;/strong&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;static void&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Initialize&lt;/strong&gt; (string appId, string appSecret, [string membershipDBName])&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;-&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;-&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Initialize the helper with your Facebook application settings. &lt;br&gt;
If the 'membershipDBName' parameter is specified, Facebook membership integration will be enabled, allowing users to register and associate their Facebook user account (identified with the e-mail) with your site membership and the WebSecurity helper. In this
 case, the helper will initialize the WebSecurity WebMatrix helper automatically (if not done previously) and the store the membership information in the 'membershipDbName' database.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;GetInitializationScripts()&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;-&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;-&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Initialize the Facebook JavaScript SDK to be able to support the XFBML tags of the social plugins.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="#x_UserProfile"&gt;UserProfile&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;GetFacebookUserProfile()&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Yes (calling GetInitializationScripts() not required)&lt;strong&gt; &lt;br&gt;
&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Retrieves the Facebook profile of current logged in user. See the section at the bottom of the page for details on the information you can access.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;static void&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;AssociateMembershipAccount &lt;/strong&gt;(string userName)&lt;/td&gt;
&lt;td&gt;Yes (calling GetInitializationScripts() not required )&lt;strong&gt; &lt;br&gt;
&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Associates the specified user name (e.g. email, depending on your membership model) with the current Facebook User Id from the logged user. See the Facebook.Bakery sample Web site for an example on how to use this method.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;static void&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;MembershipLogin&lt;/strong&gt;() &lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Creates an authentication cookie with the current Facebook logged User name and returns 'true'. If the membership user name cannot be retrieved returns 'false' This method can be called after postback to customize page redirection.
&lt;/td&gt;
&lt;td&gt;Yes (calling GetInitializationScripts() not required) &lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;LoginButton&lt;/strong&gt; (string registerUrl, [string returnUrl], [string callbackUrl] [string buttonText], [bool autoLogoutLink], [string size], [string length], [bool showFaces], [string extendedPermissions])&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Shows a Facebok Login Button, with site membership integration, allowing users to login on your site with their Facebook account (e-mail).
&lt;br&gt;
To use this method, you need to provide the 'membershipDbName' in the helper's Initialize method.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;LoginButtonTagOnly&lt;/strong&gt; ([string buttonText], [bool autoLogoutLink], [string size], [string length], [string onLogin], [bool showFaces], [string extendedPermissions])&lt;/td&gt;
&lt;td&gt;No&lt;strong&gt;&amp;#160;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Shows a Facebook Login Button, without integrating Facebook login with your site membership.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;b&gt;LikeButton&lt;/b&gt; ([string href], [string buttonLayout], [bool showFaces], [int width], [int height], [string action], [string font], [string colorScheme], [string refLabel])
&lt;/td&gt;
&lt;td&gt;No&lt;strong&gt;&amp;#160;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Shows a Facebook Like Button. When the user clicks the Like button on your site, a story appears in the user's friends' News Feed with a link back to your website.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;b&gt;Comments&lt;/b&gt; ([string xid], [int width], [int numPosts], [bool reverseOrder], [bool removeRoundedBox])
&lt;/td&gt;
&lt;td&gt;Yes&lt;strong&gt;&amp;#160;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Shows a Facebook Comments plugin. The Comments Box easily enables your users to comment on your site's content — whether it's for a web page, article, photo, or other piece of content.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;b&gt;Recommendations&lt;/b&gt; ([string site], [int width], [int height], [bool showHeader], [string colorScheme], [string font], [string borderColor], [string filter], [string refLabel])
&lt;/td&gt;
&lt;td&gt;No&lt;strong&gt;&amp;#160;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Shows a Facebook Recommendations plugin. The Recommendations plugin shows personalized recommendations to your users.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;LikeBox&lt;/b&gt; ([string profileId], [string name], [int width], [int height], [string colorScheme], [int connections], [bool showStream], [bool showHeader])
&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;No&lt;strong&gt;&amp;#160;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Shows a Facebook Like Box. The Like Box is a social plugin that enables Facebook Page owners to attract and gain Likes from their own website.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Facepile&lt;/strong&gt; ([int maxRows], [int width])&lt;/td&gt;
&lt;td&gt;Yes&lt;strong&gt;&amp;#160;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Shows a Facebook Facepile plugin. The Facepile plugin shows the Facebook profile pictures of the user's friends who have already signed up for your site.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;b&gt;LiveStream&lt;/b&gt; ([int width], [int height], [string xid], [string viaUrl], [bool allwaysPostToFriends])
&lt;/td&gt;
&lt;td&gt;Yes (calling GetInitializationScripts() not required) &lt;strong&gt;&amp;#160;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Shows a Facebook Live Stream plugin. The Live Stream plugin lets users visiting your site or application share activity and comments in real time.
&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;b&gt;ActivityFeed&lt;/b&gt; ([string site], [int width], [int height], [bool showHeader], [string colorScheme], [string font], [string borderColor], [bool showRecommendations])
&lt;/td&gt;
&lt;td&gt;No&lt;strong&gt;&amp;#160;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Shows a Facebook Activity Feed plugin. The activity feed displays stories both when users like content on your site and when users share content from your site back to Facebook.
&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;b&gt;OpenGraphRequiredProperties&lt;/b&gt; (string siteName, string title, string type, string url, string imageUrl, [string description])
&lt;/td&gt;
&lt;td&gt;No&lt;strong&gt;&amp;#160;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;OpenGraph properties allows you to specify structured information about your web pages to show up your pages richly across Facebook and enable Facebook users to establish connections to your pages.
&lt;br&gt;
Use this method to show OpenGraph page data, as the page title, URL, and so on.&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;b&gt;OpenGraphLocationProperties&lt;/b&gt; ([string latitude], [string longitude], [string streetAddress], [string locality], [string region], [string postalCode], [string countryName])
&lt;/td&gt;
&lt;td&gt;No&lt;strong&gt;&amp;#160;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Use this method to show page location data. This is useful if your pages is a business profile or about anything else with a real-world location. You can specify location via latitude and longitude, a full address, or both.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;OpenGraphContactProperties&lt;/strong&gt; ([string email], [string phoneNumber], [string faxNumber])&lt;/td&gt;
&lt;td&gt;No&lt;strong&gt;&amp;#160;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Use this method to show contact information about your page. Consider including contact information if your page is about an entity that can be contacted.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;FbmlNamespaces&lt;/strong&gt; ()&lt;/td&gt;
&lt;td&gt;No&lt;strong&gt;&amp;#160;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Use this method inside your opening HTML tag for W3C compatibility.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2 id="x_UserProfile"&gt;User Profile Information&lt;/h2&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width="163"&gt;string &lt;strong&gt;Id&lt;/strong&gt;&lt;/td&gt;
&lt;td width="625"&gt;Facebook User Id&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Name&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Display Name&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;First_Name&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;First Name&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Last_Name&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Last Name&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Link&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Link to Profile&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Bio&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Short biography&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Gender&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Gender&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Email&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Published e-mail address&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Timezone&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;User timezone&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Locale&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;User regional settings&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Updated_Time&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Last updated time on Facebook&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
</description><author>jsenior</author><pubDate>Thu, 13 Jan 2011 19:59:14 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Documentation 20110113075914P</guid></item><item><title>Updated Wiki: Documentation</title><link>http://facebookhelper.codeplex.com/documentation?version=25</link><description>
&lt;h1&gt;Summary&lt;/h1&gt;
&lt;div class="wikidoc"&gt;The Facebook helper is designed to integrate your WebMatrix site with Facebook, making it possible to add the
&lt;a href="http://developers.facebook.com/plugins"&gt;Facebook Social Plugins&lt;/a&gt;, such as Like button, Facepile, Comments, Login Button and Like Box, among others, in a few simple steps. It also allows you easily integrate your site with the Facebook login mechanism,
 so users do not have to create another account just to access your website.&lt;/div&gt;
&lt;div class="wikidoc"&gt;Depending on the social plugin you want to use, the helper requires that you call an initialization method. Check the table below and if the social plugin you want to use does not require initialization see the
&lt;strong&gt;Getting Started in 60 seconds (without initialization)&lt;/strong&gt; section, otherwise see the
&lt;strong&gt;Getting Started in 60 seconds (with initialization)&lt;/strong&gt; section.&lt;/div&gt;
&lt;div class="wikidoc"&gt;&amp;#160;&lt;/div&gt;
&lt;div class="wikidoc"&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Social Plugin&lt;/th&gt;
&lt;th&gt;Initialization Required&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Like Button&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Activity Feed&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Recommendations&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Like Box&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Login Button&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Facepile&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Comments&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Live Stream&lt;/td&gt;
&lt;td&gt;Yes &lt;br&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;h1&gt;Getting started in 60 seconds (without initialization)&lt;/h1&gt;
&lt;p&gt;These steps will guide you on how to display a Facebook Like button into your Web site:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Add the bolded line from below in the page where you want to show the Like button, in this case for liking the Microsoft Web home page:
&lt;div class="wikidoc"&gt;&lt;br&gt;
&lt;pre&gt;&lt;span style="color:blue"&gt;&amp;lt;!&lt;/span&gt;&lt;span style="color:#a31515"&gt;DOCTYPE&lt;/span&gt; &lt;span style="color:red"&gt;html&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;
&lt;span style="color:blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#a31515"&gt;html&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;
    ...
    &lt;span style="color:blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#a31515"&gt;body&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;
        ...
        &lt;strong&gt;@Facebook.LikeButton(&amp;quot;http://www.microsoft.com/web&amp;quot;)&lt;/strong&gt;
        ...
    &lt;span style="color:blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#a31515"&gt;body&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;
&lt;span style="color:blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#a31515"&gt;html&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;&lt;/ol&gt;
&lt;h1&gt;Getting started in 60 seconds (with initialization)&lt;/h1&gt;
&lt;p&gt;These steps will guide you on how to display a Facebook Comments box into your Web site:
&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Make note of the &lt;strong&gt;Site URL&lt;/strong&gt; where your Microsoft WebMatrix site is running (click the Site workspace | Settings page).
&lt;br&gt;
&lt;a href="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197657"&gt;&lt;img title="wm-mysite-settings[6]" border="0" alt="wm-mysite-settings[6]" src="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197658" width="416" height="97" style="border-right-width:0px; padding-left:0px; padding-right:0px; display:inline; border-top-width:0px; border-bottom-width:0px; border-left-width:0px; padding-top:0px"&gt;&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.facebook.com/developers/createapp.php"&gt;Register&lt;/a&gt; a new Facebook application and make note of the Application Id and Secret. (Check
&lt;a href="http://www.facebook.com/developers"&gt;http://www.facebook.com/developers&lt;/a&gt; for instructions on how to create a Facebook application).
&lt;p&gt;&lt;a href="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197659"&gt;&lt;img title="FBCreateApplication[6]" border="0" alt="FBCreateApplication[6]" src="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197660" width="636" height="260" style="border-right-width:0px; padding-left:0px; padding-right:0px; display:inline; border-top-width:0px; border-bottom-width:0px; border-left-width:0px; padding-top:0px"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;&lt;li&gt;When creating your Facebook application, make sure you set the Site Url to &lt;strong&gt;
http://localhost:[port]&lt;/strong&gt;, replacing the &lt;em&gt;[port]&lt;/em&gt; placeholder with the port where your local WebMatrix site is running.
&lt;p&gt;&lt;a href="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197661"&gt;&lt;img title="FBCoreSettings[6]" border="0" alt="FBCoreSettings[6]" src="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197662" width="651" height="231" style="border-right-width:0px; padding-left:0px; padding-right:0px; display:inline; border-top-width:0px; border-bottom-width:0px; border-left-width:0px; padding-top:0px"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;&lt;li&gt;Add the following line to the &lt;strong&gt;_AppStart.cshtml&lt;/strong&gt; page of your WebMatrix Site (create this page if it does not exist). Replace the placeholders with your Application Id and Secret.
&lt;p&gt;@{ &lt;br&gt;
Facebook.Initialize(&amp;quot;{your App ID}&amp;quot;, &amp;quot;{your App Secret}&amp;quot;); &lt;br&gt;
}&lt;/p&gt;
&lt;/li&gt;&lt;li&gt;Add the highlighted lines from below in the page where you want to show the Comments box:
&lt;pre&gt;&lt;span style="color:blue"&gt;&amp;lt;!&lt;/span&gt;&lt;span style="color:rgb(163,21,21)"&gt;DOCTYPE&lt;/span&gt; &lt;span style="color:red"&gt;html&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;
&lt;span style="color:blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:rgb(163,21,21)"&gt;html&lt;/span&gt; &lt;strong&gt;@Facebook.FbmlNamespaces()&lt;/strong&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;
    ...
    &lt;span style="color:blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:rgb(163,21,21)"&gt;body&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;
        &lt;strong&gt;@Facebook.GetInitializationScripts()&lt;/strong&gt;
        ...
        &lt;strong&gt;@Facebook.Comments()&lt;/strong&gt;

        ...
    &lt;span style="color:blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:rgb(163,21,21)"&gt;body&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;
&lt;span style="color:blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:rgb(163,21,21)"&gt;html&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Some of the Facebook Social Plugins require that your site is published into a public address where others can use it; see the
&lt;a href="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197663"&gt;
helper reference&lt;/a&gt; for a complete list. To do this you can try some of the *Free* WebMatrix Hostings providers, like
&lt;a href="http://www.cytanium.com/"&gt;Cytanium&lt;/a&gt; (also check this tutorial on &lt;a href="http://www.asp.net/webmatrix/tutorials/publish-a-website"&gt;
publishing with WebMatrix)&lt;/a&gt;.&lt;/p&gt;
&lt;h1&gt;Running the Facebook Helper Sample&lt;/h1&gt;
&lt;p&gt;Optionally, you can download a sample WebMatrix web site where you can see the helper in action, and also see how to use the helper to
&lt;strong&gt;integrate the Facebook login mechanism with the membership model of your web site&lt;/strong&gt;. To download and run it with Microsoft WebMatrix, follow these steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Extract the content of the package, right-click the &lt;strong&gt;Facebook.Bakery&lt;/strong&gt; folder and select 'Open as a Web Site with Microsoft WebMatrix'. This will open the Bakery sample web site with WebMatrix.
&lt;/li&gt;&lt;li&gt;Change your WebMatrix site settings to match the &lt;strong&gt;Site Url&lt;/strong&gt; you have configured in your Facebook application settings.
&lt;p&gt;&lt;a href="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197664"&gt;&lt;img title="wm-site-settings" border="0" alt="wm-site-settings" src="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197665" width="415" height="90" style="border-right-width:0px; padding-left:0px; padding-right:0px; display:inline; border-top-width:0px; border-bottom-width:0px; border-left-width:0px; padding-top:0px"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;&lt;li&gt;Open the &lt;strong&gt;_AppStart.cshtml&lt;/strong&gt; page, uncomment the following line and replace the placeholders with your Facebook Application Id and Secret.
&lt;p&gt;@{ &lt;br&gt;
Facebook.Initialize(&amp;quot;{your App ID}&amp;quot;, &amp;quot;{your App Secret}&amp;quot;, &amp;quot;bakery&amp;quot;);
&lt;br&gt;
... &lt;br&gt;
}&lt;/p&gt;
&lt;/li&gt;&lt;li&gt;Click on the &lt;strong&gt;Run&lt;/strong&gt; button located in the Home tab. &lt;/li&gt;&lt;li&gt;Play with the sample! &lt;/li&gt;&lt;/ol&gt;
&lt;ol&gt;
&lt;/ol&gt;
&lt;h1&gt;Helper Reference&lt;/h1&gt;
&lt;p&gt;The helper ships with the following files:&lt;/p&gt;
&lt;div class="wikidoc"&gt;
&lt;ul&gt;
&lt;li&gt;The &lt;strong&gt;Facebook.cshtml&lt;/strong&gt; file located into the &lt;strong&gt;App_Code&lt;/strong&gt; folder
&lt;/li&gt;&lt;li&gt;A &lt;strong&gt;Login.cshtml&lt;/strong&gt; file under the &lt;strong&gt;Facebook&lt;/strong&gt; folder that will handle user login when using his Facebook account.
&lt;/li&gt;&lt;/ul&gt;
&lt;/div&gt;
&lt;h2&gt;Helper Properties&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;Note: Current version does not support the full Facebook API.&lt;/em&gt;&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;static string&lt;/td&gt;
&lt;td valign="bottom" width="715"&gt;&lt;strong&gt;AppId&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;#160;&lt;/td&gt;
&lt;td&gt;Gets or sets the Facebook application id. &lt;br&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;static string&lt;/td&gt;
&lt;td valign="bottom"&gt;&lt;strong&gt;AppSecret&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;#160;&lt;/td&gt;
&lt;td&gt;Gets or sets the Facebook application secret. &lt;br&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;static string&lt;/td&gt;
&lt;td valign="bottom"&gt;&lt;strong&gt;MembershipDBName&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;#160;&lt;/td&gt;
&lt;td&gt;Gets or sets the name of the database used for storing the membership data. &lt;br&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;static string&lt;/td&gt;
&lt;td valign="bottom"&gt;&lt;strong&gt;Language&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;#160;&lt;/td&gt;
&lt;td&gt;Gets or sets the code of the language used to display the Facebook plugins.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:20px; font-weight:bold"&gt;Helper Methods&lt;/span&gt;&lt;/p&gt;
&lt;table border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&lt;span style="text-decoration:underline"&gt;&lt;strong&gt;Method&lt;/strong&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style="text-decoration:underline"&gt;&lt;strong&gt;Requires Initialization&lt;/strong&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style="text-decoration:underline"&gt;&lt;strong&gt;Requires Publishing&lt;/strong&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;static void&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Initialize&lt;/strong&gt; (string appId, string appSecret, [string membershipDBName])&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;-&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;-&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Initialize the helper with your Facebook application settings. &lt;br&gt;
If the 'membershipDBName' parameter is specified, Facebook membership integration will be enabled, allowing users to register and associate their Facebook user account (identified with the e-mail) with your site membership and the WebSecurity helper. In this
 case, the helper will initialize the WebSecurity WebMatrix helper automatically (if not done previously) and the store the membership information in the 'membershipDbName' database.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;GetInitializationScripts()&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;-&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;-&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Initialize the Facebook JavaScript SDK to be able to support the XFBML tags of the social plugins.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="UserProfile"&gt;UserProfile&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;GetFacebookUserProfile()&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Yes (calling GetInitializationScripts() not required)&lt;strong&gt; &lt;br&gt;
&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Retrieves the Facebook profile of current logged in user. See the section at the bottom of the page for details on the information you can access.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;static void&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;AssociateMembershipAccount &lt;/strong&gt;(string userName)&lt;/td&gt;
&lt;td&gt;Yes (calling GetInitializationScripts() not required )&lt;strong&gt; &lt;br&gt;
&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Associates the specified user name (e.g. email, depending on your membership model) with the current Facebook User Id from the logged user. See the Facebook.Bakery sample Web site for an example on how to use this method.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;static void&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;MembershipLogin&lt;/strong&gt;() &lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Creates an authentication cookie with the current Facebook logged User name and returns 'true'. If the membership user name cannot be retrieved returns 'false' This method can be called after postback to customize page redirection.
&lt;/td&gt;
&lt;td&gt;Yes (calling GetInitializationScripts() not required) &lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;LoginButton&lt;/strong&gt; (string registerUrl, [string returnUrl], [string callbackUrl] [string buttonText], [bool autoLogoutLink], [string size], [string length], [bool showFaces], [string extendedPermissions])&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Shows a Facebok Login Button, with site membership integration, allowing users to login on your site with their Facebook account (e-mail).
&lt;br&gt;
To use this method, you need to provide the 'membershipDbName' in the helper's Initialize method.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;LoginButtonTagOnly&lt;/strong&gt; ([string buttonText], [bool autoLogoutLink], [string size], [string length], [string onLogin], [bool showFaces], [string extendedPermissions])&lt;/td&gt;
&lt;td&gt;No&lt;strong&gt;&amp;#160;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Shows a Facebook Login Button, without integrating Facebook login with your site membership.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;b&gt;LikeButton&lt;/b&gt; ([string href], [string buttonLayout], [bool showFaces], [int width], [int height], [string action], [string font], [string colorScheme], [string refLabel])
&lt;/td&gt;
&lt;td&gt;No&lt;strong&gt;&amp;#160;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Shows a Facebook Like Button. When the user clicks the Like button on your site, a story appears in the user's friends' News Feed with a link back to your website.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;b&gt;Comments&lt;/b&gt; ([string xid], [int width], [int numPosts], [bool reverseOrder], [bool removeRoundedBox])
&lt;/td&gt;
&lt;td&gt;Yes&lt;strong&gt;&amp;#160;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Shows a Facebook Comments plugin. The Comments Box easily enables your users to comment on your site's content — whether it's for a web page, article, photo, or other piece of content.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;b&gt;Recommendations&lt;/b&gt; ([string site], [int width], [int height], [bool showHeader], [string colorScheme], [string font], [string borderColor], [string filter], [string refLabel])
&lt;/td&gt;
&lt;td&gt;No&lt;strong&gt;&amp;#160;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Shows a Facebook Recommendations plugin. The Recommendations plugin shows personalized recommendations to your users.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;LikeBox&lt;/b&gt; ([string profileId], [string name], [int width], [int height], [string colorScheme], [int connections], [bool showStream], [bool showHeader])
&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;No&lt;strong&gt;&amp;#160;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Shows a Facebook Like Box. The Like Box is a social plugin that enables Facebook Page owners to attract and gain Likes from their own website.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Facepile&lt;/strong&gt; ([int maxRows], [int width])&lt;/td&gt;
&lt;td&gt;Yes&lt;strong&gt;&amp;#160;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Shows a Facebook Facepile plugin. The Facepile plugin shows the Facebook profile pictures of the user's friends who have already signed up for your site.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;b&gt;LiveStream&lt;/b&gt; ([int width], [int height], [string xid], [string viaUrl], [bool allwaysPostToFriends])
&lt;/td&gt;
&lt;td&gt;Yes (calling GetInitializationScripts() not required) &lt;strong&gt;&amp;#160;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Shows a Facebook Live Stream plugin. The Live Stream plugin lets users visiting your site or application share activity and comments in real time.
&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;b&gt;ActivityFeed&lt;/b&gt; ([string site], [int width], [int height], [bool showHeader], [string colorScheme], [string font], [string borderColor], [bool showRecommendations])
&lt;/td&gt;
&lt;td&gt;No&lt;strong&gt;&amp;#160;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Shows a Facebook Activity Feed plugin. The activity feed displays stories both when users like content on your site and when users share content from your site back to Facebook.
&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;b&gt;OpenGraphRequiredProperties&lt;/b&gt; (string siteName, string title, string type, string url, string imageUrl, [string description])
&lt;/td&gt;
&lt;td&gt;No&lt;strong&gt;&amp;#160;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;OpenGraph properties allows you to specify structured information about your web pages to show up your pages richly across Facebook and enable Facebook users to establish connections to your pages.
&lt;br&gt;
Use this method to show OpenGraph page data, as the page title, URL, and so on.&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;b&gt;OpenGraphLocationProperties&lt;/b&gt; ([string latitude], [string longitude], [string streetAddress], [string locality], [string region], [string postalCode], [string countryName])
&lt;/td&gt;
&lt;td&gt;No&lt;strong&gt;&amp;#160;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Use this method to show page location data. This is useful if your pages is a business profile or about anything else with a real-world location. You can specify location via latitude and longitude, a full address, or both.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;OpenGraphContactProperties&lt;/strong&gt; ([string email], [string phoneNumber], [string faxNumber])&lt;/td&gt;
&lt;td&gt;No&lt;strong&gt;&amp;#160;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Use this method to show contact information about your page. Consider including contact information if your page is about an entity that can be contacted.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;FbmlNamespaces&lt;/strong&gt; ()&lt;/td&gt;
&lt;td&gt;No&lt;strong&gt;&amp;#160;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Use this method inside your opening HTML tag for W3C compatibility.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2 id="x_UserProfile"&gt;User Profile Information&lt;/h2&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width="163"&gt;string &lt;strong&gt;Id&lt;/strong&gt;&lt;/td&gt;
&lt;td width="625"&gt;Facebook User Id&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Name&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Display Name&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;First_Name&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;First Name&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Last_Name&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Last Name&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Link&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Link to Profile&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Bio&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Short biography&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Gender&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Gender&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Email&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Published e-mail address&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Timezone&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;User timezone&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Locale&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;User regional settings&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Updated_Time&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Last updated time on Facebook&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
</description><author>jsenior</author><pubDate>Thu, 13 Jan 2011 19:55:52 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Documentation 20110113075552P</guid></item><item><title>Updated Wiki: Documentation</title><link>http://facebookhelper.codeplex.com/documentation?version=24</link><description>
&lt;h1&gt;Summary&lt;/h1&gt;
&lt;div class="wikidoc"&gt;The Facebook helper is designed to integrate your WebMatrix site with Facebook, making it possible to add the
&lt;a href="http://developers.facebook.com/plugins"&gt;Facebook Social Plugins&lt;/a&gt;, such as Like button, Facepile, Comments, Login Button and Like Box, among others, in a few simple steps. It also allows you easily integrate your site with the Facebook login mechanism,
 so users do not have to create another account just to access your website.&lt;/div&gt;
&lt;div class="wikidoc"&gt;Depending on the social plugin you want to use, the helper requires that you call an initialization method. Check the table below and if the social plugin you want to use does not require initialization see the
&lt;strong&gt;Getting Started in 60 seconds (without initialization)&lt;/strong&gt; section, otherwise see the
&lt;strong&gt;Getting Started in 60 seconds (with initialization)&lt;/strong&gt; section.&lt;/div&gt;
&lt;div class="wikidoc"&gt;&amp;#160;&lt;/div&gt;
&lt;div class="wikidoc"&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Social Plugin&lt;/th&gt;
&lt;th&gt;Initialization Required&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Like Button&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Activity Feed&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Recommendations&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Like Box&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Login Button&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Facepile&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Comments&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Live Stream&lt;/td&gt;
&lt;td&gt;Yes &lt;br&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;h1&gt;Getting started in 60 seconds (without initialization)&lt;/h1&gt;
&lt;p&gt;These steps will guide you on how to display a Facebook Like button into your Web site:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Add the bolded line from below in the page where you want to show the Like button, in this case for liking the Microsoft Web home page:
&lt;div class="wikidoc"&gt;&lt;br&gt;
&lt;pre&gt;&lt;span style="color:blue"&gt;&amp;lt;!&lt;/span&gt;&lt;span style="color:#a31515"&gt;DOCTYPE&lt;/span&gt; &lt;span style="color:red"&gt;html&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;
&lt;span style="color:blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#a31515"&gt;html&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;
    ...
    &lt;span style="color:blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#a31515"&gt;body&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;
        ...
        &lt;strong&gt;@Facebook.LikeButton(&amp;quot;http://www.microsoft.com/web&amp;quot;)&lt;/strong&gt;
        ...
    &lt;span style="color:blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#a31515"&gt;body&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;
&lt;span style="color:blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#a31515"&gt;html&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;&lt;/ol&gt;
&lt;h1&gt;Getting started in 60 seconds (with initialization)&lt;/h1&gt;
&lt;p&gt;These steps will guide you on how to display a Facebook Comments box into your Web site:
&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Make note of the &lt;strong&gt;Site URL&lt;/strong&gt; where your Microsoft WebMatrix site is running (click the Site workspace | Settings page).
&lt;br&gt;
&lt;a href="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197657"&gt;&lt;img title="wm-mysite-settings[6]" border="0" alt="wm-mysite-settings[6]" src="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197658" width="416" height="97" style="border-right-width:0px; padding-left:0px; padding-right:0px; display:inline; border-top-width:0px; border-bottom-width:0px; border-left-width:0px; padding-top:0px"&gt;&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.facebook.com/developers/createapp.php"&gt;Register&lt;/a&gt; a new Facebook application and make note of the Application Id and Secret. (Check
&lt;a href="http://www.facebook.com/developers"&gt;http://www.facebook.com/developers&lt;/a&gt; for instructions on how to create a Facebook application).
&lt;p&gt;&lt;a href="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197659"&gt;&lt;img title="FBCreateApplication[6]" border="0" alt="FBCreateApplication[6]" src="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197660" width="636" height="260" style="border-right-width:0px; padding-left:0px; padding-right:0px; display:inline; border-top-width:0px; border-bottom-width:0px; border-left-width:0px; padding-top:0px"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;&lt;li&gt;When creating your Facebook application, make sure you set the Site Url to &lt;strong&gt;
http://localhost:[port]&lt;/strong&gt;, replacing the &lt;em&gt;[port]&lt;/em&gt; placeholder with the port where your local WebMatrix site is running.
&lt;p&gt;&lt;a href="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197661"&gt;&lt;img title="FBCoreSettings[6]" border="0" alt="FBCoreSettings[6]" src="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197662" width="651" height="231" style="border-right-width:0px; padding-left:0px; padding-right:0px; display:inline; border-top-width:0px; border-bottom-width:0px; border-left-width:0px; padding-top:0px"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;&lt;li&gt;Add the following line to the &lt;strong&gt;_AppStart.cshtml&lt;/strong&gt; page of your WebMatrix Site (create this page if it does not exist). Replace the placeholders with your Application Id and Secret.
&lt;p&gt;@{ &lt;br&gt;
Facebook.Initialize(&amp;quot;{your App ID}&amp;quot;, &amp;quot;{your App Secret}&amp;quot;); &lt;br&gt;
}&lt;/p&gt;
&lt;/li&gt;&lt;li&gt;Add the highlighted lines from below in the page where you want to show the Comments box:
&lt;pre&gt;&lt;span style="color:blue"&gt;&amp;lt;!&lt;/span&gt;&lt;span style="color:rgb(163,21,21)"&gt;DOCTYPE&lt;/span&gt; &lt;span style="color:red"&gt;html&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;
&lt;span style="color:blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:rgb(163,21,21)"&gt;html&lt;/span&gt; &lt;strong&gt;@Facebook.FbmlNamespaces()&lt;/strong&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;
    ...
    &lt;span style="color:blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:rgb(163,21,21)"&gt;body&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;
        &lt;strong&gt;@Facebook.GetInitializationScripts()&lt;/strong&gt;
        ...
        &lt;strong&gt;@Facebook.Comments()&lt;/strong&gt;

        ...
    &lt;span style="color:blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:rgb(163,21,21)"&gt;body&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;
&lt;span style="color:blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:rgb(163,21,21)"&gt;html&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Some of the Facebook Social Plugins require that your site is published into a public address where others can use it; see the
&lt;a href="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197663"&gt;
helper reference&lt;/a&gt; for a complete list. To do this you can try some of the *Free* WebMatrix Hostings providers, like
&lt;a href="http://www.cytanium.com/"&gt;Cytanium&lt;/a&gt; (also check this tutorial on &lt;a href="http://www.asp.net/webmatrix/tutorials/publish-a-website"&gt;
publishing with WebMatrix)&lt;/a&gt;.&lt;/p&gt;
&lt;h1&gt;Running the Facebook Helper Sample&lt;/h1&gt;
&lt;p&gt;Optionally, you can download a sample WebMatrix web site where you can see the helper in action, and also see how to use the helper to
&lt;strong&gt;integrate the Facebook login mechanism with the membership model of your web site&lt;/strong&gt;. To download and run it with Microsoft WebMatrix, follow these steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Browse to the &lt;a href="http://facebookhelper.codeplex.com"&gt;Facebook Helper CodePlex site&lt;/a&gt; and download the
&lt;strong&gt;Facebook Helper Sample&lt;/strong&gt; &lt;/li&gt;&lt;li&gt;Extract the content of the package, right-click the &lt;strong&gt;Facebook.Bakery&lt;/strong&gt; folder and select 'Open as a Web Site with Microsoft WebMatrix'. This will open the Bakery sample web site with WebMatrix.
&lt;/li&gt;&lt;li&gt;Change your WebMatrix site settings to match the &lt;strong&gt;Site Url&lt;/strong&gt; you have configured in your Facebook application settings.
&lt;p&gt;&lt;a href="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197664"&gt;&lt;img title="wm-site-settings" border="0" alt="wm-site-settings" src="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197665" width="415" height="90" style="border-right-width:0px; padding-left:0px; padding-right:0px; display:inline; border-top-width:0px; border-bottom-width:0px; border-left-width:0px; padding-top:0px"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;&lt;li&gt;Open the &lt;strong&gt;_AppStart.cshtml&lt;/strong&gt; page, uncomment the following line and replace the placeholders with your Facebook Application Id and Secret.
&lt;p&gt;@{ &lt;br&gt;
Facebook.Initialize(&amp;quot;{your App ID}&amp;quot;, &amp;quot;{your App Secret}&amp;quot;, &amp;quot;bakery&amp;quot;);
&lt;br&gt;
... &lt;br&gt;
}&lt;/p&gt;
&lt;/li&gt;&lt;li&gt;Click on the &lt;strong&gt;Run&lt;/strong&gt; button located in the Home tab. &lt;/li&gt;&lt;li&gt;Play with the sample! &lt;/li&gt;&lt;/ol&gt;
&lt;ol&gt;
&lt;/ol&gt;
&lt;h1&gt;Helper Reference&lt;/h1&gt;
&lt;p&gt;The helper ships with the following files:&lt;/p&gt;
&lt;div class="wikidoc"&gt;
&lt;ul&gt;
&lt;li&gt;The &lt;strong&gt;Facebook.cshtml&lt;/strong&gt; file located into the &lt;strong&gt;App_Code&lt;/strong&gt; folder
&lt;/li&gt;&lt;li&gt;A &lt;strong&gt;Login.cshtml&lt;/strong&gt; file under the &lt;strong&gt;Facebook&lt;/strong&gt; folder that will handle user login when using his Facebook account.
&lt;/li&gt;&lt;/ul&gt;
&lt;/div&gt;
&lt;h2&gt;Helper Properties&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;Note: Current version does not support the full Facebook API.&lt;/em&gt;&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;static string&lt;/td&gt;
&lt;td valign="bottom" width="715"&gt;&lt;strong&gt;AppId&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;#160;&lt;/td&gt;
&lt;td&gt;Gets or sets the Facebook application id. &lt;br&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;static string&lt;/td&gt;
&lt;td valign="bottom"&gt;&lt;strong&gt;AppSecret&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;#160;&lt;/td&gt;
&lt;td&gt;Gets or sets the Facebook application secret. &lt;br&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;static string&lt;/td&gt;
&lt;td valign="bottom"&gt;&lt;strong&gt;MembershipDBName&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;#160;&lt;/td&gt;
&lt;td&gt;Gets or sets the name of the database used for storing the membership data. &lt;br&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;static string&lt;/td&gt;
&lt;td valign="bottom"&gt;&lt;strong&gt;Language&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;#160;&lt;/td&gt;
&lt;td&gt;Gets or sets the code of the language used to display the Facebook plugins.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:20px; font-weight:bold"&gt;Helper Methods&lt;/span&gt;&lt;/p&gt;
&lt;table border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&lt;span style="text-decoration:underline"&gt;&lt;strong&gt;Method&lt;/strong&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style="text-decoration:underline"&gt;&lt;strong&gt;Requires Initialization&lt;/strong&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style="text-decoration:underline"&gt;&lt;strong&gt;Requires Publishing&lt;/strong&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;static void&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Initialize&lt;/strong&gt; (string appId, string appSecret, [string membershipDBName])&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;-&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;-&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Initialize the helper with your Facebook application settings. &lt;br&gt;
If the 'membershipDBName' parameter is specified, Facebook membership integration will be enabled, allowing users to register and associate their Facebook user account (identified with the e-mail) with your site membership and the WebSecurity helper. In this
 case, the helper will initialize the WebSecurity WebMatrix helper automatically (if not done previously) and the store the membership information in the 'membershipDbName' database.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;GetInitializationScripts()&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;-&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;-&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Initialize the Facebook JavaScript SDK to be able to support the XFBML tags of the social plugins.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="x_UserProfile"&gt;UserProfile&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;GetFacebookUserProfile()&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Yes (calling GetInitializationScripts() not required)&lt;strong&gt; &lt;br&gt;
&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Retrieves the Facebook profile of current logged in user. See the section at the bottom of the page for details on the information you can access.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;static void&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;AssociateMembershipAccount &lt;/strong&gt;(string userName)&lt;/td&gt;
&lt;td&gt;Yes (calling GetInitializationScripts() not required )&lt;strong&gt; &lt;br&gt;
&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Associates the specified user name (e.g. email, depending on your membership model) with the current Facebook User Id from the logged user. See the Facebook.Bakery sample Web site for an example on how to use this method.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;static void&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;MembershipLogin&lt;/strong&gt;() &lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Creates an authentication cookie with the current Facebook logged User name and returns 'true'. If the membership user name cannot be retrieved returns 'false' This method can be called after postback to customize page redirection.
&lt;/td&gt;
&lt;td&gt;Yes (calling GetInitializationScripts() not required) &lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;LoginButton&lt;/strong&gt; (string registerUrl, [string returnUrl], [string callbackUrl] [string buttonText], [bool autoLogoutLink], [string size], [string length], [bool showFaces], [string extendedPermissions])&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Shows a Facebok Login Button, with site membership integration, allowing users to login on your site with their Facebook account (e-mail).
&lt;br&gt;
To use this method, you need to provide the 'membershipDbName' in the helper's Initialize method.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;LoginButtonTagOnly&lt;/strong&gt; ([string buttonText], [bool autoLogoutLink], [string size], [string length], [string onLogin], [bool showFaces], [string extendedPermissions])&lt;/td&gt;
&lt;td&gt;No&lt;strong&gt;&amp;#160;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Shows a Facebook Login Button, without integrating Facebook login with your site membership.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;b&gt;LikeButton&lt;/b&gt; ([string href], [string buttonLayout], [bool showFaces], [int width], [int height], [string action], [string font], [string colorScheme], [string refLabel])
&lt;/td&gt;
&lt;td&gt;No&lt;strong&gt;&amp;#160;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Shows a Facebook Like Button. When the user clicks the Like button on your site, a story appears in the user's friends' News Feed with a link back to your website.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;b&gt;Comments&lt;/b&gt; ([string xid], [int width], [int numPosts], [bool reverseOrder], [bool removeRoundedBox])
&lt;/td&gt;
&lt;td&gt;Yes&lt;strong&gt;&amp;#160;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Shows a Facebook Comments plugin. The Comments Box easily enables your users to comment on your site's content — whether it's for a web page, article, photo, or other piece of content.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;b&gt;Recommendations&lt;/b&gt; ([string site], [int width], [int height], [bool showHeader], [string colorScheme], [string font], [string borderColor], [string filter], [string refLabel])
&lt;/td&gt;
&lt;td&gt;No&lt;strong&gt;&amp;#160;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Shows a Facebook Recommendations plugin. The Recommendations plugin shows personalized recommendations to your users.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;LikeBox&lt;/b&gt; ([string profileId], [string name], [int width], [int height], [string colorScheme], [int connections], [bool showStream], [bool showHeader])
&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;No&lt;strong&gt;&amp;#160;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Shows a Facebook Like Box. The Like Box is a social plugin that enables Facebook Page owners to attract and gain Likes from their own website.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Facepile&lt;/strong&gt; ([int maxRows], [int width])&lt;/td&gt;
&lt;td&gt;Yes&lt;strong&gt;&amp;#160;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Shows a Facebook Facepile plugin. The Facepile plugin shows the Facebook profile pictures of the user's friends who have already signed up for your site.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;b&gt;LiveStream&lt;/b&gt; ([int width], [int height], [string xid], [string viaUrl], [bool allwaysPostToFriends])
&lt;/td&gt;
&lt;td&gt;Yes (calling GetInitializationScripts() not required) &lt;strong&gt;&amp;#160;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Shows a Facebook Live Stream plugin. The Live Stream plugin lets users visiting your site or application share activity and comments in real time.
&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;b&gt;ActivityFeed&lt;/b&gt; ([string site], [int width], [int height], [bool showHeader], [string colorScheme], [string font], [string borderColor], [bool showRecommendations])
&lt;/td&gt;
&lt;td&gt;No&lt;strong&gt;&amp;#160;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Shows a Facebook Activity Feed plugin. The activity feed displays stories both when users like content on your site and when users share content from your site back to Facebook.
&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;b&gt;OpenGraphRequiredProperties&lt;/b&gt; (string siteName, string title, string type, string url, string imageUrl, [string description])
&lt;/td&gt;
&lt;td&gt;No&lt;strong&gt;&amp;#160;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;OpenGraph properties allows you to specify structured information about your web pages to show up your pages richly across Facebook and enable Facebook users to establish connections to your pages.
&lt;br&gt;
Use this method to show OpenGraph page data, as the page title, URL, and so on.&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;b&gt;OpenGraphLocationProperties&lt;/b&gt; ([string latitude], [string longitude], [string streetAddress], [string locality], [string region], [string postalCode], [string countryName])
&lt;/td&gt;
&lt;td&gt;No&lt;strong&gt;&amp;#160;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Use this method to show page location data. This is useful if your pages is a business profile or about anything else with a real-world location. You can specify location via latitude and longitude, a full address, or both.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;OpenGraphContactProperties&lt;/strong&gt; ([string email], [string phoneNumber], [string faxNumber])&lt;/td&gt;
&lt;td&gt;No&lt;strong&gt;&amp;#160;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Use this method to show contact information about your page. Consider including contact information if your page is about an entity that can be contacted.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;FbmlNamespaces&lt;/strong&gt; ()&lt;/td&gt;
&lt;td&gt;No&lt;strong&gt;&amp;#160;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Use this method inside your opening HTML tag for W3C compatibility.&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2 id="x_x_UserProfile"&gt;User Profile Information&lt;/h2&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width="163"&gt;string &lt;strong&gt;Id&lt;/strong&gt;&lt;/td&gt;
&lt;td width="625"&gt;Facebook User Id&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Name&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Display Name&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;First_Name&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;First Name&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Last_Name&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Last Name&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Link&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Link to Profile&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Bio&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Short biography&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Gender&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Gender&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Email&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Published e-mail address&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Timezone&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;User timezone&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Locale&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;User regional settings&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Updated_Time&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Last updated time on Facebook&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
</description><author>jsenior</author><pubDate>Thu, 13 Jan 2011 19:46:12 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Documentation 20110113074612P</guid></item><item><title>Updated Wiki: Documentation</title><link>http://facebookhelper.codeplex.com/documentation?version=23</link><description>
&lt;h1&gt;Summary&lt;/h1&gt;
&lt;div class="wikidoc"&gt;The Facebook helper is designed to integrate your WebMatrix site with Facebook, making it possible to add the
&lt;a href="http://developers.facebook.com/plugins"&gt;Facebook Social Plugins&lt;/a&gt;, such as Like button, Facepile, Comments, Login Button and Like Box, among others, in a few simple steps. It also allows you easily integrate your site with the Facebook login mechanism,
 so users do not have to create another account just to access your website.&lt;/div&gt;
&lt;div class="wikidoc"&gt;Depending on the social plugin you want to use, the helper requires that you call an initialization method. Check the table below and if the social plugin you want to use does not require initialization see the
&lt;strong&gt;Getting Started in 60 seconds (without initialization)&lt;/strong&gt; section, otherwise see the
&lt;strong&gt;Getting Started in 60 seconds (with initialization)&lt;/strong&gt; section.&lt;/div&gt;
&lt;div class="wikidoc"&gt;&amp;#160;&lt;/div&gt;
&lt;div class="wikidoc"&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Social Plugin&lt;/th&gt;
&lt;th&gt;Initialization Required&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Like Button&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Activity Feed&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Recommendations&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Like Box&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Login Button&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Facepile&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Comments&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Live Stream&lt;/td&gt;
&lt;td&gt;Yes &lt;br&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;h1&gt;Getting started in 60 seconds (without initialization)&lt;/h1&gt;
&lt;p&gt;These steps will guide you on how to display a Facebook Like button into your Web site:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Add the bolded line from below in the page where you want to show the Like button, in this case for liking the Microsoft Web home page:
&lt;div class="wikidoc"&gt;&lt;br&gt;
&lt;pre&gt;&lt;span style="color:blue"&gt;&amp;lt;!&lt;/span&gt;&lt;span style="color:#a31515"&gt;DOCTYPE&lt;/span&gt; &lt;span style="color:red"&gt;html&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;
&lt;span style="color:blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#a31515"&gt;html&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;
    ...
    &lt;span style="color:blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#a31515"&gt;body&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;
        ...
        &lt;strong&gt;@Facebook.LikeButton(&amp;quot;http://www.microsoft.com/web&amp;quot;)&lt;/strong&gt;
        ...
    &lt;span style="color:blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#a31515"&gt;body&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;
&lt;span style="color:blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#a31515"&gt;html&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;&lt;/ol&gt;
&lt;h1&gt;Getting started in 60 seconds (with initialization)&lt;/h1&gt;
&lt;p&gt;These steps will guide you on how to display a Facebook Comments box into your Web site:
&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Make note of the &lt;strong&gt;Site URL&lt;/strong&gt; where your Microsoft WebMatrix site is running (click the Site workspace | Settings page).
&lt;br&gt;
&lt;a href="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197657"&gt;&lt;img title="wm-mysite-settings[6]" border="0" alt="wm-mysite-settings[6]" src="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197658" width="416" height="97" style="border-right-width:0px; padding-left:0px; padding-right:0px; display:inline; border-top-width:0px; border-bottom-width:0px; border-left-width:0px; padding-top:0px"&gt;&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.facebook.com/developers/createapp.php"&gt;Register&lt;/a&gt; a new Facebook application and make note of the Application Id and Secret. (Check
&lt;a href="http://www.facebook.com/developers"&gt;http://www.facebook.com/developers&lt;/a&gt; for instructions on how to create a Facebook application).
&lt;p&gt;&lt;a href="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197659"&gt;&lt;img title="FBCreateApplication[6]" border="0" alt="FBCreateApplication[6]" src="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197660" width="636" height="260" style="border-right-width:0px; padding-left:0px; padding-right:0px; display:inline; border-top-width:0px; border-bottom-width:0px; border-left-width:0px; padding-top:0px"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;&lt;li&gt;When creating your Facebook application, make sure you set the Site Url to &lt;strong&gt;
http://localhost:[port]&lt;/strong&gt;, replacing the &lt;em&gt;[port]&lt;/em&gt; placeholder with the port where your local WebMatrix site is running.
&lt;p&gt;&lt;a href="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197661"&gt;&lt;img title="FBCoreSettings[6]" border="0" alt="FBCoreSettings[6]" src="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197662" width="651" height="231" style="border-right-width:0px; padding-left:0px; padding-right:0px; display:inline; border-top-width:0px; border-bottom-width:0px; border-left-width:0px; padding-top:0px"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;&lt;li&gt;Add the following line to the &lt;strong&gt;_AppStart.cshtml&lt;/strong&gt; page of your WebMatrix Site (create this page if it does not exist). Replace the placeholders with your Application Id and Secret.
&lt;p&gt;@{ &lt;br&gt;
Facebook.Initialize(&amp;quot;{your App ID}&amp;quot;, &amp;quot;{your App Secret}&amp;quot;); &lt;br&gt;
}&lt;/p&gt;
&lt;/li&gt;&lt;li&gt;Add the highlighted lines from below in the page where you want to show the Comments box:
&lt;p&gt;&amp;lt;!DOCTYPE html&amp;gt; &lt;br&gt;
&amp;lt;html @Facebook.FbmlNamespaces()&amp;gt; &lt;br&gt;
... &lt;br&gt;
&amp;lt;body&amp;gt; &lt;br&gt;
@Facebook.GetInitializationScripts() &lt;br&gt;
... &lt;br&gt;
@Facebook.Comments() &lt;br&gt;
... &lt;br&gt;
&amp;lt;/body&amp;gt; &lt;br&gt;
&amp;lt;/html&amp;gt;&lt;/p&gt;
&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Some of the Facebook Social Plugins require that your site is published into a public address where others can use it; see the
&lt;a href="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197663"&gt;
helper reference&lt;/a&gt; for a complete list. To do this you can try some of the *Free* WebMatrix Hostings providers, like
&lt;a href="http://www.cytanium.com/"&gt;Cytanium&lt;/a&gt; (also check this tutorial on &lt;a href="http://www.asp.net/webmatrix/tutorials/publish-a-website"&gt;
publishing with WebMatrix)&lt;/a&gt;.&lt;/p&gt;
&lt;h1&gt;Running the Facebook Helper Sample&lt;/h1&gt;
&lt;p&gt;Optionally, you can download a sample WebMatrix web site where you can see the helper in action, and also see how to use the helper to
&lt;strong&gt;integrate the Facebook login mechanism with the membership model of your web site&lt;/strong&gt;. To download and run it with Microsoft WebMatrix, follow these steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Browse to the &lt;a href="http://facebookhelper.codeplex.com"&gt;Facebook Helper CodePlex site&lt;/a&gt; and download the
&lt;strong&gt;Facebook Helper Sample&lt;/strong&gt; &lt;/li&gt;&lt;li&gt;Extract the content of the package, right-click the &lt;strong&gt;Facebook.Bakery&lt;/strong&gt; folder and select 'Open as a Web Site with Microsoft WebMatrix'. This will open the Bakery sample web site with WebMatrix.
&lt;/li&gt;&lt;li&gt;Change your WebMatrix site settings to match the &lt;strong&gt;Site Url&lt;/strong&gt; you have configured in your Facebook application settings.
&lt;p&gt;&lt;a href="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197664"&gt;&lt;img title="wm-site-settings" border="0" alt="wm-site-settings" src="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=facebookhelper&amp;DownloadId=197665" width="415" height="90" style="border-right-width:0px; padding-left:0px; padding-right:0px; display:inline; border-top-width:0px; border-bottom-width:0px; border-left-width:0px; padding-top:0px"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;&lt;li&gt;Open the &lt;strong&gt;_AppStart.cshtml&lt;/strong&gt; page, uncomment the following line and replace the placeholders with your Facebook Application Id and Secret.
&lt;p&gt;@{ &lt;br&gt;
Facebook.Initialize(&amp;quot;{your App ID}&amp;quot;, &amp;quot;{your App Secret}&amp;quot;, &amp;quot;bakery&amp;quot;);
&lt;br&gt;
... &lt;br&gt;
}&lt;/p&gt;
&lt;/li&gt;&lt;li&gt;Click on the &lt;strong&gt;Run&lt;/strong&gt; button located in the Home tab. &lt;/li&gt;&lt;li&gt;Play with the sample! &lt;/li&gt;&lt;/ol&gt;
&lt;h1&gt;Helper Reference&lt;/h1&gt;
&lt;p&gt;The helper ships with the following files:&lt;/p&gt;
&lt;div class="wikidoc"&gt;
&lt;ul&gt;
&lt;li&gt;The &lt;strong&gt;Facebook.cshtml&lt;/strong&gt; file located into the &lt;strong&gt;App_Code&lt;/strong&gt; folder
&lt;/li&gt;&lt;li&gt;A &lt;strong&gt;Login.cshtml&lt;/strong&gt; file under the &lt;strong&gt;Facebook&lt;/strong&gt; folder that will handle user login when using his Facebook account.
&lt;/li&gt;&lt;/ul&gt;
&lt;/div&gt;
&lt;h2&gt;Helper Properties&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;Note: Current version does not support the full Facebook API.&lt;/em&gt;&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width="63"&gt;static string &lt;/td&gt;
&lt;td valign="bottom" width="715"&gt;&lt;b&gt;AppId&lt;/b&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;#160; &lt;/td&gt;
&lt;td&gt;Gets or sets the Facebook application id. &lt;br&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;static string &lt;/td&gt;
&lt;td valign="bottom"&gt;&lt;b&gt;AppSecret&lt;/b&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;#160; &lt;/td&gt;
&lt;td&gt;Gets or sets the Facebook application secret. &lt;br&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;static string &lt;/td&gt;
&lt;td valign="bottom"&gt;&lt;b&gt;MembershipDBName&lt;/b&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;#160; &lt;/td&gt;
&lt;td&gt;Gets or sets the name of the database used for storing the membership data. &lt;br&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;static string &lt;/td&gt;
&lt;td valign="bottom"&gt;&lt;b&gt;Language&lt;/b&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;#160; &lt;/td&gt;
&lt;td&gt;Gets or sets the code of the language used to display the Facebook plugins. &lt;br&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2&gt;Helper Methods&lt;/h2&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;th&gt;&amp;#160; &lt;/th&gt;
&lt;th&gt;Method &lt;/th&gt;
&lt;th&gt;Requires Initialization &lt;/th&gt;
&lt;th&gt;Requires Publishing &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;static void &lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Initialize&lt;/strong&gt; (string appId, string appSecret, [string membershipDBName])
&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;#160; &lt;/td&gt;
&lt;td&gt;Initialize the helper with your Facebook application settings. &lt;br&gt;
If the 'membershipDBName' parameter is specified, Facebook membership integration will be enabled, allowing users to register and associate their Facebook user account (identified with the e-mail) with your site membership and the WebSecurity helper. In this
 case, the helper will initialize the WebSecurity WebMatrix helper automatically (if not done previously) and the store the membership information in the 'membershipDbName' database.
&lt;/td&gt;
&lt;td&gt;- &lt;/td&gt;
&lt;td&gt;- &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper &lt;/td&gt;
&lt;td&gt;&lt;b&gt;GetInitializationScripts&lt;/b&gt;() &lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;#160; &lt;/td&gt;
&lt;td&gt;Initialize the Facebook JavaScript SDK to be able to support the XFBML tags of the social plugins.
&lt;/td&gt;
&lt;td&gt;- &lt;/td&gt;
&lt;td&gt;- &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="#x_UserProfile"&gt;UserProfile&lt;/a&gt; &lt;/td&gt;
&lt;td&gt;&lt;strong&gt;GetFacebookUserProfile&lt;/strong&gt;() &lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;#160; &lt;/td&gt;
&lt;td&gt;Retrieves the Facebook profile of current logged in user. See the section at the bottom of the page for details on the information you can access.
&lt;/td&gt;
&lt;td&gt;Yes (calling GetInitializationScripts() not required) &lt;/td&gt;
&lt;td&gt;No &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;static void &lt;/td&gt;
&lt;td&gt;&lt;strong&gt;AssociateMembershipAccount &lt;/strong&gt;(string userName) &lt;/td&gt;
&lt;td&gt;&amp;#160; &lt;/td&gt;
&lt;td&gt;&amp;#160; &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;#160; &lt;/td&gt;
&lt;td&gt;Associates the specified user name (e.g. email, depending on your membership model) with the current Facebook User Id from the logged user. See the Facebook.Bakery sample Web site for an example on how to use this method.
&lt;/td&gt;
&lt;td&gt;Yes (calling GetInitializationScripts() not required) &lt;/td&gt;
&lt;td&gt;No &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;static bool &lt;/td&gt;
&lt;td&gt;&lt;strong&gt;MembershipLogin&lt;/strong&gt;() &lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;#160; &lt;/td&gt;
&lt;td&gt;Creates an authentication cookie with the current Facebook logged User name and returns 'true'. If the membership user name cannot be retrieved returns 'false' This method can be called after postback to customize page redirection.
&lt;/td&gt;
&lt;td&gt;Yes (calling GetInitializationScripts() not required) &lt;/td&gt;
&lt;td&gt;No &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper &lt;/td&gt;
&lt;td&gt;&lt;b&gt;LoginButton&lt;/b&gt; (string registerUrl, [string returnUrl], [string callbackUrl] [string buttonText], [bool autoLogoutLink], [string size], [string length], [bool showFaces], [string extendedPermissions])
&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;#160; &lt;/td&gt;
&lt;td&gt;Shows a Facebok Login Button, with site membership integration, allowing users to login on your site with their Facebook account (e-mail).
&lt;br&gt;
To use this method, you need to provide the 'membershipDbName' in the helper's Initialize method.
&lt;/td&gt;
&lt;td&gt;Yes &lt;/td&gt;
&lt;td&gt;No &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper &lt;/td&gt;
&lt;td&gt;&lt;strong&gt;LoginButtonTagOnly&lt;/strong&gt; ([string buttonText], [bool autoLogoutLink], [string size], [string length], [string onLogin], [bool showFaces], [string extendedPermissions])
&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;#160; &lt;/td&gt;
&lt;td&gt;Shows a Facebook Login Button, without integrating Facebook login with your site membership.
&lt;/td&gt;
&lt;td&gt;No &lt;/td&gt;
&lt;td&gt;No &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper &lt;/td&gt;
&lt;td&gt;&lt;b&gt;LikeButton&lt;/b&gt; ([string href], [string buttonLayout], [bool showFaces], [int width], [int height], [string action], [string font], [string colorScheme], [string refLabel])
&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;#160; &lt;/td&gt;
&lt;td&gt;Shows a Facebook Like Button. When the user clicks the Like button on your site, a story appears in the user's friends' News Feed with a link back to your website.
&lt;/td&gt;
&lt;td&gt;No &lt;/td&gt;
&lt;td&gt;No &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper &lt;/td&gt;
&lt;td&gt;&lt;b&gt;Comments&lt;/b&gt; ([string xid], [int width], [int numPosts], [bool reverseOrder], [bool removeRoundedBox])
&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;#160; &lt;/td&gt;
&lt;td&gt;Shows a Facebook Comments plugin. The Comments Box easily enables your users to comment on your site's content — whether it's for a web page, article, photo, or other piece of content.
&lt;/td&gt;
&lt;td&gt;Yes &lt;/td&gt;
&lt;td&gt;No &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper &lt;/td&gt;
&lt;td&gt;&lt;b&gt;Recommendations&lt;/b&gt; ([string site], [int width], [int height], [bool showHeader], [string colorScheme], [string font], [string borderColor], [string filter], [string refLabel])
&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;#160; &lt;/td&gt;
&lt;td&gt;Shows a Facebook Recommendations plugin. The Recommendations plugin shows personalized recommendations to your users.
&lt;/td&gt;
&lt;td&gt;No &lt;/td&gt;
&lt;td&gt;Yes &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper &lt;/td&gt;
&lt;td&gt;&lt;b&gt;LikeBox&lt;/b&gt; ([string profileId], [string name], [int width], [int height], [string colorScheme], [int connections], [bool showStream], [bool showHeader])
&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;#160; &lt;/td&gt;
&lt;td&gt;Shows a Facebook Like Box. The Like Box is a social plugin that enables Facebook Page owners to attract and gain Likes from their own website.
&lt;/td&gt;
&lt;td&gt;No &lt;/td&gt;
&lt;td&gt;No &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper &lt;/td&gt;
&lt;td&gt;&lt;b&gt;Facepile&lt;/b&gt; ([int maxRows], [int width]) &lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;#160; &lt;/td&gt;
&lt;td&gt;Shows a Facebook Facepile plugin. The Facepile plugin shows the Facebook profile pictures of the user's friends who have already signed up for your site.
&lt;/td&gt;
&lt;td&gt;Yes &lt;/td&gt;
&lt;td&gt;No &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper &lt;/td&gt;
&lt;td&gt;&lt;b&gt;LiveStream&lt;/b&gt; ([int width], [int height], [string xid], [string viaUrl], [bool allwaysPostToFriends])
&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;#160; &lt;/td&gt;
&lt;td&gt;Shows a Facebook Live Stream plugin. The Live Stream plugin lets users visiting your site or application share activity and comments in real time.
&lt;/td&gt;
&lt;td&gt;Yes (calling GetInitializationScripts() not required) &lt;/td&gt;
&lt;td&gt;No &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper &lt;/td&gt;
&lt;td&gt;&lt;b&gt;ActivityFeed&lt;/b&gt; ([string site], [int width], [int height], [bool showHeader], [string colorScheme], [string font], [string borderColor], [bool showRecommendations])
&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;#160; &lt;/td&gt;
&lt;td&gt;Shows a Facebook Activity Feed plugin. The activity feed displays stories both when users like content on your site and when users share content from your site back to Facebook.
&lt;/td&gt;
&lt;td&gt;No &lt;/td&gt;
&lt;td&gt;Yes &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper &lt;/td&gt;
&lt;td&gt;&lt;b&gt;OpenGraphRequiredProperties&lt;/b&gt; (string siteName, string title, string type, string url, string imageUrl, [string description])
&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;#160; &lt;/td&gt;
&lt;td&gt;OpenGraph properties allows you to specify structured information about your web pages to show up your pages richly across Facebook and enable Facebook users to establish connections to your pages.
&lt;br&gt;
Use this method to show OpenGraph page data, as the page title, URL, and so on. &lt;/td&gt;
&lt;td&gt;No &lt;/td&gt;
&lt;td&gt;Yes &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper &lt;/td&gt;
&lt;td&gt;&lt;b&gt;OpenGraphLocationProperties&lt;/b&gt; ([string latitude], [string longitude], [string streetAddress], [string locality], [string region], [string postalCode], [string countryName])
&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;#160; &lt;/td&gt;
&lt;td&gt;Use this method to show page location data. This is useful if your pages is a business profile or about anything else with a real-world location. You can specify location via latitude and longitude, a full address, or both.
&lt;/td&gt;
&lt;td&gt;No &lt;/td&gt;
&lt;td&gt;Yes &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper &lt;/td&gt;
&lt;td&gt;&lt;b&gt;OpenGraphContactProperties&lt;/b&gt; ([string email], [string phoneNumber], [string faxNumber])
&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;#160; &lt;/td&gt;
&lt;td&gt;Use this method to show contact information about your page. Consider including contact information if your page is about an entity that can be contacted.
&lt;/td&gt;
&lt;td&gt;No &lt;/td&gt;
&lt;td&gt;Yes &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@helper &lt;/td&gt;
&lt;td&gt;&lt;b&gt;FbmlNamespaces&lt;/b&gt; () &lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Use this method inside your opening HTML tag for W3C compatibility. &lt;/td&gt;
&lt;td&gt;No &lt;/td&gt;
&lt;td&gt;No &lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2&gt;User Profile Information&lt;/h2&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width="163"&gt;string &lt;strong&gt;Id&lt;/strong&gt; &lt;/td&gt;
&lt;td width="625"&gt;Facebook User Id &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Name&lt;/strong&gt; &lt;/td&gt;
&lt;td&gt;Display Name &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;First_Name&lt;/strong&gt; &lt;/td&gt;
&lt;td&gt;First Name &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Last_Name&lt;/strong&gt; &lt;/td&gt;
&lt;td&gt;Last Name &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Link&lt;/strong&gt; &lt;/td&gt;
&lt;td&gt;Link to Profile &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Bio&lt;/strong&gt; &lt;/td&gt;
&lt;td&gt;Short biography &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Gender&lt;/strong&gt; &lt;/td&gt;
&lt;td&gt;Gender &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Email&lt;/strong&gt; &lt;/td&gt;
&lt;td&gt;Published e-mail address &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Timezone&lt;/strong&gt; &lt;/td&gt;
&lt;td&gt;User timezone &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Locale&lt;/strong&gt; &lt;/td&gt;
&lt;td&gt;User regional settings &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;string &lt;strong&gt;Updated_Time&lt;/strong&gt; &lt;/td&gt;
&lt;td&gt;Last updated time on Facebook &lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
</description><author>jsenior</author><pubDate>Thu, 13 Jan 2011 19:19:31 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Documentation 20110113071931P</guid></item><item><title>Updated Release: Facebook Helper v1.0 (Nov 08, 2010)</title><link>http://facebookhelper.codeplex.com/releases/view/53840</link><description>&lt;div class="wikidoc"&gt;This version works with &lt;a href="http://www.microsoft.com/web/webmatrix" class="externalLink"&gt;WebMatrix RTM&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;. &lt;br /&gt;&lt;br /&gt;Download the Facebook Social Plugins Helper package and extract its content in the root folder of your WebMatrix site.&lt;br /&gt;&lt;br /&gt;To learn how to use the helper, download the Facebook Social Plugins Helper Sample and run it with WebMatrix or check out the &lt;a href="http://facebookhelper.codeplex.com/documentation?"&gt;documentation&lt;/a&gt; for this project in Codeplex.&lt;br /&gt;&lt;br /&gt;In the sample you can also see how to use the helper to integrate the Facebook login mechanism with the membership model of your web site.&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>jsenior</author><pubDate>Thu, 13 Jan 2011 18:44:45 GMT</pubDate><guid isPermaLink="false">Updated Release: Facebook Helper v1.0 (Nov 08, 2010) 20110113064445P</guid></item><item><title>Released: Facebook Helper v1.0 (Nov 08, 2010)</title><link>http://facebookhelper.codeplex.com/releases/view/53840</link><description>
&lt;div class="wikidoc"&gt;This version works with &lt;a href="http://www.microsoft.com/web/webmatrix"&gt;
WebMatrix RTM&lt;span&gt;&lt;/span&gt;&lt;/a&gt;. &lt;br&gt;
&lt;br&gt;
Download the Facebook Social Plugins Helper package and extract its content in the root folder of your WebMatrix site.&lt;br&gt;
&lt;br&gt;
To learn how to use the helper, download the Facebook Social Plugins Helper Sample and run it with WebMatrix or check out the
&lt;a href="http://facebookhelper.codeplex.com/documentation?"&gt;documentation&lt;/a&gt; for this project in Codeplex.&lt;br&gt;
&lt;br&gt;
In the sample you can also see how to use the helper to integrate the Facebook login mechanism with the membership model of your web site.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
</description><author></author><pubDate>Thu, 13 Jan 2011 18:44:45 GMT</pubDate><guid isPermaLink="false">Released: Facebook Helper v1.0 (Nov 08, 2010) 20110113064445P</guid></item><item><title>Source code checked in, #5822</title><link>http://facebookhelper.codeplex.com/SourceControl/changeset/changes/5822</link><description>Updated to WebMatrix RTM</description><author>jsenior</author><pubDate>Thu, 13 Jan 2011 18:43:53 GMT</pubDate><guid isPermaLink="false">Source code checked in, #5822 20110113064353P</guid></item><item><title>Updated Release: Facebook Helper v1.0 (Nov 08, 2010)</title><link>http://facebookhelper.codeplex.com/releases/view/53840</link><description>&lt;div class="wikidoc"&gt;This version works with &lt;a href="http://www.microsoft.com/web/webmatrix" class="externalLink"&gt;WebMatrix RTM&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;. &lt;br /&gt;&lt;br /&gt;Download the Facebook Social Plugins Helper package and extract its content in the root folder of your WebMatrix site.&lt;br /&gt;&lt;br /&gt;To learn how to use the helper, download the Facebook Social Plugins Helper Sample and run it with WebMatrix or check out the &lt;a href="http://facebookhelper.codeplex.com/documentation?"&gt;documentation&lt;/a&gt; for this project in Codeplex.&lt;br /&gt;&lt;br /&gt;In the sample you can also see how to use the helper to integrate the Facebook login mechanism with the membership model of your web site.&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>jsenior</author><pubDate>Thu, 13 Jan 2011 18:26:37 GMT</pubDate><guid isPermaLink="false">Updated Release: Facebook Helper v1.0 (Nov 08, 2010) 20110113062637P</guid></item><item><title>Updated Release: Facebook Helper v1.0 (Nov 08, 2010)</title><link>http://facebookhelper.codeplex.com/releases/view/53840</link><description>&lt;div class="wikidoc"&gt;This version works with &lt;a href="http://www.microsoft.com/web/webmatrix" class="externalLink"&gt;WebMatrix Beta3&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;. &lt;br /&gt;&lt;br /&gt;Download the Facebook Social Plugins Helper package and extract its content in the root folder of your WebMatrix site.&lt;br /&gt;&lt;br /&gt;To learn how to use the helper, download the Facebook Social Plugins Helper Sample and run it with WebMatrix or check out the &lt;a href="http://facebookhelper.codeplex.com/documentation?"&gt;documentation&lt;/a&gt; for this project in Codeplex.&lt;br /&gt;&lt;br /&gt;In the sample you can also see how to use the helper to integrate the Facebook login mechanism with the membership model of your web site.&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>jsenior</author><pubDate>Thu, 13 Jan 2011 17:31:07 GMT</pubDate><guid isPermaLink="false">Updated Release: Facebook Helper v1.0 (Nov 08, 2010) 20110113053107P</guid></item><item><title>Updated Release: Facebook Helper v1.0 (Nov 08, 2010)</title><link>http://facebookhelper.codeplex.com/releases/view/53840</link><description>&lt;div class="wikidoc"&gt;This version works with &lt;a href="http://www.microsoft.com/web/webmatrix" class="externalLink"&gt;WebMatrix RTM&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;. &lt;br /&gt;&lt;br /&gt;Download the Facebook Social Plugins Helper package and extract its content in the root folder of your WebMatrix site.&lt;br /&gt;&lt;br /&gt;To learn how to use the helper, download the Facebook Social Plugins Helper Sample and run it with WebMatrix or check out the &lt;a href="http://facebookhelper.codeplex.com/documentation?"&gt;documentation&lt;/a&gt; for this project in Codeplex.&lt;br /&gt;&lt;br /&gt;In the sample you can also see how to use the helper to integrate the Facebook login mechanism with the membership model of your web site.&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>jsenior</author><pubDate>Thu, 13 Jan 2011 17:30:11 GMT</pubDate><guid isPermaLink="false">Updated Release: Facebook Helper v1.0 (Nov 08, 2010) 20110113053011P</guid></item><item><title>New Post: Like button "page could not be reached" error</title><link>http://facebookhelper.codeplex.com/Thread/View.aspx?ThreadId=241172</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;i'm playing a bit with this helper and MVC3 RC2.&lt;/p&gt;
&lt;p&gt;I can use comment and some other features. But the button like send me an error &amp;quot;page could not be reached&amp;quot;.&lt;/p&gt;
&lt;p&gt;Any idea ?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;/div&gt;</description><author>Tyraslin</author><pubDate>Mon, 10 Jan 2011 16:44:57 GMT</pubDate><guid isPermaLink="false">New Post: Like button "page could not be reached" error 20110110044457P</guid></item></channel></rss>