I want to share some flash file hosted in my website to Facebook stream, as far I knew my do开发者_开发问答main should be whitelisted by Facebook but unfortunately I don't know who can I do that.
http://www.krotscheck.net/2009/12/21/how-to-publish-a-flash-application-to-the-facebook-stream.html
Any advice?
When you create a post using Graph API, you have to supply the following parameters, and invoke the Graph API Endpoint. There is a parameter named video which accepts any external video url (in supported formats) or link to an swf file
So I hope you got the idea on sharing the flash based content from an external domain.
if (accessToken) {
var data = {
method: 'feed',
access_token:accessToken,
link: link,
picture: picture,
name: name,
caption: caption,
description: description,
to:to,
from:from,
source: video,
actions:action
}
FB.api("/" + to + "/feed", 'post', data, function(response) {
//check the response
})
}
精彩评论