ASPSnippets Facebook API login Error: Object reference not set to an instance of an object

Last Reply one year ago By Andrea

Posted one year ago


I have implemented FB login by following your article.

It's working fine for the first time.. 

If user is already logged in to Facebook in the same browser, then Login is not working.. An error is occured. Please help me to solve this. The error is given below.

System.NullReferenceException: Object reference not set to an instance of an object.
   at ASPSnippets.FaceBookAPI.FaceBookConnect.?12?(WebException ?26?)
   at ASPSnippets.FaceBookAPI.FaceBookConnect.?8?(String ?23?)
   at ASPSnippets.FaceBookAPI.FaceBookConnect.Fetch(String ?16?, String ?17?)
   at Login.Page_Load(Object sender, EventArgs e)
   at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

You are viewing reply posted by: Andrea one year ago.
Posted one year ago
Hi @manunadh,
Please try the following

ASPSnippets FaceBook API: Login with FaceBook using Popup Window

It might help you.

Cheers Andrea.