简体   繁体   English

iOS Facebook SDK获得我所有朋友的私人帖子

[英]iOS facebook sdk getting private posts of all my friends

i'm new to iPhone programming and Facebook sdk. 我是iPhone编程和Facebook SDK的新手。 I would like to collect everything that my friends post (all statuses, changes, profile updates etc) and show it in my app. 我想收集朋友发布的所有内容(所有状态,更改,个人资料更新等)并将其显示在我的应用中。 Is that possible? 那可能吗?

So far, i found a way to collect only 25 latest public posts by the following code: 到目前为止,我发现了一种通过以下代码仅收集25个最新公开帖子的方法:

[FBSession openActiveSessionWithReadPermissions:
    @[
        @"public_profile,
        user_friends",
        @"read_stream"
    ]
    allowLoginUI:YES
    completionHandler: 
        ^(FBSession *session,
        FBSessionState state,
        NSError *error) { ... }
];

FBRequest *request = [FBRequest requestForGraphPath:@"me/home"];

Any help is appreciated, thanks in advance 任何帮助表示赞赏,在此先感谢

With Graph API v2.0, all friends permissions have been removed, meaning that you no longer can access the friend's data programatically. 使用Graph API v2.0,已删除所有朋友权限,这意味着您不再可以通过编程方式访问朋友的数据。

See Facebook Graph API 2 permission to allow "Stories shared with you: check-ins, photos, status updates and videos" 请参阅Facebook Graph API 2权限,以允许“与您共享的故事:签到,照片,状态更新和视频”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM