SFSocialMediaComponent is a customizable Lightning Web Component (LWC) for Salesforce that allows you to display a set of social media icons linking to your organization's profiles. It's ideal for Experience Cloud sites or internal Lightning pages where branding and connectivity to your online presence are essential.
- Displays social media icons for major platforms
- Supports dynamic URL assignment via component properties
- Opens links in a new tab (configurable)
- Simple SLDS-based responsive layout
- Optionally includes custom social links and icons
-
Clone the repository:
git clone https://github.com/Harrymato/SFSocialMediaComponent.git
-
Navigate into the project directory and push the component to your Salesforce org:
sfdx force:source:deploy -p force-app
-
Add the
c-s-f-social-media-componentto a Lightning page using the Lightning App Builder.
| Property | Type | Description |
|---|---|---|
linkedinField |
String | URL to your LinkedIn page |
twitterField |
String | URL to your Twitter profile |
facebookField |
String | URL to your Facebook page |
instagramField |
String | URL to your Instagram profile |
githubField |
String | URL to your GitHub |
redditField |
String | URL to your Reddit Account |
openInNewTab |
Boolean | Whether to open links in a new tab (default: true) |
Embed the component on a Lighting Record Page (Account, Contact or Lead) and provide the field API names for the corresponding text fields.
force-app/main/default/lwc/sFSocialMediaComponent/
├── sFSocialMediaComponent.html
├── sFSocialMediaComponent.js
├── sFSocialMediaComponent.js-meta.xml
└── sFSocialMediaComponent.css (optional)
MIT License
© 2025 Harrison Thomas
Pull requests are welcome! Please create an issue first for major changes, including new platform icons or behavior requests.
For questions, contact @Harrymato on GitHub.