Facebook Open Graph Beta gives us the capability to publish actions to Facebook whenever a user interacts with our Facebook Open Graph objects. Here, we will show you how to publish actions.
You should have configured your application to be used with Facebook Open Graph Beta, that is, you should have set up objects, actions, and aggregation. If you haven't already done so, refer to the all the recipes discussed earlier in this chapter.
The following steps will demonstrate how to publish user actions:
index.phpand add the following code to it:
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr"lang="en-US" xmlns:fb="https://www.facebook.com/2008/fbml">