3

Facebook ポスト ウォール メッセージ (「キャプション」) に新しい行を挿入する方法...\n 他の方法では受け入れられません...

NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                               StrImg, @"picture",
                               StrName, @"name",
                               strURL, @"link",
                               emailBody, @"caption",
                               actionLinksStr, @"actions",
                               nil];


[[delegate facebook] dialog:@"feed"
                  andParams:params
                andDelegate:self];
4

1 に答える 1

0

次のコードを試してください。問題が解決する場合があります。

    - (IBAction)Publish {
        // Show the activity indicator.
        [self showActivityView];

        // Create the parameters dictionary that will keep the data that will be posted.
        NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                       @"My test app", @"name",
                                       @"http://www.google.com", @"link",
                                       @"FBTestApp app for iPhone!", @"caption",
                                       @"This is a description of my app", @"description",
                                       @"Hello!\n\nThis is a test message\nfrom my test iPhone app!", @"message",              
                                       nil];

        // Publish.
        // This is the most important method that you call. It does the actual job, the message posting.
        [facebook requestWithGraphPath:@"me/feed" andParams:params andHttpMethod:@"POST" andDelegate:self];

**Edit**

    [[delegate facebook] dialog:@"feed"
                          andParams:params
                        andDelegate:self];
}
于 2012-06-27T07:19:21.657 に答える