开发者

Publish flash contents to Facebook stream

开发者 https://www.devze.com 2023-04-13 09:45 出处:网络
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.

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
   })
}
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号