You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
WhatsApp/Telegram/Slack support for prerendered pages not working #168
A client has requested that If we can do something to improve the link previews in WhatsApp, Telegram, Slack and so on.
We're using prerender-node 2.7.4 and prerender server 5.2.0. According to what we've been checking, prerender-node added the WhatsApp user agent in 2.2.0 version.
Therefore, previews should work properly in WhatsApp out-the-box but they don't. Any suggestion?
Thanks!
Edit
Updated pretender-node to 3.2.1 and prerender server to 5.4.5 but it still doesn't serve the dynamic generated preview to WhatsApp.
Can you send us an email at support@prerender.io with your website and how you've set up the Prerender.io middleware so we can run some tests? From what you sent, it sounds like it should be working properly.
@thoop I encounter a similar situation where WhatsApp OSX App (WhatsApp/0)generates a preview nice and quick (8-10ms) but WhatsApp mobile (IOS) (WhatsApp/2) and WhatsApp Web (WhatsApp/2) does the crawling but now preview is displayed. The url is tested with FB for og: compliancy. This is the log from Prerender server. It looks like only WhatsApp/0 user agent is returning content ... or so...
I'll post here the explanation @thoop gaves me when we were discussing this topic by email:
Hi Ruben,
I'm not sure if WhatsApp support the ?escaped_fragment= URLs so if you share on WhatsApp, do they always show the info for your homepage? If so, you will need to remove the #! from your URLs in > order to get things working. Google and Bing are also not requesting the ?escaped_fragment= URLs anymore so we've added their user agents to be checked by the middleware as well.
Indeed, our project was working using the !# in the URLs. Now, we're migrating the project to a new MEAN scaffolding with push state URLs.
Facebook and Twitter seem to still access ?escaped_fragment= URLs but you will want to move to html5 push state URLs if possible since everyone seems to be moving away from that.
Activity
thoop commentedon Dec 26, 2018
Can you send us an email at support@prerender.io with your website and how you've set up the Prerender.io middleware so we can run some tests? From what you sent, it sounds like it should be working properly.
paulincai commentedon Mar 20, 2019
@thoop I encounter a similar situation where WhatsApp OSX App (WhatsApp/0)generates a preview nice and quick (8-10ms) but WhatsApp mobile (IOS) (WhatsApp/2) and WhatsApp Web (WhatsApp/2) does the crawling but now preview is displayed. The url is tested with FB for og: compliancy. This is the log from Prerender server. It looks like only WhatsApp/0 user agent is returning content ... or so...
rubenjimenez commentedon Mar 21, 2019
I'll post here the explanation @thoop gaves me when we were discussing this topic by email:
Indeed, our project was working using the !# in the URLs. Now, we're migrating the project to a new MEAN scaffolding with push state URLs.
More interesting things @thoop explained: