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