2013-05-16 3 views
0

페이스 북 그룹을 좋아하는 기능을 작성하고 싶습니다. 내 코드는 대략 다음iOS, facebook sdk. 그룹 페이지의 구체적인 예와 같은 버튼입니까?

NSString *urlString = [NSString stringWithFormat:@"%@/likes", fbIdentifier]; 
NSMutableDictionary *dict = [NSMutableDictionary dictionary]; 
if (!facebook.accessToken) { 

    [self login:nil]; 
    return; 
} 
[facebook requestWithGraphPath:urlString andParams:dict andHttpMethod:@"POST" andDelegate:self]; 

을하고 그 결과는 다음과 같습니다

Error Domain=facebookErrDomain Code=10000 "The operation couldn’t be completed. (facebookErrDomain error 10000.)" UserInfo=0x1dd77bc0 {error={ 
    code = 3; 
    message = "(#3) Application does not have the capability to make this API call."; 
    type = OAuthException; 
}} 

과 답변의 많은 페이스 북 SDK 또는 예에 이전 버전을 참조하기 때문에 내 질문에, 중복을지지 않습니다 외부 페이지, 객체 등을 포함하지만 내부 페이지는 포함하지 않습니다.

답변

1

그래프 API에서 페이지를 좋아할 수 없으며 개체 (URL, 이미지) 만 좋아할 수 있습니다.

+0

감사합니다. 나는 그것을 고쳤으며, 이제는 페이지에 대한 액션처럼 실제로 지원하지 않는다고 쓴다. – user2159978