2012-01-25 70 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對象上採取特定動作的朋友的列表嗎? –