1.21 gigawatts
1.21 gigawatts

Reputation: 17870

What is this meta content property og?

I was looking at the source code for a web page and this is the 3rd time I've seen this in the header:

<meta content="http://www.example.com/cmswp/wp-content/uploads/2013/01/01/something.jpg" property="og:image">

What is this and what is it for?

Upvotes: 1

Views: 215

Answers (2)

Charlie
Charlie

Reputation: 23858

This is meta data for Open Graph Protocol

By og:image you can provide an image URL which should represent your object within the graph.

The Open Graph protocol enables any web page to become a rich object in a social graph. For instance, this is used on Facebook to allow any web page to have the same functionality as any other object on Facebook.

While many different technologies and schemas exist and could be combined together, there isn't a single technology which provides enough information to richly represent any web page within the social graph. The Open Graph protocol builds on these existing technologies and gives developers one thing to implement. Developer simplicity is a key goal of the Open Graph protocol which has informed many of the technical design decisions.


Basically these meta tags will be used by social networks to represent your web page anywhere they need.

Visit the following site to see how Facebook interpret og meta tags in real time and create an object that represent a page. Try google.com in it.

https://developers.facebook.com/tools/debug/

Upvotes: 3

svrnm
svrnm

Reputation: 1059

The open graph protocol:

The Open Graph protocol enables any web page to become a rich object in a social graph. For instance, this is used on Facebook to allow any web page to have the same functionality as any other object on Facebook.

Upvotes: 1

Related Questions