Comments for a Graph API object are linked to the object through their Graph API connection, so to add a new comment, what we need to do is post an appropriately formatted object to the object's connection URL.
In this recipe, we're going to extend our comments loading application from the previous recipe to include the ability to post a comment on to an existing Graph API object.
Adding objects to the Graph API on a user's behalf requires that our application be authenticated as that user, along with the publish_stream
Extended Permission. An easy way to ensure that our application has this Extended Permission is to use the ApplicationBase
class that we develop in the recipe Creating the ApplicationBase class from Chapter 11, Bridging the Flash and Application Gap
To test this functionality, we'll build an interface which can be used to create new comments. In addition to the components and layout from our previous recipe, we need to create...