2010-09-17 120 views
1

我正在開發一個iPad應用程序,我需要共享一個Youtube視頻鏈接到Facebook。 我使用FBStreamDialog的圖片共享如下: 但是,我不知道如何分享視頻(我想知道像媒體類型,SRC,HREF等參數)使用FBStreamDialog共享Youtube視頻到Facebook

FBStreamDialog* dialog = [[[FBStreamDialog alloc] init] autorelease]; 
dialog.delegate = self; 
dialog.targetId = <facebookUserId?; 
dialog.userMessagePrompt = @"What's in your mind?"; 
dialog.attachment = @"{\"name\":\"Sample Photo\"," 
        "\"href\":\"http://abstract.desktopnexus.com/wallpaper/250923\"," 
         "\"caption\":\"MyAppName\",\"description\":\"Testing share\"," 
         "\"media\":[{\"type\":\"image\"," 
         "\"src\":\"http://static.desktopnexus.com/wallpapers/250923-bigthumbnail.jpg\"," 
         "\"href\":\"http://abstract.desktopnexus.com/wallpaper/250923\"}]," 
         "\"properties\":{\"another link\":{\"text\":\"Facebook home page\",\"href\":\"http://www.facebook.com\"}}}" 

[dialog show]; 
莫非

別人的幫助我? 感謝和問候, Deepa

回答

1

我已經解釋了here用於共享的所有Facebook Meta標籤。 你可以看看這篇文章,它可能是有用的。