Packagecom.myflashlab.air.extensions.fb
Classpublic class Share
InheritanceShare Inheritance flash.events.EventDispatcher

The Share class provides you to share tools available on Facebook ANE. Access this class via Facebook.share.



Public Methods
 MethodDefined By
  
shareDialog($content:ShareContent, $callback:Function):void
Use this method to allow users share a content on their account.
Share
  
shareMessenger($content:ShareContent, $callback:Function):void
Use this method to allow users share a content on Facebook messenger app.
Share
Method Detail
shareDialog()method
public function shareDialog($content:ShareContent, $callback:Function):void

Use this method to allow users share a content on their account.

Parameters

$content:ShareContent — The content instance to be shared.
 
$callback:Function — expects 3 parameters.
  • $isCanceled:Boolean if true, it means user has canceled the operation
  • $error:Error

shareMessenger()method 
public function shareMessenger($content:ShareContent, $callback:Function):void

Use this method to allow users share a content on Facebook messenger app.

Parameters

$content:ShareContent — The content instance to be shared.
 
$callback:Function — This callback will be called ONLY if the operation fails because of not being able to show the messenger dialog