本文介绍了我什么时候需要一个fb:app_id或者fb:admins?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Facebook的文本按钮表示,当您的网页代表一个真实世界的实体,像电影,运动队,名人和餐馆,使用Open Graph协议来指定实体的信息。



我将按钮添加到博客文章/视频/文章中,而不是真正的实体。对?所以我不需要fb:app_id或者fb:admins?但是在创建类似按钮的步骤2中,说获取打开图形标签,当我使用Linter来验证我没有fb:admins和fb:app_id的类似按钮时,我得到一个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 / somepage中,它给出一个id,但是id是什么?例如:

解决方案

包含您的 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/> ;


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

这篇关于我什么时候需要一个fb:app_id或者fb:admins?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 03:19