Exemplo n.º 1
0
        public void OnCompleted(Org.Json.JSONObject json, GraphResponse response)
        {
            string          data   = json.ToString();
            FacebookProfile result = JsonConvert.DeserializeObject <FacebookProfile>(data);

            _userService.SetUser(result);

            if (FacebookProfileHelper.IsRegistred())
            {
                StartActivity(typeof(TabPageView));
            }
        }
Exemplo n.º 2
0
        private void SetLoginButton()
        {
            LoginButton button = new LoginButton(this);

            button.SetReadPermissions(ConstantHelper.permissions);
            button.RegisterCallback(_callBackManager, this);

            if (FacebookProfileHelper.IsRegistred())
            {
                SendRequest();
            }
            button.CallOnClick();
        }