![]() You can try to check the logs of the Lambda function to see if there are any errors that could cause the problem.įinally, you can also try using another caching option instead of CloudFront, like using a CDN (Content Delivery Network) such as Cloudflare or Akamai, that might work better with your use case. display on social media handles like Facebook, Twitter, LinkedIn, etc. Every web page has meta tags, but they’re only visible in the HTML code. If none of the above solutions work, it's possible that the issue is with the function and the way it's modifying the meta tags. The Drupal 9 Metatag module helps site builders dynamically create and manage. They also tell web browsers how to display it to visitors. You can also check the CloudFront access logs to see if there are any errors related to the requests made by the Twitterbot or LinkedIn bot. This will force CloudFront to forward the request to the origin, which will then trigger the function to update the meta tags.Īnother thing you can do is to check the headers sent by the Twitterbot or LinkedIn bot and make sure the headers match the headers sent by other clients. One way to test this is to invalidate the cache for the specific pages that contain the meta tags for rich social sharing. In your case, since the function is modifying the meta tags for rich social sharing, it's possible that the cached response does not contain the updated meta tags. If a cached response is found, CloudFront returns it to the viewer without forwarding the request to the origin. When a request is made to CloudFront, it checks the cache for a response before forwarding the request to the origin. It's possible that CloudFront is causing the issue with the social sharing on Twitter and LinkedIn. I can't see anything in the AWS docs of anything I should be doing to allow Twitter/LinkedIn bots. could it be stopping the Twitterbot / however LinkedIn does it? I have ran: curl -A TwitterBot Īnd it does return html with the correct tags, so I'm not sure.Īlso - if I turn off the and just hardcode the tags in my index.html, Twitter and LinkedIn sharing work fine. Your metatags will show up in the little clickable example screen. This snippet is based on your information. You type the URL and Linkedin creates a so calles snippet. My question is - is Cloudfront the issue i.e. 15+ Keyword Suggestion Tools This post gives you over 15 different keyword suggestion tools to choose from, from basic to advanced, and free to paid. You want to add a link to your webpage on Linkedin. Facebook's sharing debugger shows what it sees: ![]() At METATAG, we are bridging the physical and digital worlds Sales of counterfeit goods total 2.8 Trillion yearly, causing 100,000 deaths. We encountered a server error while trying to inspect the URL. METATAG Technologies 113 followers on LinkedIn.LinkedIn errors (from their post inspector): It works perfectly for Facebook, but doesn't for Twitter or LinkedIn. ![]() Ive adjusted the metatag a couple of times, but its not. I'm using a function (triggered on origin request) to change the meta tags for a react site, hosted on S3 with Cloudfront, for rich social sharing. When we share the page, its not pulling in the image on LinkedIn. ![]()
0 Comments
Leave a Reply. |