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,

https://community.sitecore.net/developers/f/8/t/5279

still i'm getting the below authentication error

localhost/authError=92278f97-a6eb-4c98-a445-7f145953e8e3#_=_

 

 

i have captured the below response in network 

 

 

Anyone please suggest me solution.?

 

Thanks

 

  • 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[]
    {
    args.Application.ApplicationKey,
    text2,
    args.Application.ApplicationSecret,
    text
    });
    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[]
    {
    '='
    })[1];
    }*/
    //instead, decode the above to find accessTokenSecret
    dynamic obj;
    try
    {
    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);
    return;
    }
    }
    else
    {
    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)
    www.youtube.com/watch

    (W3C Working draft) Credential Management Level 1
    www.w3.org/.../

    Browser support: - Chrome 57, Android Browser, 56, Chrome for Android 57
    Firefox Beta developer.mozilla.org/.../Credential_Management_API
    Edge Planned developer.microsoft.com/.../
    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 credential-management-sample.appspot.com/