2011-05-05 5 views
0

Facebook에 이미지를 업로드하는 동안 Facebook에 메시지를 게시하려면 어떻게합니까?Facebook의 이미지와 함께 메시지 게시

내 프로젝트에서 나는 페이스 북에서 이미지를 업로드하는 데 FBFeedPost을 사용하고 있으며 정상적으로 작동하지만 이미지와 함께 메시지를 게시해야합니다.

+1

가능한 중복 : 그것이 이미지와 텍스트

SHKItem *item = [SHKItem image:myImage title:@"Look at me!"]; [SHKFacebook shareItem:item]; 

있어

SHKSharer *service = [[[SHKFacebook alloc] init] autorelease]; [service authorize]; 

후 있음 : //stackoverflow.com/questions/2437574/) [2] (http://stackoverflow.com/questions/5881676/) [3] (http://stackoverflow.com/questions/5391136/) [ 4] (http://stackoverflow.com/questions/2498398/) [5] (http://stackoverflow.com/questions/5637252/) [6] (http://stackoverflow.com/questions/4351830/) [& c.] (http://stackoverflow.com/search?q=message+facebook+%5Bobjc%5D) –

답변

1

여러분이 요청한 페이스 북 기능을 쉽게 설정하고 지원할 것을 권합니다. ShareKit. 승인을 설치 한 후

은 이루어집니다 : [1] (HTTP :

SHKItem *item = [SHKItem text:text]; 
[SHKFacebook shareItem:item]; 
+0

어떻게 이미지, URL 및 제목을 추가 하시겠습니까? SHKItem * item = [SHK 항목 이미지 : myImage url : url 제목 : @ "나를보세요!"]; 인수 오류가 너무 많습니다. 감사합니다 – hanumanDev

+0

나는 또한 당신이 [BMSocialShare] (http://github.com/blockhaus/BMSocialShare) 시도, 내가 쓴 lib주고 줄 것을 제안합니다. Facebook, Twitter 및 Email 만 사용하려는 경우 ShareKit보다 간단합니다. – vinzenzweber

관련 문제