【问题标题】:Facebook API retrieving Facebook Event HostedBYFacebook API 检索 Facebook 事件 HostedBY
【发布时间】:2017-09-15 16:09:02
【问题描述】:

因此,我正在为我的公司构建一个应用程序,该应用程序从不同站点获取多个不同的 API,以从该地区的酒店中获取事件。

我已经为 Facebook 工作了......但我正在尝试弄清楚如何访问与事件关联的“托管者”字段。

https://graph.facebook.com/v2.10/[EventID]?access_token=[Accesstoken] 为我提供了我需要的所有活动信息...除了“Hosted By”personID。

有人熟悉这个吗?当我查看事件页面的来源时,我可以找到 Hosted by Webpage 的 URL,但在任何地方都找不到链接。我搜索了每个论坛,并阅读了 Facebook API 文档,但似乎缺少这个。

【问题讨论】:

    标签: facebook facebook-graph-api


    【解决方案1】:

    我假设这实际上是 Admin 字段和 Owners 连接,但这是从https://developers.facebook.com/docs/graph-api/reference/event/ 做出一些假设

    https://www.facebook.com/events/1018032181661092

    $ oksocial https://graph.facebook.com/1018032181661092/admins
    {
      "data": [
        {
          "id": "796783270463511",
          "name": "London Events, Concerts & Parties"
        },
        {
          "id": "564808213723724",
          "name": "Best Places in the UK"
        }
      ],
      "paging": {
        "cursors": {
          "before": "Nzk2NzgzMjcwNDYzNTEx",
          "after": "NTY0ODA4MjEzNzIzNzI0"
        }
      }
    }
    
    $ oksocial https://graph.facebook.com/1018032181661092?fields=name,description,parent_group,owner
    {
      "name": "Winter Wonderland 2017",
      "description": "Winter Wonderland, Hyde Park in London from 17 november!\n\nEvery year this massive Christmas event takes place in Hyde Park. Each year it is bigger with more rides etc.\n\nHyde Park Winter Wonderland is a spectacular festive event in the heart of the capital. For six weeks, London’s famous Hyde Park is transformed into a magical wonderland of winter festivities.\nIt’s FREE to enter so you can walk around at your leisure and soak up the atmosphere.\n\nWinter Wonderland offers a dazzling array of activities and entertainment. Enjoy skating around the UK’s largest open-air ice rink, have an arctic adventure in the Magical Ice Kingdom, see jaw-dropping circus shows, world-class ice dancing in The Nutcracker on Ice and see stunning views across London in the Giant Observation Wheel. There’s over 100 spectacular festive rides and attractions, London’s largest German-style Christmas Markets, plus a wealth of delicious food and mulled wine aplenty!\n\n► The entrance to Winter Wonderland is FREE\n\nTickets for Winter Wonderland attractions:\n► http://hydeparkwinterwonderland.com/\n\n Find things you could do in London: \n► http://tidd.ly/a4bdd6cb\n\nBook here your stay in London:\n► http://tidd.ly/d20e50cb\n\nCinderella on Ice Tickets:\n► http://tidd.ly/fb287a8c\n\nAll London event highlights:\n► www.facebook.com/london.events.concerts/",
      "owner": {
        "name": "Best Places in the UK",
        "id": "564808213723724"
      },
      "id": "1018032181661092"
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-05-06
      • 1970-01-01
      相关资源
      最近更新 更多