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

    Apex Intention Actions-%0AThe Next Frontier for%0AApex Completions%0A

    Apex Intention Actions: The Next Frontier for Apex Completions

    Blog in Salesforce Apex

    Idea from IDEa Recently, I needed to code a little tool in Java. The last time I coded something in Java was in high school,…

    Autocompletion, IDE, IDEa, intention, MavensMate
    Nikita Oct 6, 2017
    6,824  Views

    Continuous Integration and Deployment for Salesforce

    Blog in Salesforce

    Salesforce continues to be at the core of business operations for companies large and small around the world. It is an incredibly powerful tool, but…

    Build Trigger Type, Business Customers, Business Operations, CI Triggers, CI/CD Solution
    Flexagon Apr 8, 2022
    3,298  Views

    How Partner Portals Can Help Computer Hardware Businesses Gain a Competitive Advantage?

    Blog in Salesforce

    The most popular computer business in the world started with and because of a partnership. Steve Wozniak would have happily given away anything he made…

    Benefits, Better Decision Making, Brand Awareness, Collaboration, Communication
    CRMJetty May 30, 2023
    3,031  Views

    Popular Salesforce Videos

    Getting Turn by Turn Directions Between Scheduled Events | Salesforce Maps Mobile

    Getting Turn by Turn Directions Between Scheduled Events | Salesforce Maps Mobile

    Video in Salesforce Training

    Watch this video to learn how to get turn-by-turn directions between scheduled events in Salesforce Maps Mobile. 00:00 - Introduction 00:19 - Access your Schedule…

    Salesforce Training, Salesforce Tutorial, salesforce, Salesforce Video, salesforce record
    Prafull Dec 21, 2021
    2,423  Views
    Winter '21 Release | Salesforce Tutorial Video

    Winter '21 Release | Salesforce Tutorial Video

    Video in Others, Salesforce Training

    The Sandbox Preview window for Winter '21 begun on September 11, 2020. You must have an active sandbox on a preview instance before then to…

    Salesforce Training, Salesforce Video, Salesforce Learning, Salesforce Release, Salesforce Tutorial Video
    Stimulus Consulting Oct 13, 2020
    1,564  Views
    GDPR & Telephony Consenting & Forgetting In Salesforce

    GDPR & Telephony Consenting & Forgetting In Salesforce

    Video in Others, Sales

    The big noise in the market right now is GDPR, the General Data Protection Regulation. This is the new European rule for data protection which…

    salesforce, CRM, CTI, phone, telephone
    Ian Mar 20, 2020
    2,146  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.