javascript - 使用适用于 Tizen 的 Facebook API 上传视频?

标签 javascript facebook html facebook-graph-api tizen

我想知道如何使用 Facebook API 和以 HTML5 开发的 Tizen 应用程序上传视频。谁能说一下如何整合..?

最佳答案

小部件内的代码应该类似于将视频上传到 Facebook 的任何其他 JavaScript 实现,示例请参见:Facebook video upload via Graph API Javascript SDK

唯一需要注意的是 any resource that it is accessed outside should be declared(see Accessing External Network Resources):

You cannot access external network resources by default (WARP: W3C Access Requests Policy). So, you must request permissions for the widget to retrieve network resources. You can enter several URLs by using the Add button on the Access tab. For each URL, you can indicate if you want to allow the widget to access the URL sub-domains. The Allow subdomain column contents can be toggled by mouse clicks.

因此,如果无法访问 config.xml 中定义的案例所需的资源,它就无法工作:

<access origin="https://graph.facebook.com/USER_ID/videos" subdomains="true"/>

关于javascript - 使用适用于 Tizen 的 Facebook API 上传视频?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14751734/

相关文章:

ios - PFUser currentUser 在使用 Parse SDK 登录 Facebook 后返回 nil

facebook - 是否可以将 Facebook 的评论插件与图形对象 ID/图形 URL 而不是 www URL 一起使用?

javascript - 流体元素和溢出问题

javascript - 从 firebase 读取 Json 到 Google graph

facebook - 从 Facebook 页面检索帖子和评论

html - 使用 Selenium WebDriver (Java) 在笔记本 (HTML5) 上翻页

html - 如何调整选择下拉高度

javascript - 通过在 tinymce 中显示来剥离 &lt;![if !mso]>

javascript - 折叠时更改同一级别上的前一个图标

javascript - 连接javascript文件仍然有利吗?