Facebook Graph API - 获取一天的个人墙帖

时间:2015-10-09 17:30:35

标签: facebook facebook-graph-api

我正在使用Graph Explorer并尝试获取我朋友在特定日期(我的生日)发送给我的每个墙贴。

我的请求是Feed: https://graph.facebook.com/100000015733365/feed?access_token=xyz&since=7+October+2015

响应:

    {
    "data": [
    {
        "id": "<post_id_2>",
        "from": {
            "name": "<name2>",
            "id": "<id2>"
        },
        "story": "<name2> and 69 others wrote on your timeline.",
        "story_tags": {
        "0": [
            {
                "id": "<id2>",
                "name": "<name2>",
                "type": "user",
                "offset": 0,
                "length": 8
            }
            ],
            "37": [
            {
                "id": "<my_id>",
                "name": "<my_name>",
                "type": "user",
                "offset": 37,
                "length": 8
            }
            ],
            "13": [
            {
                "id": "<id3>",
                "name": "<name3>",
                "type": "user",
                "offset": 13,
                "length": 9
            },
            {
                "id": "<id4>",
                "name": "<name4>",
                "type": "user",
                "offset": 13,
                "length": 9
            },
            {
                "id": "<id5>",
                "name": "<name5>",
                "type": "user",
                "offset": 13,
                "length": 9
            }
            ]
        },
        "privacy": {
        "value": "",
        "description": "",
        "friends": "",
        "allow": "",
        "deny": ""
        },
        "type": "status",
        "status_type": "wall_post",
        "created_time": "2015-10-07T20:43:07+0000",
        "updated_time": "2015-10-07T20:43:07+0000",
        "is_hidden": false,
        "is_expired": false
    }

似乎Facebook按内容对帖子进行分组,它在我的墙上(在网络浏览器中)没问题但是如何通过API调用关闭此行为? 即使我彻底阅读了API参考资料,也找不到与此相关的任何设置。

我一个接一个地需要这些分组的帖子,因为我想在python中处理它们,因为我无法使用图形资源管理器实现这一点我认为现在不发布python代码是可以的。

另一种方法是将这个“故事”扩展为单个帖子的列表,但根据文档,这很好地隐藏了。

感谢任何帮助,谢谢!

0 个答案:

没有答案