【问题标题】:How to retrieve Facebook likes with descriptions如何检索带有描述的 Facebook 赞
【发布时间】:2023-03-10 19:26:01
【问题描述】:

如何获取带有描述的 facebook 喜欢列表(用户喜欢的页面)

我正在使用/me/likes 对象,但它不会给我喜欢的描述。我知道我可以将 FQL 与 "WHERE page_id in (LIST_OF_IDS)" 一起使用 - 或者单独请求每个喜欢的对象

有没有办法通过一个请求获得它?

【问题讨论】:

    标签: facebook facebook-graph-api set facebook-fql facebook-opengraph


    【解决方案1】:

    是的,这可以通过 FQL 使用以下查询来完成:

    SELECT 名称,描述 FROM page WHERE page_id IN (SELECT page_id FROM page_fan WHERE uid=me())

    https://developers.facebook.com/tools/explorer?fql=SELECT%20name%2C%20description%20FROM%20page%20WHERE%20page_id%20IN%20(SELECT%20page_id%20FROM%20page_fan%20WHERE%20uid%3Dme())%0A

    【讨论】:

      【解决方案2】:

      或者这种方式使用 Graph APIUSER_ID?fields=likes.fields(description)

      【讨论】:

        【解决方案3】:

        如果可以使用 Graph API,请不要使用 FQL。 Graph API 通常更快更容易:

        me/likes?fields=id,name,description
        

        结果(来自我的帐户):

        "data": [
        {
          "id": "244993732224805",
          "name": "Jón Gnarr",
          "created_time": "2012-12-06T00:35:43+0000"
        },
        {
          "id": "161086703983",
          "name": "Design Shack",
          "description": "We only offer the cream of great design, filtering through lots of the redesigns that occur every day across the Internet, and cataloguing the greatest projects out there - perfect for getting that spark of creativity going again.\n\t\nRegular articles will teach you new techniques for creating your own designs, and daily community news ensures that you're up to date with the latest developments elsewhere.\n\t\nIf you want to be updated every time a new design or tutorial is added, you can subscribe:\n\t\nDesign Shack RSS Feed\nhttp://feeds.feedburner.com/designshack\n\nTwitter\nhttp://twitter.com/designshack",
          "created_time": "2012-12-04T14:40:08+0000"
        },
        {
          "id": "274797542535942",
          "name": "Chasing Aurora",
          "description": "Chasing Aurora is an explorative 2D aerial action game about the dream of flight.\n\nDrop from the cliff and ride the wind from peak to peak. Fight for the beacon of light with up to three friends in the hostile environment of the Alps.",
          "created_time": "2012-12-04T12:07:13+0000"
        }, 
        ...
        

        【讨论】:

          猜你喜欢
          • 2012-03-27
          • 1970-01-01
          • 1970-01-01
          • 2015-08-08
          • 2013-01-02
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2011-03-27
          相关资源
          最近更新 更多