Time for action – granting the required permission
- Before this can work, we must grant the application the
publish_stream
extended permission, so alter theonRequestorInitialize()
function withinCustomGraphContainerController.as
, like so:private function onRequestorInitialize(a_event:Event):void { _requestor.attemptToAuthenticate(ExtendedPermissions.READ_STREAM, ExtendedPermissions.PUBLISH_STREAM); }
- Compile, upload, and try it again. You'll see the Request for permission pop up when you load the page:
- 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.