简体   繁体   English

如何使用jekyll撰写博客文章的og摘录?

[英]How do I include an og excerpt for a blog post using jekyll?

Do you know how to pass a post's excerpt to facebook when sharing a link? 您知道共享链接时如何将帖子摘录传递给Facebook吗?

I have a jekyll blog and when people want to share a post they get this: 我有一个jekyll博客,当人们想要分享帖子时,他们会得到以下信息:

link to img 链接到img

Example of a link I'm trying to share: 我尝试分享的链接示例:

link 链接

Thanks 谢谢

If you want to add some cutomised text you should instead use Feed Dialog . 如果要添加一些特定文本,则应使用Feed Dialog

You can use the direct URL to invoke feed dialog: 您可以使用直接URL调用供稿对话框:

https://www.facebook.com/dialog/feed?
 app_id={app-id}
 &display=popup
 &caption={caption}
 &link={link-to-share}
 &description={description}
 &redirect_uri={redirect-url-to-your-site}

Check all available parameters here 在此处检查所有可用参数

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何访问OG网站的“管理员”页面并发布以供稿? - How do I access Admin page for my OG site and post to feed? 如何将博客文章发布到Facebook,以便将喜欢和评论合并? - How do I publish a blog post to facebook so that the likes and comments are merged? 如何获得Facebook调试器引用正确的og:image? - How do I get Facebook debugger to reference the correct og:image? 如果需要语言环境,如何设置og:url? - How do I set og:url when a locale is required? 如何让我的博客在FaceBook上正确列出OG信息 - How to get my blog to properly list the OG information on FaceBook 如何使用我的OG动作找出谁发布了帖子 - How to find out who has published a post using my OG action 如何首次设置og:type而不丢失喜欢的人? - How do I set an og:type for the first time without losing likes? 如何基于该页面上的内容动态生成Facebook共享的og元数据? - How do I dynamically generate og meta data for Facebook sharing based on content on that page? 如何在 nuxt.js (vue.js) 中配置动态 og 标签? - How do I configure dynamic og tags in nuxt.js (vue.js)? 如何设置og:image以便从页面获取图像? - How do I set og:image so it takes image from page?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM