post magento product page url on facebook

post magento product page url on facebook

October 8, 2026 · Illustrated author avatarBy Stefan Bogdanescu
post magento product page url on facebook

Fixing Magento Product Page URLs on Facebook

Posting Magento product page URLs on social media can be frustrating when they don’t display properly. In this article, we’ll explore why this happens and provide steps to resolve the issue.

Understanding the Problem

When you post a URL like [http://www.bardolino.nl/black-cats.html](http://www.bardolino.nl/black-cats.html) on Facebook, it looks for meta tags in your product page’s head section. By default, Magento doesn’t include these necessary Open Graph (OG) and Twitter Card (Twitter Card) meta tags.

Without this information, Facebook falls back to the first text content it finds on the page, which often includes HTML tags like <p>. This leads to a messy, unreadable description as shown in your screenshot.

Adding Meta Tags Manually

The simplest solution is to add the required OG and Twitter Card meta tags to your product pages manually. You can do this by editing each product’s head content in the Magento admin panel:

  1. Log into your Magento admin.
  2. Navigate to “Catalog” > “Manage Products.”
  3. Select the product you want to update.
  4. Click on the “Design” tab.
  5. Scroll down to the “Custom Layout Update XML” field and add the following meta tags within <head>:
<og:title>{$block.getProduct().getName()}</og:title>
<og:description>{$block.getProduct().getShortDescription()}</og:description>
<og:url>https://www.yourwebsite.com{$block.getProduct().getUrlKey()}.html</og:url>
<og:image>https://www.yourwebsite.com/media/catalog/product/{$product.image}</og:image>
<meta property="twitter:card" content="summary_large_image"/>

Remember to replace https://www.yourwebsite.com with your actual domain and update the image path with your product’s image URL.

  1. Save the changes.

Using an SEO Extension

If you manage a large number of products, manually adding meta tags can be time-consuming. Consider using an SEO extension that automatically generates these tags for you. Extensions like Amasty SEO or Mageworx SEO Suite Ultimate can streamline this process.

These extensions allow you to set default meta descriptions and images for product categories and individual products. They also provide tools to preview how your pages will look when shared on social media, saving you time in the long run.

Testing Your Changes

After adding or updating your meta tags:

  1. Open a product page in an incognito/private browsing window to make sure cached data doesn’t affect the display.
  2. Post the URL on Facebook.
  3. Check if the description now displays correctly with clean text and your specified image.

Conclusion

Fixing Magento product URLs on Facebook involves adding specific meta tags to provide essential information about your products. You can do this manually for each product or use an SEO extension to automate the process.

By properly configuring these tags, you’ll ensure that your product pages appear professionally when shared on social media, driving more clicks and potential conversions. If you need further assistance with Magento development or SEO strategies, don’t hesitate to reach out to our team at Laravel Company.

Let us know if there’s anything else we can help with!

Catalog Themes Admin SEO

Our network