Time for action – deleting Posts using the Visualizer
- We can enable the Delete button of the Visualizer by using yet another hidden option. In the
constructor
function ofCustomGraphContainerController.as
, setthis._showDeleteButtons
totrue
:public function CustomGraphContainerController(a_graphControlContainer: GraphControlContainer) { super(a_graphControlContainer); this._showListCounts = true; this._showListFilters = true; this._canShowSearchUI = true; this._publishingCapability = PublishingCapabilities.COMPLETE; this._showDeleteButtons = true; _requestor = new SDKRequestor(); addEventListenersToRequestor(); //we must wait for the Requestor to initialise before we can do// anything else with it _requestor.addEventListener(Event.COMPLETE,onRequestorInitialize); ...
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.