Ios 是否可以使用facebook SDK从facebook的喜爱页面获取用户帖子
嗨,现在我正试图得到所有的用户在特定页面上的帖子。我使用这种方法首先获取登录用户喜欢的所有页面Ios 是否可以使用facebook SDK从facebook的喜爱页面获取用户帖子,ios,facebook,facebook-graph-api,facebook-sdk-3.0,Ios,Facebook,Facebook Graph Api,Facebook Sdk 3.0,嗨,现在我正试图得到所有的用户在特定页面上的帖子。我使用这种方法首先获取登录用户喜欢的所有页面 [FBRequestConnection startWithGraphPath:@"/me/likes" parameters:nil HTTPMethod:@"GET" comp
[FBRequestConnection startWithGraphPath:@"/me/likes"
parameters:nil
HTTPMethod:@"GET"
completionHandler:^(
FBRequestConnection *connection,
id result,
NSError *error
) {
// NSLog(@"reselut %@",result);
/* handle the result */
}];
然后,对于特定的页面提要,我使用以下方法获得所有帖子:
[FBRequestConnection startWithGraphPath:@"/123456789/feed" //as documentation said that need to put page-id
parameters:nil
HTTPMethod:@"GET"
completionHandler:^(
FBRequestConnection *connection,
id result,
NSError *error
) {
NSLog(@"reselut %@",result);
/* handle the result */
}];
我阅读并试图用这句话来暗示
/{page id}/feed 此页面或此页面上其他人发布的帖子(包括状态更新)和链接的提要。还有其他边提供此边的过滤版本: 所有这些派生边共享完全相同的读取结构,但是/feed应用于所有发布目的 但我只想得到那个些由登录用户发布到特定页面的帖子。这可能吗。如果是的话,请指导我
/{page-id}/posts shows only the posts that were published by this page.
/{page-id}/tagged shows only the posts that this page was tagged in.
/{page-id}/promotable_posts shows only the posts that can be boosted (includes unpublished and scheduled posts).