Toggle Side Panel

  • Blogs
  • Consultants
    • Salesforce Product Expertise
      • Top Salesforce ConsultantsTop Salesforce Consultants
      • Marketing Cloud ConsultantsMarketing Cloud Consultants
      • Service Cloud ConsultantsService Cloud Consultants
      • Experience Cloud ConsultantsExperience Cloud Consultants
      • Analytics Cloud ConsultantsAnalytics Cloud Consultants
    • Salesforce Industry Expertise
      • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
      • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
      • Health Cloud ConsultantsHealth Cloud Consultants
      • Commerce Cloud ConsultantsCommerce Cloud Consultants
      • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
    • Salesforce Experts by Location
      • USATop Salesforce Consultants in USA
      • IndiaTop Salesforce Consultants in India
      • AustraliaTop Salesforce Consultants in Australia
      • United KingdomTop Salesforce Consultants in UK
      • CanadaTop Salesforce Consultants in Canada
  • Webinars
  • Contact Us
  • Discussions
More options
    Sign in Sign up
    • Blogs
    • Consultants
      • Salesforce Product Expertise
        • Top Salesforce ConsultantsTop Salesforce Consultants
        • Marketing Cloud ConsultantsMarketing Cloud Consultants
        • Service Cloud ConsultantsService Cloud Consultants
        • Experience Cloud ConsultantsExperience Cloud Consultants
        • Analytics Cloud ConsultantsAnalytics Cloud Consultants
      • Salesforce Industry Expertise
        • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
        • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
        • Health Cloud ConsultantsHealth Cloud Consultants
        • Commerce Cloud ConsultantsCommerce Cloud Consultants
        • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
      • Salesforce Experts by Location
        • USATop Salesforce Consultants in USA
        • IndiaTop Salesforce Consultants in India
        • AustraliaTop Salesforce Consultants in Australia
        • United KingdomTop Salesforce Consultants in UK
        • CanadaTop Salesforce Consultants in Canada
    • Webinars
    • Contact Us
    • Discussions
    Close search

    Activity › Forums › Salesforce® Discussions › Can we update profile picture of user on onCreateUser()?

    Tagged: Chatter, ConnectApi, Profile Picture, Salesforce Apex, Salesforce Login, Salesforce SOQL, Social ProfileViewer

    • Salesforce® Discussions

      Can we update profile picture of user on onCreateUser()?

      Posted by Nitish on April 30, 2016 at 5:05 PM

      I use ConnectApi to modify picture of User in custom salesforce login (Facebook, Twitter...), like this:

      global void updateUser(Id userId, Id portalId, Auth.UserData data){
      ...
      ConnectApi.ChatterUsers.setPhoto(communityId, userId, fileUpload);
      ...
      }

      Anyone please help.

      Gourav replied 10 years, 5 months ago 2 Members · 1 Reply
      • Chatter
      • ConnectApi
      • Profile Picture
      • Salesforce Apex
      • Salesforce Login
      • Salesforce SOQL
      • Social ProfileViewer
    • 1 Reply
    • Gourav

      Member
      June 13, 2016 at 2:07 PM

      Crate a method to updateAvatar(...) in this method you can use "ConnectApi.ChatterUsers.setPhoto method..." to update chatter avatar by twitter/fb avatar.

      Hope this will help you!

    Log In to reply.

    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me

    Popular Salesforce Blogs

    Report Formats in Salesforce

    Types of Report Formats in Salesforce - All You Need to Know

    Blog in Salesforce, Salesforce Products

    What are the Report Formats in Salesforce? A Salesforce report is a list of information produced dependent on predefined standards. They can be displayed in…

    Arrangements, Bucketing Field, Bundle Records, Business, Charts
    Shweta Choudhary Aug 26, 2021
    5,975  Views

    Twilio Integration With Salesforce Part I - How to Send A Message From Salesforce to a Phone Number

    Blog in Salesforce integration

    This blog is the first part of  Two part blog on Integrating your Twilio Account with Salesforce. In this blog, I will be displaying how…

    Developer Console, Http, HttpRequest, HttpResponse, PaaS
    Parantap Sep 16, 2019
    18,440  Views
    improve Apex Code Unit using Salesforce Best practices

    Improve your Apex Code Unit | Salesforce Best Practices

    Blog in Salesforce Apex

    In this blog, we are going to discuss the best practice of Apex. Apex code is used to write custom business logic.  in any language,…

    Best Practices, Bulk Action, Bulkifying, Code Reusable, Custom Business Logic
    NAVDITA DAHIYA Nov 28, 2022
    3,021  Views

    Popular Salesforce Videos

    How To Reset Salesforce Security Token?

    How To Reset Salesforce Security Token?

    Video in Salesforce Security

    Salesforce security token is a case-sensitive unique key that is used to work with Salesforce API. In this video I will show you how to…

    Salesforce Development, Salesforce Security, Salesforce Developer, Security And Access, Force.com Tutorial
    Pooja Oct 8, 2016
    2,211  Views
    Salesforce Lightning Process Builder: Lightning Process Builder Basics

    Salesforce Lightning Process Builder: Lightning Process Builder Basics

    Video in Lightning, Salesforce Training

    The Salesforce Lightning Process Builder is a new workflow tool that helps anyone in your company quickly and easily automate business processes such as employee…

    Salesforce Apex, Salesforce Developer, Salesforce Lightning, Salesforce Administrator, Cloud Computing
    Abhay Feb 14, 2018
    2,164  Views
    Understanding Future Method | Difference Between Asynchronous and Synchronous Apex in Salesforce

    Understanding Future Method | Difference Between Asynchronous and Synchronous Apex in Salesforce

    Video in Salesforce Apex, Salesforce Training

    In this video, Shrey explained Synchronous Apex and Asynchronous Apex in a simple way. He also explained the importance of the Future method in Salesforce.…

    Salesforce Training, Salesforce Administrator, salesforce, Salesforce Video, Salesforce Learning
    Abhishek Mar 2, 2021
    4,890  Views
    Footer Forcetalks logo

    support@forcetalks.com

    • twitterx

    Quick Links

    Advertise with Us

    Salesforce® Articles

    Dreamforce 2023

    Top Salesforce® Bloggers 2023

    Top Salesforce Consultants

    Get Listed

    Company

    Contact Us

    About Us

    Privacy Policy

    Terms & Conditions

    InsightHub

    Salesforce Blogs

    Salesforce Videos

    Salesforce Groups

    Salesforce Jobs

    © 2026 - Forcetalks ● All Rights Reserved

    Salesforce® is a trademark of Salesforce® Inc. No claim is made to the exclusive right to use “Salesforce”. Any services offered within the Forcetalks website/app are not sponsored or endorsed by Salesforce®.

    We use cookies to enhance your browsing experience. Please see our privacy policy if you'd like more information on our use of cookies.