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

FacebookFacebook Graph-Api

Facebook Problem Overview


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: https://stackoverflow.com/questions/6307324/how-to-get-fbapp-id-for-facebook-meta

Facebook Solutions


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

Solution 2 - Facebook

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

Solution 3 - Facebook

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.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionJ SetView Question on Stackoverflow
Solution 1 - FacebookMatthew JohnstonView Answer on Stackoverflow
Solution 2 - FacebookphwdView Answer on Stackoverflow
Solution 3 - FacebookEd_View Answer on Stackoverflow