2012-08-22 3 views
0

확인을 내가 세션이 활성화되어 있음을 확인할 수 있습니다 벽합니다. 토큰이 2012-10-21에 만료되어 문제가 아님을 확인할 수 있습니다.페이스 북 사진 업로드

FBRequest : 다음

- (void)facebookPhotoUpload{ 
    UIImage *postImage = combinedImage; 
    if(combinedImage == nil){ 
     postImage = badgeImage.image; 
    } 

    NSLog(@"%@", [appDelegate.facebook expirationDate]); 

    NSMutableDictionary* params = [NSMutableDictionary dictionary]; 
    [params setObject:strMessage forKey:@"message"]; 
    if (postImage) { 
     [params setObject:postImage forKey:@"source"]; 
     [appDelegate.facebook requestWithGraphPath:@"me/photos" andParams:params 
            andHttpMethod:@"POST" 
             andDelegate:self]; 
    } else { 
     [appDelegate.facebook requestWithGraphPath:@"me/feed" andParams:params 
            andHttpMethod:@"POST" 
             andDelegate:self]; } 
} 

그것을 : 0x9138950 여기

내가 페이스 북의 요청을 전송하고있는 곳입니다 나는 또한이 같은 응답을 reeive로 요청이 페이스 북에 보내지는 것을 확인할 수 있습니다 이 함수에 도달 :

- (void)requestLoading:(FBRequest *)request{ 
    NSLog(@"Your facebook request is loading... %@", request); 
} 

및 요청 메모리 주소를 반환합니다. 위대한 그래서 그 멀리 일하고.

나는이 후 다른 반응을 얻을 그러나

...

다른 누구도이 문제를 경험 한 적이 있습니까? 누구든지이 문제를 해결하는 방법을 알고 있습니까?

답변

0

이 솔루션은 메인 스레드에서 귀하의 facebookPhotoUpload 요청을 호출하는 것입니다. 그것을 다른 스레드에서 실행하면 페이스 북에 대한 요청을 올바르게받지 못하게됩니다. 또한 여기에 또 다른 stackoverflow 질문이 있는데 왜이 동작이 존재하는지에 대한 깊은 설명과 함께/비슷한 문제가 있습니다. Facebook request thread problem

관련 문제