1
안녕하세요, 사용자의 벽에 연결하여 게시하는 앱이 있습니다.하지만 게시를 시도하면 게시 페이지가 열리고 페이지에 이미이 앱에 대한 권한이 부여됩니다. 한 번만 올 수 있기를 원합니다. 내가 그 일을하도록 도와 주시겠습니까?아이폰 앱 페이스 북 연결?
- (id)init {
if (self == [super init]) {
facebook = [[Facebook alloc] initWithAppId:kAppId];
facebook.sessionDelegate = self;
if(permissions==nil){
permissions = [[NSArray arrayWithObjects:
@"read_stream", @"user_birthday",
@"publish_stream", nil] retain];
}
[self login];
}
return self;
}
- (void)login {
if (![_session isConnected]) {
[self postToWall];
}
// only authorize if the access token isn't valid
// if it *is* valid, no need to authenticate. just move on
if (![facebook isSessionValid]) {
[facebook authorize:permissions delegate:self];
}
내가 초기화 방법입니까?