Skip Navigation

[Resolved] Social media sharing issues

This thread is resolved. Here is a description of the problem and solution.

Problem: The Pinterest share link I have generated does not work correctly, and the Facebook link does not show all the desired information on the timeline.

Solution: Follow the Pinterest documentation to format a pin link, and use Yoast SEO or another SEO plugin to specify which details to include on FB links.

Relevant Documentation: https://developers.pinterest.com/docs/widgets/save/
https://developers.facebook.com/docs/sharing/webmasters/

This support ticket is created 6 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 3 replies, has 2 voices.

Last updated by JorgeE7101 6 years, 6 months ago.

Assisted by: Christian Cox.

Author
Posts
#572853
Screen Shot 2017-09-23 at 12.05.46.png

Hello. I'm having issues with the social media sharing buttons.

What I've done was to grab the site source code:

			<a data-pin-do="none" target="_blank" href="<em><u>hidden link</u></em>"><i class="fa fa-pinterest"></i><span class="dt-share">Pinterest</span></a>

And I was replacing it with Toolset shorts codes. Worked well for google plus and twitter.

However, it doesn't work with pinterest.

I've tried this for pinterest:


<a data-pin-do="none" target="_blank" href="<em><u>hidden link</u></em> src="[wpv-post-featured-image output="description"]><i class="fa fa-pinterest"></i><span class="dt-share">Pinterest</span></a>

When I tried to share it with Pinterest it gives me this error:

Parameter 'image_url' (value http:<img src=) is not a valid URL format.

For Facebook it doesn't load the image or the custom link, just a general link. I used this code for Facebook:


<a target="_blank" href="<em><u>hidden link</u></em>"><i class="fa fa-facebook"></i><span class="dt-share">Facebook</span></a>

Would you be able to help me with this?

Thanks.

Note: I don't have any reference of short codes from my theme to use.

#573034

Hi I'll try to help.

Parameter 'image_url' (value http:<img src=) is not a valid URL format.

What are you trying to use as the image for your button? The media attribute should include the URL of a Pinterest logo, but it appears that your code includes something else. There are several types of buttons supported here, with different images for each one:
hidden link

For Facebook it doesn't load the image or the custom link, just a general link.
Actually, the information shown in a timeline / newsfeed post on Facebook isn't defined by the link you create. It's defined by some codes that are placed on each page of your site, called Open Graph meta tags. Without the tags, Facebook doesn't know what to use as content, which image to use, etc. Toolset isn't designed to help you accomplish this. SEO plugins like Yoast offer the ability to customize these values per page or post, so you can define Facebook meta information on a post-by-post basis.

#573257

Hi Christian,

Thanks for your reply. Thanks for the Facebook tip. I have checked and Yoast is enabled for Open Graph meta, but it's not working. But I'll try to find the answer why.

Regarding Pininterest I've managed to make it work with this:

<a data-pin-do="none" target="_blank" href="<em><u>hidden link</u></em> output="url"]&description=[wpv-post-title]"><i class="fa fa-pinterest"></i><span class="dt-share">Pinterest</span></a>
#611379

Will re-open issue with another ticket.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.