2013-02-08 2 views

답변

0

는 또한 같은 문제에 직면하고있다. @ bitmapdata.com 나는 피드를 게시 할 내가

function newsFeed():void 
     { 
    var theCaption:String = user.Name+" Shared this Video "; 
    var theDescription:String = user.Name+" become a star."; 
    var methodInput:String = 'feed'; 
    var thePicture:String = "http://xyz.com/logo.png"; 
    var theLink:String = this.flvPath; 
    var theSource:String = this.flvPath, 
    var theName:String = "Star Post"; 

var data:Object = { 
       caption:theCaption,    
       description:theDescription, 
       picture:thePicture, 
      source:theSource, 
       name:theName, 
       link:theLink 
      }; 
      Facebook.ui(methodInput, data, onUICallback); 
} 

그것은 골대에 게시하지만 페이스 북에 비디오를 표시하지 다음 코드를 사용하고 있습니다. 게시물 제목이나 이미지를 클릭하면 동영상이 다운로드됩니다. 친구들이 비디오를 볼 수 있도록 사용자 벽에 비디오를 게시하고 싶습니다.

0

동영상을 업로드하려면 아래 코드를 확인하십시오.

flv를 byteArray로 빨리 변환하려는 경우. 이 기사 읽기 : flv encoder alchemy

function uploadVideo(ba:ByteArray) 
{ 
    var videoObj:Object=new Object(); 
    videoObj.title = "My Video Title"; 
    videoObj.description = "My Video Description"; 
    videoObj.fileName ="myVideo.flv" 
    videoObj.video = ba; 
    Facebook.uploadVideo("/me/videos",videoUploaded,videoObj); 
} 

function videoUploaded(response:Object,fail:Object) 
{ 
    if(response) 
    { 
    trace("success"); 
    } 
    if(fail) 
    { 
    trace("failed"); 
    } 
} 

유튜브 비디오 링크 올리기.

확인이 : Posting an embedded video link using the Facebook Graph API