This text specifically for the f8 blog on Habré was written by Alexander Moskalyuk , one of the oldest developers on Facebook:
Today it is hard to believe that the "Like" button was presented at the F8 conference just a year and a half ago. The tool gained popularity among site owners and spawned a whole series of
derivative products that allow webmasters to personalize their pages for site visitors.
But rarely the verb "like" will describe the whole range of basic actions that the user can perform on the site. For example, in the context of an online store, the “Like” mark displayed in the news feed carries a relatively low informational value. “I want to” - the signal is already more interesting, especially if there is a parallel on the page a reminder of the upcoming birthday. “Bought” is probably the strongest recommendation, which in the social context will attract the greatest interest.
')
Today, developers post such messages to the news feed via the
corresponding Graph API method . From the point of view of the developers, the goal has been achieved - the friends of the user have learned about his purchase, the achievement of a new level in the game, the desire to watch a movie, etc. From the point of view of Facebook, this news is not very useful, since we can provide only basic contextual information. Ideally, the news about the book read from
the book readers site could contain information about who else read this book, which book is popular with friends, how many books the user has read in the past few months.
This year, Facebook is expanding vocabulary for user actions. Now the news in the user's feed can be published in a format that is more detailed than a piece of HTML.
To do this, the application must ask the user for permission to publish the actions of
publish_actions and create
its own type of objects (book, recipe, movie, song). Many
simple object types already exist in the system . Object types are easiest to explain to the programmer as classes - they describe the structure of these objects, but they themselves do not personify. If the class in our case is a book, then the objects of this class are War and Peace, Crime and Punishment, etc. Each type of object will have properties - number of pages, publisher, language of publication, etc.
Properties of the object
can be prescribed by yourself , but before that you should familiarize yourself with the
properties already available in the Graph API .
Publishing structured information in the Graph API, the site owner in return receives not only news in the tape (and a theoretical flow of traffic). In 2011, modules from third-party applications are returned to the profile (of course, only if the user considers it necessary to share such activity with his friends). Since the information is structural in nature, Facebook can generate a report on the user's recent actions on the site on the move and, if actions repeat (say, the same song is played in the music application several times), publish a module consisting of the user's favorite objects on the site.
Since the new version of the Graph API is launched with a number of partners, we have more detailed examples in areas such as
news ,
video and
music .
Follow the news on this blog. Russian partners of Facebook will tell about their experience in implementing these new features in their applications.