Facebook/ Twitter with dotnetopenauth? [closed]
Solution 1:
At the time of me answering this question, DotNetOpenAuth has a public Community Tech Preview (CTP) which is available to download.
- Download that source code. Should be a .7z file. You can use 7-Zip to unzip the code if you don't already have it (it's free).
- Open up the samples source code solution in Visual Studio. I'm using VS2010 but I think there's also a VS2008 solution file.
Now, open up the web.config file for the
OAuthClient
project.-
Next, edit the following settings :-
<!-- Facebook sign-up: http://developers.facebook.com/setup/ -->
<add key="facebookAppID" value="------"/>
<add key="facebookAppSecret" value="------------"/>
You can get these values from your application on Facebook.
- Debug/Run the OAuthClient Web Application. This will start an instance of Cassini/Visual Studio Developer Server and a web browser should open:
Voilà! you can now connect to Facebook to log in.
If you get errors, then you need to make sure that:
- You've manually changed the Facebook app settings in your
web.config
file. - You've correctly setup your app settings in the Facebook developer website.