I'm currently building an AIR program for Desktop using AS3 in Flash (not FLEX). I want to be able to share the text within a certain text field to the user's wall. For the life of me, I cannot find a tutorial on how to do this without FLEX.
I've downloaded the Facebook Actionscript API (Graph API 1.8.1 Desktop SWC), and imported it into my project, but I can't login or post. https://code.google.com/archive/p/facebook-actionscript-api/downloads
How would I go about this?
There is an AS3 Facebook API by Adobe:
https://code.google.com/p/facebook-actionscript-api/
You need to handle the login first, but here is how you post to wall:
var params:Object =
{
message: text,
link: 'your link here',
caption: 'Text to display 1',
name: 'Text to display 2',
description: 'Description',
picture: 'image url here'
};
Facebook.api( 'me/feed', onComplete, params, "POST" );
function onComplete( response:Object, fail:Object ):void
{
trace( JSON.encode(response) );
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.