This project is read-only.
IMPORTANT!! Project moved to GitHub

SocialAuth4Net is oauth authentication wrapper for popular social platforms included that
  • Facebook,
  • LinkedIn,
  • Twitter
soon Google+, FriendFeed, Pinterest and others

Note: Sample usage exist in source code...

Nuget package available

Basic Usage
Facebook MVC Sample

Setup config
 <add key="Fb-ApiKey" value="your facebook api key"/>
 <add key="Fb-ApiSecret" value="your fb api secret"/>
 <add key ="Fb-RedirectUri" value="your redirect url"/>
İnfo your redirect url Where do you want to process authentication operation..

Setup Link
Controller Index Action
public ActionResult Index()
       ViewBag.UrlParameters = OAuthManager.GetUrlParametersFor<FacebookAuthenticator>(string.Empty);
            return View();

Index View Markup
<a href="">
   <img src="@Url.Content("~/Content/themes/base/images/fblogin.png")"/>

After Facebook Redirected
Controller Authenticate Action

 public ActionResult Authenticate()
      FacebookProfile facebookProfile = OAuthManager.GetAuthenticatedProfileForFacebook(Request.QueryString);
        if (!string.IsNullOrEmpty(
                return Content( + "<br/>" + facebookProfile.first_name + "<br/>" +

       return Content("");

Last edited Dec 11, 2012 at 9:33 PM by ziyasal, version 19