How to share a text on facebook from any URL

0

Good morning everyone.

I have a Widget written in JAVASCRIPT, which can be integrated into any of our clients' websites and allows us to perform actions through this Widget on our page.

To clarify a little more. We have the JS widget on our server that we call origin.net and the client can insert, through a call, the script on his Web that we will call it client.com with a code similar to this:

<script type="text/javascript" src="origen.net/wwidget.js?id=2ZVdFF5UWM3cmVXR3IxVWZ2OHUrUVpXSkxFQ"></script>

All script execution works correctly. The problem comes when I want the user to be able to use the SHARE WITH FACEBOOK button defined within the Widget. This button only has to publish a simple text and the client's URL.

Facebook forces to create an application ID, which I have done and forces to define the domain or domains from where they can be shared. It is not possible to define within Facebook each and every one of the domains where customers will put the Widget and if I share from the client's Web, Facebook launches this error:

  

Unable to load the URL: The domain of this URL is not included in the domains of the application. In order to load this URL, add all the domains and subdomains of your application in the "Application domains" field in the application settings.

I tried to create a page on my server, source.net, to show the information I want and share it on Facebook, but all the URLs and information that are shared on Facebook go to our server and I want them to go to the Web of the customer.

Do you know any form or configuration to share anonymously a simple text to Facebook, with a url of the client and that does not give me the error?

Does anyone have an idea of how to create a share that sends the information to Facebook without being a URL to a Web (I just want the client's text and url as additional information)?

Thank you in advance.

    
asked by Pau Vidal 28.06.2017 в 13:37
source

0 answers