I’ve been trying to add share buttons to my page (http://markcarter.life) using addthis.com and sharethis.com. I got stuck because Wix does not seem to support Javascript. The issue is that when I use the share button to Facebook, for example, it doesn’t pick up a featured image or the correct URL. See picture attached. (Instead of a nice preview of the page I’m sharing, it says www-markcarter-life.fileusr.com".
I’ve used both the native HTML add tool and one I downloaded from the Wix app store called HTML iFrame/Embed.
Hi,
Firstly, note that Wix Code supports Javascript.
As for the FB share button, instead of using external APIs, you can simply add a Facebook Share button .
As for outdated info and thumbnail on Facebook, please follow the instructions of here .
It doesn’t need to be debugged. When you grab the URL from the address bar and share manually to Facebook, it has no problems. It is only when using these buttons that there is a problem.
When I installed a basic HTML share button (with no Javascript) it shared correctly (if not very beautifully).
Allow me to elaborate, we currently allow two methods of adding code to a Wix site:
Option 1: HTML Code widget - Creates an iframe within your Wix site allows you to copy and paste code snippets from third party sites.
Supports HTML/JS/CSS, however due to the nature of iframes it can only interact with elements within the iframe.
For a complete list of guidelines and limitations please see here
Option 2: Wix Code: Allows you to interact with your site elements using Javascript code.
Note that it does not grant total access to the backend JS files of your Wix site.
These JS files are auto generated when you edit your site.
Feel free to refer to Wix code api , tutorials and examples for a little bit of ‘inspiration’ .
You are welcome to post questions you might have regarding Wix code below.
It’s been two days since I am trying to make these ShareThis buttons correctly working but after using all the solutions given by ShareThis and on corvid it is still not working which is quite annoying. Every time I try to share a page or an image the shared link is showing “fileuser dot com” after my web page name. I have no idea now what should I do? Please help if anybody knows about it.
Please add your own issue into a new post instead of bumping up an old post. Explain what you are trying to do, what works, and what doesn’t. Also, add any code in a code block as stated in the Forum Guidelines.