Object reference not found error in Facebook login webpart

Sofia Khatoon asked on March 13, 2017 18:26

I am getting error using FacebookConnect web part in the CMS 8.2 site. I get the following error in the logs

Message: Object reference not set to an instance of an object.

Exception type: System.NullReferenceException Stack Trace: at CMS.Base.StringExtensions.StartsWithCSafe(String value, String str, Boolean ignoreCase) at CMS.Helpers.URLHelper.CheckPrefix(String& path, String prefix, Boolean removePrefix) at CMS.Helpers.URLHelper.CheckPrefixes(String& path, String[] prefixes, Boolean removePrefix) at CMS.Membership.AuthenticationHelper.IsAuthenticationRedirect() at CMS.Membership.MembershipHandlers.HandleAuthenticationRedirect(Object sender, EventArgs e) at CMS.Base.AbstractHandler.CallEventHandler[TArgs](EventHandler1 h, TArgs e) at CMS.Base.AbstractHandler.Raise[TArgs](String partName, List1 list, TArgs e, Boolean important) at CMS.Base.SimpleHandler2.RaiseExecute(TArgs e) at CMS.Base.SimpleHandler2.RaiseExecute(TArgs e) at CMS.Base.SimpleHandler`2.StartEvent(TArgs e)

Recent Answers


Trevor Fayas answered on March 13, 2017 18:37

What hotfix are you on? There were some api changes in Facebook that were fixed in 8.2.28, and possibly other changes, that would be a good place to start.

0 votesVote for this answer Mark as a Correct answer

Sofia Khatoon answered on March 13, 2017 18:49 (last edited on March 13, 2017 22:32)

Thank you Trevor. We are using CMS 8.2.50 I believe the web part has a bug around this line

string confirmToken = QueryHelper.GetString(CONFIRMATION_URLPARAMETER, null);

Please confirm if this is the issue.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.