Cách thêm thẻ meta chia sẻ ảnh đầy đủ chính xác

Cách thêm thẻ meta chia sẻ ảnh đầy đủ chính xác
Khi bạn chia sẻ một trang bất kỳ trong Blog của mình lên các mạng xã hội có thể bạn sẽ gặp lỗi không hiển thị hình ảnh, nguyên nhân trang mà bạn chia sẻ đang bị thiếu thẻ meta og:image trong thẻ <head>. Do vậy để sửa lỗi này bạn cần thêm lại thẻ meta og:image cho trang. Mặc định Blogger cung cấp sẵn thẻ meta open graph <b:include name='openGraphMetaData'/>, nội dung trong thẻ này có dạng sau: Copy <meta expr:content='data:blog.url.canonical' property='og:url'/> <meta expr:content='data:view.title.escaped' property='og:title'/> <meta expr:content='data:view.description.escaped' property='og:description'/> <b:if cond='data:view.featuredImage'> <meta expr:content='resizeImage(data:view.featuredImage, 1200, "1200:630")' property='og:image'/> <b:elseif cond='data:widgets'/> <b:loop values='data:widgets.Blog.first.posts where (p => p.featuredImag…

About the author

Tôi đi viết blog dạo...