This thread is resolved. Here is a description of the problem and solution.
Problem:
The customer tried to render embedded media for Facebook and Twitter posts using Toolset's Embedded Media custom post type, but the links were not displaying as intended. Only a simple link appeared, instead of the expected embedded content.
Solution:
We found that recent policy changes by Facebook and Twitter affect automatic embedding capabilities in WordPress. Toolset utilizes WordPress's built-in embedding function, which can no longer directly handle Facebook and Twitter embeds due to these updates. To embed content from these platforms, users need to retrieve the embed code manually:
• Twitter: Use Twitter’s Publish tool for the embed code. The embed code can be placed in a WYSIWYG custom field in Toolset for proper display: https://publish.twitter.com/
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.
Tell us what you are trying to do? Make social media links (X and Facebook) render when using the Embedded Media custom post type
Take a look at the screenshot, these two lines were two different embedded media blocks and neither of them rendered correctly. I had to highlight them because the text was not legible unless I did (this is just a formatting problem, separate from the issue I am writing about).
Can you tell me why these two links were not rendering correctly, they should have shown the Facebook post and the X post on that screen.
I deleted the blocks from that page, so I do not have a URL to show you.
Thank you for contacting us and I'd be happy to assist.
I've performed some tests on my website, but couldn't reproduce this behavior. Looks like something specific to your website is involved.
When you use the visual form editor and drag-n-drop the embedded media field, do you see any error in the browser's console, on the screen or in the server's error logs?
I installed QUERY MONITOR and launched it on the page with the problem. I have no idea what it is showing me so I recorded a video of every QM screen (I was mostly looking for red items). Can you take a look and let me know what I should do?
Thank you for trying those steps and sharing the video.
I would like to request temporary access (wp-admin and FTP) to your site to take better look at the issue. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.
Our Debugging Procedures
I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to backup the site before providing us access. In the event that we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site.
- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this: hidden link
Please, let me know if you need any additional details. Have a nice day.
Thank you for providing access and the detailed information.
I conducted tests, including on a fresh Toolset installation in a sandbox, and found that while embedded media like YouTube videos work as expected, Facebook and Twitter links do not render as embeds. This issue arises because Toolset leverages WordPress’s built-in embedding functionality, which is affected by recent changes from some social media platforms.
Facebook and Twitter have updated their embedding policies, which now restrict certain automatic embedding capabilities. As a result, WordPress cannot directly embed these URLs without specific embed code. If you test these URLs within the WordPress block editor using the default Embed block, you’ll likely see the same behavior—only displaying a link rather than the full embed.
To embed Facebook and Twitter content, you can retrieve the necessary embed code directly from each platform:
1. Facebook: Go to the hidden link page to generate an embed code. Copy the generated iframe code.
2. Twitter: Twitter no longer supports oEmbed directly but provides an embed code for each tweet. Visit hidden link to get the embed code.
Once you have the embed code:
- Add a WYSIWYG custom field in Toolset where you can paste these iframe codes.
- Use this WYSIWYG field to display the embeds in your Content Templates or page templates.
This approach should allow you to display Facebook and Twitter content reliably on your site.
Please let me know if you need further assistance with implementing this solution.
Hi Mateus! Thank you so much for looking into this and all the effort you put into this problem. That really sucks that you can't embed Twitter post on Facebook post anymore 🙁