iOS SDK feed 对话框中的缩略图未出现(显示为“?”)
问题是在提要对话框中 - 我们看到一个?用于缩略图而不是实际的缩略图。
我们的应用程序创建可以在网络上查看的全景内容。 在台式机/笔记本电脑 Web 浏览器上 - 内容打包为 SWF。 在移动 Safari 上 - 我们使用 HTML5。 如果检测到 safari 移动浏览器,默认网页 (index.html) 会自动重定向到 IOS 特定版本的页面。
我们希望通过对话框在 Facebook 上发布此网页内容的链接(以便用户可以预览该帖子)。 帖子完成并被查看后:
- 在 Facebook 应用程序的移动版本中 - 我们希望用户看到
- 缩略图(和其他描述性文本)。
- 如果他们点击缩略图 - 它应该会打开另一个包含 HTML5 内容的浏览器页面。
- 在 facebook 的非移动 safari 网络版本中 - 我们希望用户看到带有播放图标的 SWF 缩略图 - 如果他们单击该图标,页面就会加载到墙上。
我已经对应用程序进行了一些更改,包括:
- 更改了服务器上生成的页面以包含 OG(开放图谱)元标记。我修改的页面现在通过了开发人员 lint 工具。如果我尝试从网站发布到此页面的链接 - 缩略图会自动确定(如预期)。
- 我从使用对话框“stream.publish”切换到“feed”,现在提供了预期的新参数集 - 包括“源”(SWF URL)和“图片”(缩略图的 URL)。
以下是提要对话框的当前参数集:
Printing description of params:
<CFBasicHash 0x6a790a0 [0x3fdd69f8]>{type = mutable dict, count = 8, entries =>
0 : <CFString 0x118f50 [0x3fdd69f8]>{contents = "link"} = <CFString 0x6a79080 [0x3fdd69f8]>{contents = "http://media.demodev.everyscape.com/TOURX/503/3023503/INDEX.HTML"}
1 : <CFString 0x117970 [0x3fdd69f8]>{contents = "description"} = <CFString 0x118f20 [0x3fdd69f8]>{contents = "Virtual tour created using free UScapeit app"}
3 : <CFString 0x118f90 [0x3fdd69f8]>{contents = "caption"} = <CFString 0x118f80 [0x3fdd69f8]>{contents = "Explore this place"}
4 : <CFString 0x117880 [0x3fdd69f8]>{contents = "name"} = <CFString 0x272250 [0x3fdd69f8]>{contents = "ES Cnxn test Dev"}
5 : <CFString 0x118f60 [0x3fdd69f8]>{contents = "picture"} = <CFString 0x6a78e80 [0x3fdd69f8]>{contents = "http://media.demodev.everyscape.com/TOURX/503/3023503/TOUR.THUMBNAIL.JPG"}
8 : <CFString 0x118f30 [0x3fdd69f8]>{contents = "api_key"} = <CFString 0x116cf0 [0x3fdd69f8]>{contents = "154419894617497"}
9 : <CFString 0x118f40 [0x3fdd69f8]>{contents = "user_message_prompt"} = <CFString 0x6a78e10 [0x3fdd69f8]>{contents = "What do you think of the Scape ES Cnxn test Dev?"}
10 : <CFString 0x118f70 [0x3fdd69f8]>{contents = "source"} = <CFString 0x6a79020 [0x3fdd69f8]>{contents = "http://media.demodev.everyscape.com/TOURX/503/3023503/TOUR.SWF"}
}
最后 - 我 a) 研究了文档(以进行上面所做的更改),b) 研究了现有的问题/答案 - 包括以下内容:
如果有人可以告诉我如何修改此应用程序的客户端和/或服务器端以在提要对话框中查看缩略图,我将不胜感激。
谢谢, 查克
The problem is that in the feed dialog - we see a ? for the thubmnail rather than an actual thumbnail image.
Our application creates panoramic content which can be viewed on the web.
On desktop/laptop web browsers - the content is packaged as a SWF.
On mobile safari - we use HTML5.
The default web page (index.html) automatically redirects to the IOS specific version of the page if the safari mobile browser is detected.
We wish to post links to this web content on Facebook via a dialog (so the user can preview the post).
After the post is complete and it is being viewed:
- In the mobile versions of the facebook application - we want the users to see
- a thumbnail (and other descriptive text).
- if they click on the thumbnail - it should open another browser page with the HTML5 content.
- In the non-mobile-safari web versions of facebook - we want the user to see a SWF thumbnail with a play icon - and if they click the icon the page loads in the wall.
I have already made a number of changes to the app, including:
- Changed the generated pages on the server to include the OG (Open Graph) meta tags. The page I modified now passes the developer lint tool. If I attempt to post a link to this page from the website - the thumbnail is determined automatically (as expected).
- I switched from using the dialog "stream.publish" to "feed" and I now provide the new set of arguments expected - including "source" (the SWF URL) and "picture" (the URL of the thumbnail).
Here is the current set of parameters to the feed dialog:
Printing description of params:
<CFBasicHash 0x6a790a0 [0x3fdd69f8]>{type = mutable dict, count = 8, entries =>
0 : <CFString 0x118f50 [0x3fdd69f8]>{contents = "link"} = <CFString 0x6a79080 [0x3fdd69f8]>{contents = "http://media.demodev.everyscape.com/TOURX/503/3023503/INDEX.HTML"}
1 : <CFString 0x117970 [0x3fdd69f8]>{contents = "description"} = <CFString 0x118f20 [0x3fdd69f8]>{contents = "Virtual tour created using free UScapeit app"}
3 : <CFString 0x118f90 [0x3fdd69f8]>{contents = "caption"} = <CFString 0x118f80 [0x3fdd69f8]>{contents = "Explore this place"}
4 : <CFString 0x117880 [0x3fdd69f8]>{contents = "name"} = <CFString 0x272250 [0x3fdd69f8]>{contents = "ES Cnxn test Dev"}
5 : <CFString 0x118f60 [0x3fdd69f8]>{contents = "picture"} = <CFString 0x6a78e80 [0x3fdd69f8]>{contents = "http://media.demodev.everyscape.com/TOURX/503/3023503/TOUR.THUMBNAIL.JPG"}
8 : <CFString 0x118f30 [0x3fdd69f8]>{contents = "api_key"} = <CFString 0x116cf0 [0x3fdd69f8]>{contents = "154419894617497"}
9 : <CFString 0x118f40 [0x3fdd69f8]>{contents = "user_message_prompt"} = <CFString 0x6a78e10 [0x3fdd69f8]>{contents = "What do you think of the Scape ES Cnxn test Dev?"}
10 : <CFString 0x118f70 [0x3fdd69f8]>{contents = "source"} = <CFString 0x6a79020 [0x3fdd69f8]>{contents = "http://media.demodev.everyscape.com/TOURX/503/3023503/TOUR.SWF"}
}
Finally - I have a) researched the documentation (to make the changes I made above), and b) researched existing questions/answers - including the following:
If anyone can tell me how to modify the client and/or server sides of this application to see the thumbnail image in the feed dialog, I would appreciate it.
Thanks,
Chuck
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论