<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Hasankhankor</title>
    <description>The latest articles on Forem by Hasankhankor (@hasankhankor).</description>
    <link>https://forem.com/hasankhankor</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1213063%2Fe48c4256-5857-448e-938f-3e41defeb2c1.jpeg</url>
      <title>Forem: Hasankhankor</title>
      <link>https://forem.com/hasankhankor</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/hasankhankor"/>
    <language>en</language>
    <item>
      <title>Facebook and WhatsApp in NextJs are not receiving dynamic data from blog posts.</title>
      <dc:creator>Hasankhankor</dc:creator>
      <pubDate>Mon, 11 Dec 2023 06:05:00 +0000</pubDate>
      <link>https://forem.com/hasankhankor/facebook-and-whatsapp-in-nextjs-are-not-receiving-dynamic-data-from-blog-posts-7i5</link>
      <guid>https://forem.com/hasankhankor/facebook-and-whatsapp-in-nextjs-are-not-receiving-dynamic-data-from-blog-posts-7i5</guid>
      <description>&lt;p&gt;One of the major problems faced with Next.js is dynamic data not being available for Facebook and WhatsApp when sharing or embedding blog posts. As Next.js pre-renders pages at build time, any data that is dynamic like content from a HEADLESS CMS for blog posts will not be available on the client-side.&lt;br&gt;
This causes issues with social sharing and embedding as the Open Graph tags and metadata used by platforms like Facebook and WhatsApp will not be populated properly. Since the blog post data is not available yet on page load, the meta tags  have the dynamic values they need for things like title, description, images etc.&lt;/p&gt;

&lt;p&gt;By default, Next.js is intended to be fully static which is great for performance but makes it challenging to work with frequently updated dynamic content sources. While solutions like SSG and SSR can help, they have limitations for cases where new blog posts or data can be added very regularly. This disconnect between Next.js' static generation and the need for dynamic meta tags is problematic for platforms that require proper Open Graph data for pre-rendering content previews before full page load.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>nextjs</category>
      <category>react</category>
      <category>development</category>
    </item>
    <item>
      <title>Meta tags not working</title>
      <dc:creator>Hasankhankor</dc:creator>
      <pubDate>Sat, 18 Nov 2023 14:31:22 +0000</pubDate>
      <link>https://forem.com/hasankhankor/meta-tags-not-working-22kl</link>
      <guid>https://forem.com/hasankhankor/meta-tags-not-working-22kl</guid>
      <description>&lt;p&gt;While shairing in a social site, meta tags are not working. &lt;br&gt;
        &lt;br&gt;
        &lt;br&gt;
        &lt;br&gt;
        &lt;br&gt;
         &lt;br&gt;&lt;br&gt;
        &lt;br&gt;
        &lt;/p&gt;

&lt;p&gt;{/* Twitter meta tags */}&lt;br&gt;
  &lt;br&gt;
  &lt;br&gt;
  &lt;br&gt;
  &lt;br&gt;
&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>nextjs</category>
      <category>react</category>
    </item>
  </channel>
</rss>
