Package | com.marpies.ane.facebook.graph |
Interface | public interface IAIRFacebookOpenGraph extends flash.events.IEventDispatcher |
Method | Defined By | ||
---|---|---|---|
postAchievement(achievementURL:String, listener:IAIRFacebookOpenGraphListener = null):void
Posts achievement for logged in user. | IAIRFacebookOpenGraph | ||
postScore(score:int, listener:IAIRFacebookOpenGraphListener = null):void
Posts score for logged in user. | IAIRFacebookOpenGraph | ||
requestScores(listener:IAIRFacebookOpenGraphListener = null):void
Requests score for logged in user and if your app was granted user_friends
permission then the result JSON also contains score for every user's friend
who has authorized your app. | IAIRFacebookOpenGraph | ||
sendDELETERequest(nodeID:String, listener:IAIRFacebookOpenGraphListener = null):void
Sends Open Graph DELETE request that allows deleting graph nodes. | IAIRFacebookOpenGraph | ||
sendGETRequest(path:String, parameters:Object = null, listener:IAIRFacebookOpenGraphListener = null):void
Queries Open Graph with a GET request that allows reading Open Graph data. | IAIRFacebookOpenGraph | ||
sendPOSTRequest(path:String, parameters:Object = null, listener:IAIRFacebookOpenGraphListener = null):void
Sends Open Graph POST request that allows creating and updating data on Open Graph. | IAIRFacebookOpenGraph |
postAchievement | () | method |
public function postAchievement(achievementURL:String, listener:IAIRFacebookOpenGraphListener = null):void
Posts achievement for logged in user. Your app must be in the Games category
and the achievement must be enabled for your app before it can be completed by your users.
Your app must be granted publish_actions
permission to succeed with this call.
Parameters
achievementURL:String — URL of HTML page that represents your achievement.
| |
listener:IAIRFacebookOpenGraphListener (default = null ) — Object that will be notified about the Open Graph request result.
|
openGraphRequestResult: — Dispatched when
the result of the request is obtained.
|
See also
postScore | () | method |
public function postScore(score:int, listener:IAIRFacebookOpenGraphListener = null):void
Posts score for logged in user. Your app must be in the Games category.
Your app must be granted publish_actions
permission to succeed with this call.
Parameters
score:int — Score with value greater than zero.
| |
listener:IAIRFacebookOpenGraphListener (default = null ) — Object that will be notified about the Open Graph request result.
|
openGraphRequestResult: — Dispatched when
the result of the request is obtained.
|
See also
requestScores | () | method |
public function requestScores(listener:IAIRFacebookOpenGraphListener = null):void
Requests score for logged in user and if your app was granted user_friends
permission then the result JSON also contains score for every user's friend
who has authorized your app. Result JSON typically contains data
object
of type Array
that contains users ordered by score from highest to lowest.
Parameters
listener:IAIRFacebookOpenGraphListener (default = null ) — Object that will be notified about the Open Graph request result.
|
openGraphRequestResult: — Dispatched when
the result of the request is obtained.
|
See also
sendDELETERequest | () | method |
public function sendDELETERequest(nodeID:String, listener:IAIRFacebookOpenGraphListener = null):void
Sends Open Graph DELETE request that allows deleting graph nodes.
If successful, result JSON typically contains only confirmation of the operation.
Your app must be granted publish_actions
permission to succeed with this call.
Parameters
nodeID:String — ID of Open Graph node, for example a post from user's feed.
| |
listener:IAIRFacebookOpenGraphListener (default = null ) — Object that will be notified about the Open Graph request result.
|
openGraphRequestResult: — Dispatched when
the result of the request is obtained.
|
See also
sendGETRequest | () | method |
public function sendGETRequest(path:String, parameters:Object = null, listener:IAIRFacebookOpenGraphListener = null):void
Queries Open Graph with a GET request that allows reading Open Graph data. If successful, results are returned in raw and JSON format. Only certain graph requests can be expected to succeed if user is not logged in.
Parameters
path:String — Open Graph path to query, e.g. /me or /me/friends .
| |
parameters:Object (default = null ) — Additional parameters to the query, e.g. { fields: "id,link,name" }
| |
listener:IAIRFacebookOpenGraphListener (default = null ) — Object that will be notified about the Open Graph request result.
|
openGraphRequestResult: — Dispatched when
the result of the request is obtained.
|
See also
sendPOSTRequest | () | method |
public function sendPOSTRequest(path:String, parameters:Object = null, listener:IAIRFacebookOpenGraphListener = null):void
Sends Open Graph POST request that allows creating and updating data on Open Graph.
If successful, result JSON typically contains ID of the newly created/updated post.
Your app must be granted publish_actions
permission to succeed with this call.
Parameters
path:String — Open Graph path where data will be created/updated, e.g. /me/feed .
| |
parameters:Object (default = null ) — Additional parameters to the POST request,
e.g. { message: "Hello world from Seattle.", place: "110843418940484" } .
| |
listener:IAIRFacebookOpenGraphListener (default = null ) — Object that will be notified about the Open Graph request result.
|
openGraphRequestResult: — Dispatched when
the result of the request is obtained.
|
See also