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, 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

    application solution

    Popular Salesforce Blogs

    Salesforce for Manufacturing to Optimize Productivity

    Blog in Salesforce

    The manufacturing sector has witnessed a complete, factory-wide digital makeover. The industries have leveraged technologies like artificial intelligence (AI), robotics, and blockchain. Salesforce for manufacturing…

    Artificial Intelligence, Blockchain, Closing Deals, Contact Information, Creating Quotes
    360 Degree Jul 13, 2021
    1,820  Views

    No Code Salesforce and Xero Integration

    Blog in Salesforce

    For expanding organizations, Xero is an intuitive cloud-based accounting solution. Invoices, paychecks, Financial consensus, Purchasing, Expenses, Bookkeeping, and more are now all manageable by businesses…

    Authentication Provider, Automation, Bank Feeds, Bank Relationships, Bookkeeping
    Apphienz May 15, 2023
    1,031  Views
    Salesforce Commerce Cloud

    Salesforce Commerce Cloud Explained: Pricing, Hosting, Performance, Scalability

    Blog in Salesforce Cloud Platform

    Nasdaq forecasts that 95% of purchases will be made online by 2040. Statistics also say that the global e-commerce market is expected to reach $18.89 trillion by 2027, compared to $5…

    AppExchange, B2B and B2C, B2B Commerce, Bloud-based Software, Business Needs
    Brimit Oct 31, 2022
    1,768  Views

    Popular Salesforce Videos

    How to Become a Salesforce Admin | 6-step Guide

    How to Become a Salesforce Admin | 6-step Guide

    Video in Salesforce Admin

    Salesforce administrators are the backbone of any company that uses Salesforce. They are responsible for maintaining the Salesforce platform to ensure it meets the needs…

    Salesforce Administrator, Certified Salesforce Admin, Salesforce Admin, Salesforce Administrator Preparation, Become A Salesforce Administrator
    ENWAY Sep 5, 2025
    46  Views
    5 Mind-Blowing New Salesforce Marketing Cloud Releases

    5 Mind-Blowing New Salesforce Marketing Cloud Releases

    Video in Marketing, Salesforce Cloud Platform

    The Statist worldwide marking survey reports- “Almost 4 billion world population is digitally active, and 2.14 of them are shopping online.” In this entire scenario,…

    Artificial Intelligence, Salesforce Marketing Cloud, Customer Engagement, Internet of Things, Salesforce Video
    Algoworks Feb 23, 2021
    1,983  Views
    Salesforce Lightning Events Tutorial I Building Component Events (Single Component)

    Salesforce Lightning Events Tutorial I Building Component Events (Single Component)

    Video in Lightning

    This Salesforce Lightning Events Tutorial will make you learn how to register an event in Salesforce Lightning and handle that event in the source component…

    Salesforce Lightning Components, Easy Way To Learn Salesforce, How To Learn Salesforce Lightning, Best Salesforce Tutorials, Free Salesforce Tutorials
    Nauman Jan 7, 2019
    2,269  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

    © 2025 - 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.