Connect with Social Accounts (Facebook,twitter etc) and change profile picture

GSInsanGSInsan ✭✭USMember ✭✭

Hi,
We are creating a app that we need to implement all Social Account and change the profile picture from app. we are added "Xamarin.Auth" components and using a "OAuth2Authenticator" service
after "auth.Completed += async (object sender, AuthenticatorCompletedEventArgs ee) => {}" we get request for user info like "var request = new OAuth2Request ("GET", new Uri ("https://graph.facebook.com/me"), null, ee.Account);"
above request we received user info, but we did not find any result that change a profile picture Social account.

please help...
Thanks

Posts

  • Joan.2191Joan.2191 USMember

    if you call the facebook api with this sentence {user-id]/picture, you can get the profile picture of the user.

    In this case, I use (fb.GetTaskAsync("me").ContinueWith(t => ...) to get the user info, you could try to change string "me" for the "{user-id}/picture". This method is in the facebook api for xamarin.

  • GSInsanGSInsan ✭✭ USMember ✭✭

    Thanks for reply.

    Actually we need to update the facebook user profile picture from app (Xamarin forms ios,android).

    Thanks

Sign In or Register to comment.