Open Graph Protocol & Facebook

It’s been a long time I read about the open graph protocol

Basically:

“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 enable any web page to have the same functionality as a Facebook Page.

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.”
(from http://ogp.me)

It is very easy to implement and to understand.

open graph protocol facebook

It sits in the html code of your page and provides information which can be grabbed b Facebook.

When does it grab it?

When people post a link of your page or when you put the famous like button on the page and someone clicks on it…

A lot of people are afraid of facebook (and are saying that continuously on… facebook), a lot of media are afraid too.

Let’s be clear: you want to be public? you want to show something? you want to make contact quickly and precisely in your entertainment group but all over the planet ? If the answer is yes, Facebook is the tool. A lot of people know this.

What do you need to put inside your page code?

Facebook provided something more focused on their network here:http://developers.fa…/docs/opengraph

Basically, you have to put some meta tags ; some are always required, some others are options.

A tag is like that:

<meta property=”[TAG_NAME]” content=”[VALUE]”/>

Those [TAG_NAME] required are:

– og:title – [VALUE] is the title of your object as it should appear within the graph.


– og:type – [VALUE] is the type of your object. (check at the end of the post)



– og:url – [VALUE] is the canonical URL of your object that will be used as its permanent ID in the graph.

In addition:

– og:site_name – A human-readable name for your site.


– fb:admins or fb:app_id – [VALUE] is a comma-separated list of either Facebook user IDs or a Facebook Platform application ID that administers this page. It is valid to include both fb:admins and fb:app_id on your page.

It’s also recommended that you include the following property as well as these multi-part properties.

– og:description – [VALUE] is a one to two sentence description of your page.

Other tags can be added and it is better to put them in the code.

It will make the considered page better indexed by the system.

About Location:

About Contact Information:

Attaching Audio and Video Data:

Among the required tags, there is one called type

READ  Learning How to Program : Tips on Getting Motivated

There are some frequent content/value available, but apparently, you can use anything.

Those frequent are:

Activities

– activity

– sport

Businesses

– bar

– company

– cafe

– hotel

– restaurant

Groups

– cause

– sports_league

– sports_team

Organizations

– band

– government

– non_profit

– school

– university

People

– actor

– athlete

– author

– director

– musician

– politician

– public_figure

Places

– city

– country

– landmark

– state_province

Products and Entertainment

– album

– book

– drink

– food

– game

– product

– song

– movie

– tv_show

For products which have a UPC code or ISBN number, you can specify them using the og:upc and og:isbn properties. These properties help uniquely identify products.

Websites

– blog

– website

– article

Once you complete the code, You can even test how facebook see’s it by going to : http://developers.fa…com/tools/lint/

You can create all those tags.

Imagine you want Facebook to grab ALL the pages of your websites differently, in order to be more precise & make an efficient indexation.

You can put in the URL on each page the current URL of the page seen.

You can create a php code that populates the description with this or that information (tags of a post in wordpress for instance)

But the most important thing is to provide the like button.

When a person clicks, the url is sent to Facebook for grabbing. And Facebook grabs all the meta data we discussed here. AND, this link is posted on the news feed of the clicker.

This like button is easy to build with the online builder here

Now, have fun !

 

Leave a Reply

Your email address will not be published. Required fields are marked *