2012-01-25 68 views

回答

3

这正常工作对我来说,使用Pinterest的为例:

请求friends_actions:pinterestapp允许在身份验证对话框,并确认它被授予调用/me/permissions

{ 
    "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

回复格式为:

{ 
    "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>

+0

如何从New Auth对话框请求friends_actions:pinterestapp权限? –

+0

'&scope = friends_actions:pinterestapp'在对话框中的调用 - 我不认为你可以将此添加到经过验证的推荐设置的预先输入,尽管 – Igy

+0

有没有办法在没有朋友ID的CSV列表的情况下执行此操作?即。我们可以得到所有在Open Graph对象上采取特定动作的朋友的列表吗? –