Facebook API:如何获得选项结果(投票)

时间:2017-05-05 08:11:31

标签: php facebook facebook-graph-api curl options

也许是一个愚蠢的问题,但我正试图通过使用Facebook API(使用CuRL)的Facebook民意调查获得投票结果。

到目前为止取得的成就如下:

  • 我可以使用Facebook的ID获取帖子:

1697904123837315?字段= CREATED_TIME,消息,附件{标题,类型,subattachments,URL}

{
  "created_time": "2017-05-04T08:29:50+0000",
  "message": "Hey All, 
It's time for Temptation Thursdays!
For this week, we have decided to pick a puzzle/adventure video game series! As follows:-
TT49 - Professor Layton from the Professor Layton series.
Question: I'll get straight to the point, If F4F opened a preorder for this, would you buy?
Last week's TT48 - Rikimaru from the Tenchu series results can be viewed at the below link.
Happy Voting:)
----------------------------
To nominate for characters that you would like to appear in a future poll, please add comments at the following link.
F4FNOMINATE - Character nominations - 
https://www.facebook.com/groups/first4figures/permalink/1570468996580829/
TT48 - Rikimaru from the Tenchu series poll - https://www.facebook.com/groups/first4figures/permalink/1695290604098667/
Note: Every week on this day there will be a spotlight poll for everyone to participate in. 
This spotlight poll is to give the lesser known characters a chance to shine and if there is enough interest, we will look into it with serious thoughts. Of course, this is just to gauge interest for now and doesn't mean its guaranteed to be made. Though, never say never:P",
  "id": "1522682788026117_1697904123837315",
  "attachments": {
    "data": [
      {
        "title": "Hey All, 
It's time for Temptation Thursdays!
For this week, we have decided to pick a puzzle/adventure video game series! As follows:-
TT49 - Professor Layton from the Professor Layton series.
Question: I'll get straight to the point, If F4F opened a preorder for this, would you buy?
Last week's TT48 - Rikimaru from the Tenchu series results can be viewed at the below link.
Happy Voting:)
----------------------------
To nominate for characters that you would like to appear in a future poll, please add comments at the following link.
F4FNOMINATE - Character nominations - 
https://www.facebook.com/groups/first4figures/permalink/1570468996580829/
TT48 - Rikimaru from the Tenchu series poll - https://www.facebook.com/groups/first4figures/permalink/1695290604098667/
Note: Every week on this day there will be a spotlight poll for everyone to participate in. 
This spotlight poll is to give the lesser known characters a chance to shine and if there is enough interest, we will look into it with serious thoughts. Of course, this is just to gauge interest for now and doesn't mean its guaranteed to be made. Though, never say never:P",
        "type": "question",
        "subattachments": {
          "data": [
            {
              "target": {
                "id": "128333874381596"
              },
              "title": "No",
              "type": "option"
            },
            {
              "target": {
                "id": "205859476588093"
              },
              "title": "Yes",
              "type": "option"
            }
          ]
        },
        "url": "https://www.facebook.com/groups/first4figures/permalink/1697904123837315/"
      }
    ]
  }
}

  • 但是我无法获得每个选项的投票数量。调用选项ID时,我收到错误“请求此资源需要访问令牌”。 (OAuthException,104)。但:
    • 我正在使用AccessToken
    • 我尝试启用所有复选框无效

我正在使用最新版本(v2.9)和Graph API Explorer进行测试。

0 个答案:

没有答案