Facebook Open Graph Object Types - Article?

I am doing my best to understand what everything means in the Open Graph Protocol. Reading the FB page on it and the OGP page . What exactly does this mean in the world of FB and OGP:

Note that the Open Graph protocol is currently designed to support real objects. If your URL is part of the content - for example, a news article, photo, video or the like - you should set og: type to article (See below). Pages such as articles do not have permission to publish, and will not be displayed in user profiles because they are not real Objects

What exactly does Pages of type article do not have publishing rights, and will not show up on user profiles I think I understand publishing rights, but what exacly does not show in the user profile? Part of the user profile is what I don't understand.

+4
source share
3 answers

The "type" is just the Open Graph <meta> that you set on the <head> page:

 <!DOCTYPE html> <html> <head> <title>Example Page</title> <meta property="og:title" content="Some example page" /> <!-- This is what it means to set the og:type to article --> <meta property="og:type" content="article" /> <meta property="og:url" content="http://example.com/canonical/url/to/this/content" /> <!-- etc --> </head> <body> <!-- snip --> </body> </html> 

Reads more: https://developers.facebook.com/docs/beta/opengraph/

0
source

The purpose of publishing answers to people's questions is to help them, and not to be condescending. If you will not try to be useful, do not post messages.

 <!-- This is what it means to set the og:type to article --> <meta property="og:type" content="article" /> 

This does not mean “what does it mean” to set the og: type type to an article, this is just an example of code showing the syntax for using the type of the article.

Obviously, @Lynda is trying to understand the caveats of using an article as an OG type and for obvious reasons: the documentation does not contain many recommendations for using which type, especially when you add a LIKE button to one page of regular content (for example, the About Us page or the page Frequently Asked Questions) on the website.

The question is perfectly legitimate, if not expressed with crystal clarity.

If the "LIKE" (action) of a webpage object of type = article does not "appear in the user profile", what good is the type of article?

Of course, the answer is probably simple, something like “the article will be displayed on the user's timeline,” but regardless of the answer, it is not easy for those of us who are in the process of getting an initial understanding of the Open Graph protocol to understand.

@ Lynda's question can indeed be revised as follows: "What are the implications of using an article type, and when should I use it?"

In addition, the documentation also says:

Use the article for any URL that represents transitional content - such as a news article, blog post, photo, video, etc. Do not use the website for this purpose. the website and the blog are intended to represent the entire site, the og: type tag with the type of website or blog should usually appear only in the root of the domain.

When trying to determine which type to use for a specific web page that does not represent a real world object (such as a movie), a page such as the About Us page does not appear to qualify as “transitional content”, it does not represent the entire site, and it’s not a blog or blog post. Which type should be used?

I worked 24 hours a day with high and low rates and have not yet found any clarification about this outside the two cited parts of the documentation for developers, but there seems to be a simple question about what content developers should watch every day when we Recognize the importance of submitting Open Graph.

Should a web page with intransitive content that does not represent a real world object should be marked as “article” or not? The documentation on Facebook essentially says no, but offers no obvious alternative.

And returning to the @Lynda question, where is the LIKED “article” Facebook page for the user you liked? On their timeline? Somewhere else? It is also not clear anywhere where I can find.

Regards, Fritz

+15
source

If you have a website for films, and on each page of the film you include the <meta property="og:type" content="movie" /> and the Like button, then every time the user clicks the Like Like button, he will include this film to your Facebook profile in the "Information / Films" section.

This way, his / her friends will see that he liked this movie every time he views his profile (in addition to the message that goes to the wall saying: “User X liked movie Y on site Z”).

This does not apply to articles, but only to objects of the real world.

Additional information: http://developers.facebook.com/docs/opengraph/ and http://ogp.me/

PS Remember to specify the other required properties of og:title , og:image and og:url .

+3
source

Source: https://habr.com/ru/post/1380047/


All Articles