1
我有下面的代碼,邀請人來得到這個程序Facebook應用邀請需要畫布URL
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:nil];
[FBWebDialogs presentRequestsDialogModallyWithSession:nil
message:FACEBOOK_BODY
title:@"Join "
parameters:params
handler:^(FBWebDialogResult result, NSURL *resultURL, NSError *error) {
if (error) {
// Case A: Error launching the dialog or sending request.
NSLog(@"Error sending request.");
} else {
if (result == FBWebDialogResultDialogNotCompleted) {
// Case B: User clicked the "x" icon
NSLog(@"User canceled request.");
} else {
NSLog(@"Request Sent.");
}
}}];
這是基於關閉Facebook的樣品,只有一次得手,我把畫布網址嗎?
這是必需的嗎?我想要它做的是去iTunes網址(尚未填充) 我對畫布應該是什麼知之甚少。
我所注意到的是,出現在web應用程序的通知,但不是在iOS的Facebook應用程序,讓我覺得這是不對