summaryrefslogtreecommitdiffstats
path: root/samples/OAuthConsumer
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2010-05-13 19:58:24 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2010-05-13 19:58:24 -0700
commit91b551a888d3cae98cf5f1053c6f5c7141db4a3f (patch)
treea383f282986df00dd2e8aa98e12e102c8cee665f /samples/OAuthConsumer
parent448c6dc2e352a49054358907abec3f9bfca3cf13 (diff)
downloadDotNetOpenAuth-91b551a888d3cae98cf5f1053c6f5c7141db4a3f.zip
DotNetOpenAuth-91b551a888d3cae98cf5f1053c6f5c7141db4a3f.tar.gz
DotNetOpenAuth-91b551a888d3cae98cf5f1053c6f5c7141db4a3f.tar.bz2
Facebook OAuth 2.0 client now works.
Diffstat (limited to 'samples/OAuthConsumer')
-rw-r--r--samples/OAuthConsumer/Default.aspx1
-rw-r--r--samples/OAuthConsumer/Facebook.aspx.cs5
2 files changed, 4 insertions, 2 deletions
diff --git a/samples/OAuthConsumer/Default.aspx b/samples/OAuthConsumer/Default.aspx
index c952877..f3bceb6 100644
--- a/samples/OAuthConsumer/Default.aspx
+++ b/samples/OAuthConsumer/Default.aspx
@@ -9,6 +9,7 @@
<li><a href="GoogleAddressBook.aspx">Download your Gmail address book</a></li>
<li><a href="Twitter.aspx">Get your Twitter updates</a></li>
<li><a href="SignInWithTwitter.aspx">Sign In With Twitter</a></li>
+ <li><a href="Facebook.aspx">Sign in with Facebook</a></li>
<li><a href="SampleWcf.aspx">Interop with Service Provider sample using WCF w/ OAuth</a></li>
</ul>
</asp:Content>
diff --git a/samples/OAuthConsumer/Facebook.aspx.cs b/samples/OAuthConsumer/Facebook.aspx.cs
index c73f120..3553f0e 100644
--- a/samples/OAuthConsumer/Facebook.aspx.cs
+++ b/samples/OAuthConsumer/Facebook.aspx.cs
@@ -2,14 +2,15 @@
using System;
using System.Collections.Generic;
using System.Configuration;
+ using System.IO;
using System.Linq;
+ using System.Net;
using System.Web;
+ using System.Web.Script.Serialization;
using System.Web.UI;
using System.Web.UI.WebControls;
using DotNetOpenAuth.ApplicationBlock;
using DotNetOpenAuth.OAuthWrap;
- using System.Net;
- using System.IO;
public partial class Facebook : System.Web.UI.Page {
private static readonly FacebookClient client = new FacebookClient {