Website page browser-এ ঠিক দেখালেও WhatsApp, Facebook, LinkedIn বা অন্য app-এ link paste করলে পুরোনো title, random image কিংবা ভুল URL আসতে পারে। কারণ share preview সাধারণত visible page body নয়, head-এর metadata ও crawler-এর cached response থেকে তৈরি হয়। শুধু নিজের logged-in browser দেখে issue বোঝা যায় না। একটি reliable audit-এ final public URL, Open Graph properties, image endpoint, redirect, crawler access এবং platform cache আলাদা করে পরীক্ষা করতে হয়। এই guide নতুন article publish, redesign, domain migration বা featured image বদলানোর পরে social share card যাচাইয়ের practical flow দেয়।
Final public URL দিয়ে source response নিন
Editor preview বা localhost URL নয়, user যে HTTPS URL share করবেন সেটি দিয়ে শুরু করুন। URL redirect হলে final destination, status code এবং canonical একই page বোঝাচ্ছে কি না দেখুন। Query parameter বা shortened link অন্য metadata serve করছে কি না test করুন। Logged-out request-এ login wall, cookie block বা error page এলে social crawler-ও intended content নাও পেতে পারে। View Source বা HTTP response থেকে head inspect করুন; browser extension দিয়ে modified DOM দেখলে server output miss হতে পারে। One URL একাধিক hostname-এ খোলা থাকলে preferred production hostname metadata-তে consistent রাখুন।
Basic Open Graph properties একসঙ্গে মিলান
Open Graph protocol basic metadata হিসেবে `og:title`, `og:type`, `og:image` এবং `og:url` নির্ধারণ করে। Article-এর জন্য title readable, type appropriate, image relevant এবং URL absolute canonical হওয়া উচিত। `og:description` user-কে page-এর accurate summary দিক। Duplicate tags থাকলে crawler কোন value নেবে তা predictable নাও হতে পারে, তাই template ও plugin দুদিক থেকে metadata emit হচ্ছে কি না দেখুন। HTML escaping ভাঙলে quotes বা ampersand property cut করতে পারে। Page title এবং OG title আলাদা করা যায়, কিন্তু message conflict করবে না।
OG image URL ও response বাস্তবে খুলুন
`og:image`-এ complete HTTPS absolute URL দিন এবং নতুন private window বা direct HTTP request-এ খুলুন। Response 200, correct image MIME এবং real image bytes দিচ্ছে কি না দেখুন; HTML error page-কে `.jpg` নাম দিলেই image হয় না। Authentication, hotlink protection, expiring signed URL বা robots restriction crawler-কে আটকাতে পারে। Image খুব ছোট, অস্বাভাবিক aspect ratio বা গুরুত্বপূর্ণ text edge-এ থাকলে platform crop খারাপ হবে। File বদলে একই URL রাখলে cache পুরোনো preview দেখাতে পারে। Relevant alt/description property supported হলে accurate text দিন, কিন্তু keyword stuffing করবেন না।
Title, description ও crop small card হিসেবে পড়ুন
Desktop full image দেখে approval দেবেন না। Narrow messaging card-এ title দুই line-এ কেটে গেলে main meaning থাকে কি না ভাবুন। Description একই কথা repeat না করে context দিক। Featured image-এর subject centre-safe কি না এবং logo বা text mobile crop-এ হারাচ্ছে কি না preview করুন। Article update করলে date-specific wording stale হচ্ছে কি না দেখুন। Clickbait title body support না করলে short-term click-এর বদলে trust ক্ষতি হবে। Bengali glyph, emoji বা special punctuation encoding ঠিক আছে কি না inspect করুন। Preview card যেন অন্য product, person বা event-এর impression না দেয়।
Redirect, canonical ও OG URL conflict সরান
Shared URL A যদি B-তে redirect হয়, কিন্তু B-এর `og:url` আবার A বা third hostname দেখায়, crawler duplicate identity পেতে পারে। HTTP থেকে HTTPS, www থেকে non-www এবং old slug থেকে new slug chain একটি final URL-এ শেষ করুন। Canonical এবং `og:url` সাধারণত একই preferred public address রাখুন, unless deliberate architecture অন্য কিছু চায়। Tracking parameter share করলে page metadata clean URL দেখাচ্ছে কি না verify করুন। Redirect loop, 302 temporary chain বা geo-specific destination preview fetch ব্যর্থ করতে পারে। Sitemap, internal links ও share button একই preferred URL ব্যবহার করলে signal consistent হয়।
Cache refresh controlled ভাবে করুন
Metadata ঠিক করার পর platform সঙ্গে সঙ্গে নতুন card দেখাবে ধরে নেবেন না। Official inspection বা debugger tool থাকলে final URL fetch করান এবং fetched properties দেখুন। Repeated random query parameter দিয়ে public duplicates বানাবেন না। Image URL version করা project convention হলে controlled identifier ব্যবহার করুন। CDN cache purge করার আগে scope বুঝুন; পুরো site purge ছোট metadata fix-এর জন্য প্রয়োজন নাও হতে পারে। Cache refresh result এবং timestamp note করুন, যাতে source fix বনাম platform delay আলাদা বোঝা যায়।
Social share preview audit checklist
- URL: Final public HTTPS route 200 response দেয়।
- Metadata: One clear title, type, description, image ও URL set।
- Image: Absolute endpoint real image MIME ও useful dimensions দেয়।
- Identity: Redirect, canonical এবং `og:url` consistent।
- Crop: Mobile card-এ subject ও text readable।
- Access: Logged-out crawler path login বা block-এ আটকায় না।
- Retest: Source fix-এর পরে platform cache refresh যাচাই।
একটি test matrix রেখে publish করুন
Important page-এর জন্য URL, expected OG values, image dimensions, last fetch time এবং tested channels-এর ছোট record রাখুন। প্রথমে raw source response, তারপর one official inspector, তারপর business-এ সত্যি ব্যবহৃত messaging/social app-এ controlled share করুন। প্রত্যেক platform একই crop বা description দেখাবে এমন guarantee নেই; target হলো accurate identity, fetchable asset এবং misleading না হওয়া। Template-level duplicate tag পাওয়া গেলে শুধু একটি article patch না করে shared source diagnose করুন, তবে approved scope ছাড়া design বদলাবেন না। Final audit-এ click করে destination খুলুন—সুন্দর card ভুল page-এ নিয়ে গেলে metadata pass অর্থহীন।
দ্রুত উত্তর
সাধারণ প্রশ্ন ও উত্তর
Browser title ঠিক থাকলেও share preview ভুল কেন?
Social platform সাধারণত Open Graph metadata পড়ে এবং cached copy রাখতে পারে। Browser tab title ও share card-এর source এক নাও হতে পারে।
Relative og:image URL ব্যবহার করা যাবে?
Reliable crawling-এর জন্য complete HTTPS absolute URL ব্যবহার করা practical। Endpoint publicly fetchable এবং correct image MIME দিচ্ছে কি না পরীক্ষা করুন।
Preview debugger pass মানেই সব app-এ ঠিক?
Guarantee নয়। Platform crawler, cache, crop ও size rule আলাদা হতে পারে। Important channels-এ controlled test share করুন।