Beispiel #1
0
 private void HandleFacebookLoginError(FBError errorInfo)
 {
     if (errorInfo != null)
     {
         Logger.Log($"Could not login via Facebook. Error code: {errorInfo.Code}. Message: {errorInfo.Message}");
     }
 }
Beispiel #2
0
        public void parseErrorFromQueryString()
        {
            FBError err = FBError.FromUri(new Uri(FBCanceledRequestResponse));

            Assert.IsNotNull(err);
            Assert.AreEqual(err.Code, 4201);
            Assert.AreEqual(FBCanceledRequestMessage, err.Message);
        }
Beispiel #3
0
        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);
        }
Beispiel #4
0
 public void HandleError(
     FBError err
     )
 {
     //Display error message here
 }
Beispiel #5
0
 public void HandleError(
     FBError err
     )
 {
     //Display error message here
 }