Reputation: 5074
I'm writing an app for Android using Adobe AIR 3.0 and facebook action script 3 sdk to enable user social experience. I can't call facebook methods using ExternalInterface, so I have to make all request using GRAPH api. http://code.google.com/p/facebook-actionscript-api/
So, if someone have experience working with this SDK, please provide me with code example how can I post to users wall (text + URL link + image) using:
1) app requests
2) streamPublish.
Thanks in advance.
Upvotes: 0
Views: 1919
Reputation: 1206
function publish(evt:MouseEvent):void
{
var o:Object =
{
attachment:
{
media: [{
type: "image",
href: "http://www.example.com/",
src: img_path
}],
name: "title",
href: "http://www.example.com/",
caption: "test",
description: "test",
properties: {
"Link": { text: "Link", href: path},
"Link": { text: "Link", href: path}
}
},
action_links:
[{
text: "",
href: ""
}]
};
Facebook.ui("stream.publish", o, callback, "iframe");
}
Upvotes: 2