auth error in while connection facebook with my applicatio

I'm getting authentication error, after login with facebook through my application


I have tried the suggestions which is provided in below forumn link,

still i'm getting the below authentication error




i have captured the below response in network 



Anyone please suggest me solution.?




  • Social Connected module currently is using an out of date version of the Facebook API. It uses v2.2 which was no longer support as of 3/25/2017. I currently have a ticket open with support as my initial investigation shows the DLL has the version hard coded so a new DLL will need to be provided.
  • We have the same issue. My workaround is like this for now:
    Make an override for the Sitecore.Social.Facebook.Core.Networks.Providers.FacebookProvider that replaces the functionality of AuthGetAccessToken(AuthArgs args) with this:
    public new void AuthGetAccessToken(AuthArgs args)
    HttpRequest request = HttpContext.Current.Request;
    string value = request.QueryString.Get("error");
    if (string.IsNullOrEmpty(value))
    string text = request.QueryString.Get("code");
    if (!string.IsNullOrEmpty(text))
    string text2 = request.Url.Scheme + "://" + request.Url.Host + "/layouts/system/Social/Connector/SocialLogin.ashx?type=access";
    string url = string.Format(CultureInfo.CurrentCulture, FacebookPathsFactory.Facebook.API.AccessToken + "?client_id={0}&redirect_uri={1}&client_secret={2}&code={3}", new object[]
    WebRequestManager webRequestManager = new WebRequestManager(url);
    string accessTokenSecret = string.Empty;
    string response = webRequestManager.GetResponse();
    if (response != null)
    //as the response is not an URI but JSON, this part is obsolete:
    string[] source = response.Split(new char[]
    foreach (string current in from t in source
    where t.Contains("access_token")
    select t)
    accessTokenSecret = current.Split(new char[]
    //instead, decode the above to find accessTokenSecret
    dynamic obj;
    obj = Json.Decode(response);
    catch (Exception jsonException)
    Log.Info(" Cannot convert Facebook response " + response + " " + jsonException.Message, this);
    obj = null;
    accessTokenSecret = obj != null && !string.IsNullOrEmpty(obj.access_token) ? obj.access_token : null;

    AuthCompletedArgs authCompletedArgs = new AuthCompletedArgs
    Application = args.Application,
    AccessTokenSecret = accessTokenSecret,
    CallbackPage = args.CallbackPage,
    ExternalData = args.ExternalData,
    AttachAccountToLoggedInUser = args.AttachAccountToLoggedInUser,
    IsAsyncProfileUpdate = args.IsAsyncProfileUpdate
    if (!string.IsNullOrEmpty(args.CallbackType))
    base.InvokeAuthCompleted(args.CallbackType, authCompletedArgs);
    new FacebookExceptionAnalyzer().Analyze(webRequestManager.ErrorText);

    Replace the reference for the original provider with the override in Sitecore.Social.Facebook.config:
    <!--<provider type="Sitecore.Social.Facebook.Core.Networks.Providers.FacebookProvider, Sitecore.Social.Facebook.Core"/>-->
    <provider type="<yournamespace>.FacebookProvider, <yourproject>"/>

  • Can someone explain when one should use the server-side Social Connect for Authentication and when one should opt for the Client-Only W3C standard Credential Management API instead?

    References: -

    Video (26mins) from Chrome Dev Summit 2016 (Sign-in on the Web - Credential Management and Best Practices)

    (W3C Working draft) Credential Management Level 1

    Browser support: - Chrome 57, Android Browser, 56, Chrome for Android 57
    Firefox Beta
    Edge Planned
    Opera In development
    Safari Not Supported

    (Web Apps to degrade gracefully to local sign-in only until functionality arrives in target user-agent)

    Sign-In Demo
  • In reply to Scott Freeman:

    Hey Scott, any luck with that dll to fix it ?
  • In reply to Vilius Janulis:

    - Read my blog post for full explanation:

    I ended up using the 8.2 Siteocre.SocialFacebook DLLs despite not loving the idea of mixing versions. However right after I waved the white flag and deployed the 8.2 dlls, Sitecore support did come up with a patch: I didn't use the patch so use your own judgement. Support Ticket: 482087 for reference.