function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Danny IncompanyDanny Incompany 

Public Site Integration with existing third party hosting

Hi,

Good afternoon and hope everyone is fine. Blessings for this year. I have a question that I have been trying to resolve since few months ago and not able to find a workable solution.

Basically we have a site, html and angular site, which is a site where you can find properties. This properties come from salesforce object, along with other objects. 

In order to display salesforce objects in a public site, in the past we have created visualforce pages, with their corresponding classes, we attach the visualforce page to a public site and configure a custom domain. This ok when you are going to have ALL site content in salesforce.

But what happens when you have an existing HTML site, hosted in a CMS (content management system), where users can have access to things like blogs, a third party hosting. The only way to integrate some content from salesforce to an existing site in a third party hosting, is using a <iframe src="http://mysitehostedinsalesforce.com"></iframe>, and use this inside an HTML page, however this is not a good practice as sites may become slow, and also google does now crawl iframes, or at least it takes ranking down.

We have tested several ways, we tested on using REST API, to read data from salesforce and display it in a public site, however this is not a good solution as public visitors may need to login with a salesforce licence user in order to view content in the public site. Also we have tested with Connected Apps, however seems it is not possible, or at least after trying, we are not sure what is the way to go.

From Salesforce perspective and best practices, what is the best way to achieve this? Which salesforce functionality will help up us finish this project.