简体   繁体   中英

iOS facebook sdk getting private posts of all my friends

i'm new to iPhone programming and 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:

[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.

See Facebook Graph API 2 permission to allow "Stories shared with you: check-ins, photos, status updates and videos"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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