Facebook.IOSFacebook.OnRequestComplete C# (CSharp) Method

OnRequestComplete() public method

public OnRequestComplete ( string msg ) : void
msg string
return void
        public void OnRequestComplete(string msg)
        {
            int delimIdx = msg.IndexOf(":");
            if (delimIdx <= 0)
            {
                FbDebug.Error("Malformed callback from ios.  I expected the form id:message but couldn't find either the ':' character or the id.");
                FbDebug.Error("Here's the message that errored: " + msg);
                return;
            }

            string idStr = msg.Substring(0, delimIdx);
            string payload = msg.Substring(delimIdx + 1);

            FbDebug.Info("id:" + idStr + " msg:" + payload);

            OnFacebookResponse(idStr, new FBResult(payload));
        }
        #endregion