Пример #1
0
        void mProfileTracker_mOnProfileChanged(object sender, OnProfileChangedEventArgs e)
        {
            if (e.mProfile != null)
            {
                GraphRequest request = GraphRequest.NewMeRequest(AccessToken.CurrentAccessToken, this);

                Bundle parameters = new Bundle();
                parameters.PutString("fields", "email");
                request.Parameters = parameters;
                request.ExecuteAsync();

                nom.Text    = e.mProfile.FirstName;
                prenom.Text = e.mProfile.LastName;
                pseudo.Text = e.mProfile.Name;
            }

            else
            {
            }
        }
        void mProfileTracker_mOnProfileChanged(object sender, OnProfileChangedEventArgs e)
        {
            if (e.mProfile != null)
            {
                GraphRequest request = GraphRequest.NewMeRequest(AccessToken.CurrentAccessToken, this);

                Bundle parameters = new Bundle();
                parameters.PutString("fields", "email");
                request.Parameters = parameters;
                request.ExecuteAsync();

                nom.Text = e.mProfile.FirstName;
                prenom.Text = e.mProfile.LastName;
                pseudo.Text = e.mProfile.Name;
            }

            else
            {
               
            }
        }