| Package | yourminis.api.social |
| Class | public class Facebook |
| Inheritance | Facebook SocialBase flash.events.EventDispatcher |
| Implements | IFacebook, ISocial |
See also
| Property | Defined by | ||
|---|---|---|---|
![]() | ACTIVITY_CREATED : String Event fired when an activity has been created
| SocialBase | |
![]() | AUTHENTICATION_COMPLETE : String Event fired when authentication is completed
| SocialBase | |
![]() | delegate_friends : * | SocialBase | |
![]() | Friends : Array
Get Friends - returns the yourminis version of friends, returning common data across opensocial and facebook
| SocialBase | |
| ProfileID : String [read-only]
Provide read-only access to the Faceebook Profile ID
| |||
| SessionKey : String [read-only]
Provide read-only access to the Faceebook Session ID
| |||
![]() | SOCIAL_ONGETFRIENDS : String Event fired when social friends have been retrieved
| SocialBase | |
| UserID : String [read-only]
Provide read-only access to the Faceebook User ID
| |||
![]() | ym_friends : * | SocialBase | |
![]() | ym_social_type : String | SocialBase | |
| Method | Defined by | ||
|---|---|---|---|
|
createActivity(title:String, body:String, summary:String = null, url:String = null, media:Array = null):void
Social method which delegates to publishUserAction for publishing activity related information within facebook
| |||
|
getCurrentView():String
| |||
|
getFriends():void
Get a list of friends from the current profile
| |||
![]() |
getParameter(parameter_name:String):String
Returns the value of the specified parameter if it has been passed in by the social application, an empty string if not.
| SocialBase | |
![]() |
isBebo():Boolean
This function returns true if the widget is running on the Bebo platform, false otherwise
| SocialBase | |
|
isFacebook():Boolean
This function returns true if the widget is running on the Facebook platform, false otherwise
| |||
![]() |
isOpensocial():Boolean
This function returns true if the widget is running on the OpenSocial platform, false otherwise
| SocialBase | |
![]() |
isSocial():Boolean
This function returns true if the widget is running on a social platform, false otherwise
| SocialBase | |
|
publishActionOfUser(title:String, body:String, image1:String = null, image1link:String = null, image2:String = null, image2link:String = null, image3:String = null, image3link:String = null, image4:String = null, image4link:String = null):void
Obsolete.
| |||
|
publishUserAction(template_bundle_id:Number, template_data:Object = null, target_ids:String = null, body_general:String = null, story_size:int = 1):void
Publishes a story on behalf of the user owning the session, using the specified template bundle.
| |||
| ProfileID | property |
ProfileID:String [read-only]Provide read-only access to the Faceebook Profile ID
Implementation public function get ProfileID():String
import yourminis.api.IWidget
var widget:IWidget;
addEventListener("widget-loaded",onWidgetLoaded);
function onWidgetLoaded(evt:Event):void {
widget.initWidget(300,250,0x000000);
widget.debugMode = true;
widget.debug("The Profile ID is: " + widget.social.ProfileID);
}
| SessionKey | property |
SessionKey:String [read-only]Provide read-only access to the Faceebook Session ID
Implementation public function get SessionKey():String
import yourminis.api.IWidget
var widget:IWidget;
addEventListener("widget-loaded",onWidgetLoaded);
function onWidgetLoaded(evt:Event):void {
widget.initWidget(300,250,0x000000);
widget.debugMode = true;
widget.debug("The Session Key is: " + widget.social.SessionKey);
}
| UserID | property |
UserID:String [read-only]Provide read-only access to the Faceebook User ID
Implementation public function get UserID():String
import yourminis.api.IWidget
var widget:IWidget;
addEventListener("widget-loaded",onWidgetLoaded);
function onWidgetLoaded(evt:Event):void {
widget.initWidget(300,250,0x000000);
widget.debugMode = true;
widget.debug("The User ID is: " + widget.social.UserID);
}
| () | constructor |
| createActivity | () | method |
public override function createActivity(title:String, body:String, summary:String = null, url:String = null, media:Array = null):voidSocial method which delegates to publishUserAction for publishing activity related information within facebook
Parameterstitle:String |
|
body:String |
|
summary:String (default = null) |
|
url:String (default = null) |
|
media:Array (default = null) |
See also
| getCurrentView | () | method |
public override function getCurrentView():StringReturns
String |
See also
| getFriends | () | method |
public override function getFriends():voidGet a list of friends from the current profile
See also
| isFacebook | () | method |
public override function isFacebook():BooleanThis function returns true if the widget is running on the Facebook platform, false otherwise
ReturnsBoolean |
See also
| publishActionOfUser | () | method |
public function publishActionOfUser(title:String, body:String, image1:String = null, image1link:String = null, image2:String = null, image2link:String = null, image3:String = null, image3link:String = null, image4:String = null, image4link:String = null):voidObsolete. This API call is no longer supported.
Parameterstitle:String |
|
body:String |
|
image1:String (default = null) |
|
image1link:String (default = null) |
|
image2:String (default = null) |
|
image2link:String (default = null) |
|
image3:String (default = null) |
|
image3link:String (default = null) |
|
image4:String (default = null) |
|
image4link:String (default = null) |
See also
| publishUserAction | () | method |
public function publishUserAction(template_bundle_id:Number, template_data:Object = null, target_ids:String = null, body_general:String = null, story_size:int = 1):voidPublishes a story on behalf of the user owning the session, using the specified template bundle. This method requires an active session key in order to be called. The API call returns true if all succeeds, and false if the user never authorized the application to publish to his or her Wall. An application can publish a maximum of 10 stories per user per day.
Parameterstemplate_bundle_id:Number |
|
template_data:Object (default = null) |
|
target_ids:String (default = null) |
|
body_general:String (default = null) |
|
story_size:int (default = 1) |
See also