1
내가 작업하고있는 iPhone 앱에 Facebook 북 게시물을 구현하려고합니다.Facebook iPhone SDK - 자동으로 PublishSteam (벽에 게시 대화 상자 무시)
"벽에 게시"대화 상자를 무시하고 바로 제출할 수있는 방법은 무엇입니까?
기본적으로 나는 URL을 게시하려하고 있으며 사람들이 "Write something"텍스트 상자를 볼 수있게하고 싶지 않습니다.
여기에 샘플 앱의 코드가 있습니다.
SBJSON *jsonWriter = [[SBJSON new] autorelease];
NSDictionary* actionLinks = [NSArray arrayWithObjects:[NSDictionary dictionaryWithObjectsAndKeys:
@"Always Running",@"text",@"http://itsti.me/",@"href", nil], nil];
NSString *actionLinksStr = [jsonWriter stringWithObject:actionLinks];
NSDictionary* attachment = [NSDictionary dictionaryWithObjectsAndKeys:
@"a long run", @"name",
@"The Facebook Running app", @"caption",
@"it is fun", @"description",
@"http://itsti.me/", @"href", nil];
NSString *attachmentStr = [jsonWriter stringWithObject:attachment];
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"Share on Facebook", @"user_message_prompt",
actionLinksStr, @"action_links",
attachmentStr, @"attachment",
nil];
[_facebook dialog:@"feed"
andParams:params
andDelegate:self];
는
가 티