我什么时候需要 fb: app_id 或 fb: admins?

Facebook like 按钮的文档说,“当你的网页代表一个真实世界的实体时,比如电影、运动队、名人和餐馆,使用 Open Graph 协议来指定关于这个实体的信息。”

我正在给博客文章/视频/文章添加类似的按钮,这些文章并不是真正的实体。对吧?所以我不需要 fb: app _ id 或 fb: admins?但是在创建一个 like 按钮的第二步中,会说,“ Get Open Graph Tags”,当我使用 Linter 来验证没有 fb: admins 和 fb: app _ id 的 like 按钮时,我会得到一个“ fb: admins 和 fb: app _ id 标签丢失”

如果我需要 fb: admins 和 fb: app _ id 标签,我是否需要一个类似 Facebook 的页面来找到它们?

也是 fb: admins AND fb: app _ id 或 fb: admins OR fb: app _ id,我不知道我是否需要这两者。

在 Graph.facebook/sompage 中,它给出了一个 id,但这是什么 id 呢? 例如: 如何获取 facebook meta 的 fb: app _ id

204847 次浏览

I think the documentation is reasonably helpful!

If you read it again, it says that adding open graph elements on your website will make your website act as a facebook page and you'll get the ability to publish updates to them etc.

So I think it's up to you - you can either just have a page with no OG elements, which is less work but also less 'rewarding' for you.

If you do use og, then set type to: blog

Finally: fb:admins or fb:app_id - A comma-separated list of either the Facebook IDs of page administrators or a Facebook Platform application ID. At a minimum, include only your own Facebook ID.

So just put your own fbid in there. As a tip, you can easily get this by looking at the url of your profile photo on facebook.

Including the fb:app_id tag in your HTML HEAD will allow the Facebook scraper to associate the Open Graph entity for that URL with an application. This will allow any admins of that app to view Insights about that URL and any social plugins connected with it.

The fb:admins tag is similar, but allows you to just specify each user ID that you would like to give the permission to do the above.

You can include either of these tags or both, depending on how many people you want to admin the Insights, etc. A single as fb:admins is pretty much a minimum requirement. The rest of the Open Graph tags will still be picked up when people share and like your URL, however it may cause problems in the future, so please include one of the above.

fb:admins is specified like this:
<meta property="fb:admins" content="USER_ID"/>
OR
<meta property="fb:admins" content="USER_ID,USER_ID2,USER_ID3"/>

and fb:app_id like this:
<meta property="fb:app_id" content="APPID"/>

To use the Like Button and have the Open Graph inspect your website, you need an application.

So you need to associate the Like Button with a fb:app_id

If you want other users to see the administration page for your website on Facebook you add fb:admins. So if you are the developer of the application and the website owner there is no need to add fb:admins