我正在开发一个iPad应用程序,其中我需要分享一个Youtube视频链接到脸书。我正在使用FBStreamDialog进行图片分享,如下所示:但是,我不知道如何分享视频(我想知道媒体类型,源,href等参数)
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
发布于 2011-04-15 15:12:17
我已经解释了here所有用于分享的Facebook Meta标签。你可以看看这篇文章,它可能会很有用。
https://stackoverflow.com/questions/3734890
复制相似问题