Ios 我正在尝试使用Facebook SDK获取Facebook帖子

Ios 我正在尝试使用Facebook SDK获取Facebook帖子,ios,objective-c,facebook,facebook-graph-api,facebook-ios-sdk,Ios,Objective C,Facebook,Facebook Graph Api,Facebook Ios Sdk,但它是空的 {data=();} 我使用了public\u profile,email,read\u stream作为权限,我需要添加更多的内容?很可能您没有获得应用程序阅读墙的权限 如果以编程方式创建登录控件 [FBRequestConnection startWithGraphPath:@"/me/statuses" parameters:nil HTTPMethod:@"GET"

但它是空的

{data=();}


我使用了
public\u profile
email
read\u stream
作为权限,我需要添加更多的内容?

很可能您没有获得应用程序阅读墙的权限

如果以编程方式创建登录控件

[FBRequestConnection startWithGraphPath:@"/me/statuses"
                     parameters:nil
                     HTTPMethod:@"GET"
                     completionHandler:^( FBRequestConnection *connection,
                                            id result,
                                            NSError *error) {
                                                NSLog(@"result: %@",result);
                                            }]; 
如果您通过Interface Builder使用
FBLoginView
,则可以通过
FBLoginView
实例的
readPermissions
属性设置读取权限:

FBLoginView *loginView = 
    [[FBLoginView alloc] initWithReadPermissions:
        @[@"public_profile", @"read_stream"]];
正确获得权限后,您将开始使用
/me/feed



您可以检查您的应用程序是否具有所需的权限-。如果没有,请从此列表中删除你的应用程序,并使用你的应用程序重新验证

r您无法获取页面帖子或墙帖。重新检查您是否发布了任何“状态”,并且该应用程序被授予“读取流”权限
/statuses
只提供状态,而不是共享的链接等。要获得完整的墙,请使用
/feed
@Anbu.Karthik:wallposts@SahilMittal当前位置我已发布状态。我需要在哪里为我的应用程序授予read_stream权限。即使我喂它,它也是空的
// In your view header file:
@property (weak, nonatomic) IBOutlet FBLoginView *loginView;

// In your viewDidLoad method:
self.loginView.readPermissions = @[@"public_profile", @"read_stream"];