0

我正在尝试从网站发布基本的交互式 Flash 内容,这些内容可以直接在墙贴本身中查看,我正在尝试做一些这里描述的事情(查看 paranoma 图像),这在边界意义上是在帖子本身中查看 Flash 内容。但是该链接显示了使用以前的 SDK 的示例,这是我编写的代码,它似乎无法正常工作

Bundle postParams = new Bundle();
            postParams.putString("name", "Facebook SDK for Android");
            postParams.putString("caption", "Build great social apps and get more installs.");
            postParams.putString("description", "The Facebook SDK for Android makes it easier and faster to develop Facebook integrated Android apps.");               
            postParams.putString("type", "video");
            postParams.putString("video:width", "560");
            postParams.putString("video:height", "400");
            postParams.putString("video:type", "application/x-shockwave-flash");
//            postParams.putString("link", "http://patrickcheatham.com/wp-content/interactives/panoramas/_common/krpano.swf?" +
//                  "pano=http://patrickcheatham.com/wp-content/interactives/panoramas/201012_shanghai_bund/tour_facebook.xml");
            postParams.putString("picture", "http://patrickcheatham.com/wp-content/uploads/2011/03/shanghai_thumbnail.jpg");

笔记:

  1. 要发布的内容尚未完全结构化,因此使用虚拟数据。
  2. FB 应用程序完美地贴在墙上,而不是它应该的方式。

如果我遗漏了什么,请告诉或者如果您需要其他信息,请索取

4

1 回答 1

0

在通过Graph API-Post之后,我开始了解source并且做到了,也type应该做到了application/x-shockwave-flash

Bundle postParams = new Bundle();
postParams.putString("message", "the message is from DemoApp");
postParams.putString("name", "Panorama images");
postParams.putString("caption", "Test for viewing panorama images in Facebook");
postParams.putString("description", "The Facebook SDK for Android");
postParams.putString("type","application/x-shockwave-flash");              
postParams.putString("source", "http://patrickcheatham.com/wp-content/interactives/panoramas/_common/krpano.swf?" 
                            +"pano=http://patrickcheatham.com/wp-content/interactives/panoramas/201012_shanghai_bund/tour_facebook.xml");
postParams.putString("picture", "http://patrickcheatham.com/wp-content/uploads/2011/03/shanghai_thumbnail.jpg");
于 2013-03-09T06:00:48.137 回答