首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Facebook Open Graph - friends_actions:{app_namespace}错误

问Facebook Open Graph - friends_actions:{app_namespace}错误
EN

Stack Overflow用户
提问于 2012-01-25 14:09:49
回答 1查看 374关注 0票数 1

根据this post的说法,当请求friends_actions:{app_namespace}权限时,可以检索应用程序上的好友活动。

但是,当我请求该权限时,该权限不会出现在身份验证对话框中。有没有人知道这个错误?

EN

回答 1

Stack Overflow用户

发布于 2012-06-13 19:23:45

这对我来说很好,以pinterest为例:

在身份验证对话框中请求friends_actions:pinterestapp权限,并验证是否已通过调用/me/permissions授予该权限

代码语言:javascript
复制
{
  "data": [
    {
      "installed": 1, 
      "read_stream": 1, 
      //Snipped a bunch of irrelevant actions
      "user_actions:pinterestapp": 1, 
      "friends_actions:pinterestapp": 1, 
    }
  ]
}

调用/[friend who uses pinterest's ID]/pinterestapp:pin

响应格式为:

代码语言:javascript
复制
{
  "data": [
    {
      "id": "10100800772217878", 
      "from": {
        "id": "REMOVED ID", 
        "name": "REMOVED NAME"
      }, 
      "start_time": "2012-06-13T11:08:37+0000", 
      "end_time": "2012-06-13T11:08:37+0000", 
      "publish_time": "2012-06-13T11:08:37+0000", 
      "application": {
        "id": "274266067164", 
        "name": "Pinterest "
      }, 
      "data": {
        "pin": {
          "id": "10150834999992132", 
          "url": "http://pinterest.com/pin/REMOVED_ID/?timeline=1", 
          "type": "pinterestapp:pin", 
          "title": "Runway"
        }
      }, 
      "likes": {
        "count": 0
      }, 
      "comments": {
        "count": 0
      }
    }, 
//SNIP

对于多个朋友,您可以调用/pinterestapp:pin?ids=<CSV LIST OF USER IDS OF FRIENDS>

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/8998581

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档