Toggle Side Panel

  • Home
  • Articles
    • All Articles
    • Blogs
    • Videos
    • Infographics
  • 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
  • Marketplace
  • Advertise With Us
  • Contact Us
  • Discussions
More options
    Sign in Sign up
    • Home
    • Articles
      • All Articles
      • Blogs
      • Videos
      • Infographics
    • 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
    • Marketplace
    • Advertise With Us
    • 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 9 years, 7 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

    application solution

    Popular Salesforce Blogs

    Steps to Secure Transaction using Transaction Security in Salesforce

    Steps to Secure Transaction using Transaction Security in Salesforce

    Blog in Others

    Hi All! Here we will learn how to provide security in Salesforce when you perform any event of transaction like data export or import and…

    Authentication Configuration, Custom Transaction Security, Events, Export Data, Force.com
    Parul Sep 25, 2018
    5,223  Views

    Major Benefits of Hiring a Salesforce Consultant

    Blog in Salesforce Consultant

    What is the Market Share of Salesforce? Salesforce's global market share and revenue continue to increase year after year. The company holds a market share…

    Application, Assistance, Benefits, Business Needs, Buying Behavior
    Emorphis May 22, 2023
    1,591  Views
    Duplicate Data

    Why Duplicate Data Is a Problem | Salesforce Guide

    Blog in Data

    In the event that you follow the Optimize Sales Features for Lightning Experience trail, you know the Salesforce administrator, Maria Jimenez, at Ursa Major. She…

    Business Accounts, Contact Record, Copy Management Tools, Copy Records, Copy Records in Salesforce
    Mansi Tyagi Feb 9, 2022
    2,850  Views

    Popular Salesforce Videos

    What are APEX Environments? | Learn Salesforce Development

    What are APEX Environments? | Learn Salesforce Development

    Video in Salesforce Apex, Salesforce Training

    In this video, Shrey explained the Apex Environments. He covered answers for the following questions while explaining: What are the APEX Environments? Different types of…

    Salesforce Training, Salesforce Tutorial, Salesforce Development, Salesforce Apex, salesforce
    Prafull Jul 2, 2021
    1,413  Views
    Welcome to the New World of Data Collection | Salesforce

    Welcome to the New World of Data Collection | Salesforce

    Video in Others

    Secure data collection built for your needs. With FormAssembly, your organization can streamline outdated processes and power important business initiatives. Click the link below to…

    Salesforce Training, Salesforce Tutorial, Salesforce Administration, Salesforce Developer, Salesforce Integration
    S2 Apr 1, 2022
    2,075  Views
    How to Focus on Report Results in Salesforce Console | Salesforce

    How to Focus on Report Results in Salesforce Console | Salesforce

    Video in Others, Salesforce Stories

    When you work with reports in a fast-paced Salesforce Console environment, every extra click or focus change can slow you down. Now a streamlined console…

    Salesforce Reports, salesforce, Salesforce Video, Salesforce Learning, Report Results
    Rupal Kakkar Sep 16, 2020
    1,627  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®.

    Try AuditMyCRM - It is a Salesforce CRM Audit tool which comprehensively scans your Salesforce org and gives you the list of errors or warnings you need to take care of.
    We use cookies to enhance your browsing experience. Please see our privacy policy if you'd like more information on our use of cookies.