When do I need a fb:app_id or fb:admins?

J Set picture J Set · May 31, 2012 · Viewed 193.3k times · Source

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

Answer

Matthew Johnston picture Matthew Johnston · May 31, 2012

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