Giter Club home page Giter Club logo

Comments (5)

bo-blog avatar bo-blog commented on August 23, 2024

是什么问题?大陆没有FB的使用环境。

from bw.

APAO002 avatar APAO002 commented on August 23, 2024

关于OG tag 请参考以下网页:
https://developers.facebook.com/docs/sharing/webmasters/

正常是可以看得见图片的模式:
image 004

如果没有对应OGTAG
image 003

相关问题说明:
https://blog.apao.idv.tw/post/1279/

from bw.

bo-blog avatar bo-blog commented on August 23, 2024

og tag似乎是一组的元数据,可以自行添加到模板文件里。具体需要修改的文件是 theme/xxxx/page.php
比如

<meta property="og:url"                content="[[::canonicalURL]]" />
<meta property="og:type"               content="article" />
<meta property="og:title"              content="[[::pageTitle]]" />

大致这样。但og:tag中有两项无法实现:

  1. 指定一张图片作为og:image 在动态消息中显示高品质预览。 bW没有强制要求每篇文章指定一个图片作为高品质预览图的功能,所以这个定义不存在。
  2. og:description 即内容的简要说明。因为不是每篇文章都有summary分隔符,也没有为每篇文章编写概要的功能,所以这个定义也不存在。

综上,除非开发特定的插件做深入定制,否则不能很完美的契合FB的这个功能。

特别是,以上两项og:tag都需要为每篇日志存储额外的字段,要改动数据库结构的。

from bw.

APAO002 avatar APAO002 commented on August 23, 2024

十分感谢您能抽空回覆... 谢谢

from bw.

APAO002 avatar APAO002 commented on August 23, 2024

现行在bo-blog ver2.x 也有对应Facebook的困扰,正在想办法解决中。

https://picsee.co/
可以利用这个解决一半问题。

from bw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.