且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

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

更新时间:2022-10-14 20:25:18

包含您的 fb:app_id HTML HEAD将允许Facebook刮板将该URL的Open Graph实体与应用程序相关联。这将允许该应用的任何管理员查看有关该网址和任何与之相关联的社交插件的数据分析。



fb:admins 标签是类似的,但是您可以指定要给予上述权限的每个用户标识。



您可以包含以下任一标签或两者,具体取决于您要管理数据分析等多少人。单个作为 fb:管理员几乎是最低要求。 Open Graph标签的其余部分仍然会在人们共享并像您的URL一样被接受,但是可能会在以后引起问题,所以请包括上述之一。



fb:admins被这样指定:

< meta property =fb:adminscontent =USER_ID/> >
OR

< meta property =fb:adminscontent =USER_ID,USER_ID2,USER_ID3/> p>

和fb:app_id,如下所示:

< meta property =fb:app_idcontent =APPID/&gt ;


The doc for the facebook like button says , "When your Web page represents a real-world entity, things like movies, sports teams, celebrities, and restaurants, use the Open Graph protocol to specify information about the entity."

I'm adding like buttons to a blog posts/videos/articles which aren't really entities. Right? So I don't need fb:app_id or fb:admins? But then in step 2 of creating a like button is says, "Get Open Graph Tags" and when I use Linter to validate my like buttons without fb:admins and fb:app_id I get a "fb:admins and fb:app_id tags are missing."

If it turns out that I need fb:admins and fb:app_id tags do I need to have a Facebook like page to find them?

Also is it fb:admins AND fb:app_id or fb:admins OR fb:app_id, I can't tell if I need both or not.

And in the graph.facebook/somepage it gives an id, but what id is that? For example: How to get fb:app_id for facebook meta

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"/>