private void HandleFacebookLoginError(FBError errorInfo) { if (errorInfo != null) { Logger.Log($"Could not login via Facebook. Error code: {errorInfo.Code}. Message: {errorInfo.Message}"); } }
public void parseErrorFromQueryString() { FBError err = FBError.FromUri(new Uri(FBCanceledRequestResponse)); Assert.IsNotNull(err); Assert.AreEqual(err.Code, 4201); Assert.AreEqual(FBCanceledRequestMessage, err.Message); }
public void parseErrorFromJson() { FBError e = FBError.FromJson(ErrorObjectJson); Assert.IsNotNull(e); Assert.IsNotNull(e.Message); Assert.IsNotNull(e.Type); Assert.IsNotNull(e.ErrorUserTitle); Assert.IsNotNull(e.ErrorUserMessage); Assert.AreEqual(e.Message, ErrorJsonMessage); Assert.AreEqual(e.Type, ErrorJsonType); Assert.AreEqual(e.Code, ErrorJsonCode); Assert.AreEqual(e.Subcode, ErrorJsonSubcode); Assert.AreEqual(e.ErrorUserTitle, ErrorJsonTitle); Assert.AreEqual(e.ErrorUserMessage, ErrorJsonUserMessage); }
public void HandleError( FBError err ) { //Display error message here }