Time for action – granting the required permission

  1. Before this can work, we must grant the application the publish_stream extended permission, so alter the onRequestorInitialize() function within CustomGraphContainerController.as, like so:
    private function onRequestorInitialize(a_event:Event):void
    {
      _requestor.attemptToAuthenticate(ExtendedPermissions.READ_STREAM,     ExtendedPermissions.PUBLISH_STREAM);
    }
  2. Compile, upload, and try it again. You'll see the Request for permission pop up when you load the page:
    Time for action – granting the required permission
  3. Click on Allow, then open your feed List Renderer, and click on Publish. Enter some text in the box:

    …and click on Post. Check your Wall on the Facebook ...

Get Facebook Graph API Development with Flash now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.