2011-02-04 22 views
0

フィードにメッセージを投稿しようとしましたが、プロフィールにのみ表示されます。Facebook ios-sdk:フィード投稿はニュースフィードに表示されません

このメッセージをニュースフィードとプロファイルフィードに表示するにはどうすればよいですか?

NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys: 
           @"some text", @"message", 
           nil]; 


[facebook requestWithGraphPath:@"/me/feed" andParams:params 
       andHttpMethod:@"POST" andDelegate:self]; 

I:これを試してみてください

[_facebook dialog:@"feed" andDelegate:self]; 

答えて

1

:私は、のparamsない場合の両方でメッセージのショーを使用して投稿しようとした場合

SBJSON *jsonWriter = [[SBJSON new] autorelease]; 

NSDictionary* actionLinks = [NSArray arrayWithObjects:[NSDictionary dictionaryWithObjectsAndKeys: 
                 _gameName,@"text",_gameLink,@"href", nil], nil]; 

NSString *actionLinksStr = [jsonWriter stringWithObject:actionLinks]; 


NSDictionary* imageShare = [NSDictionary dictionaryWithObjectsAndKeys: 
          @"image", @"type", 
          _imageURL, @"src", 
          _gameLink, @"href", 
          nil]; 


NSDictionary* attachment = [NSDictionary dictionaryWithObjectsAndKeys: 
          title_, @"name", 
          //@"teste", @"caption", 
          _msg, @"description", 
          [NSArray arrayWithObjects:imageShare, nil ], @"media", 
          _gameLink, @"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]; 

は、これは私のサンプルコードですそれが助けて欲しい。 その他のパラメータについてはpost params

+0

私はこれがフィードダイアログを示しているとは思わない。ちょうど直接投稿します –

+0

ya、facebookの壁に投稿するだけです。 –

0

申し訳ありませんが、このダイアログボックスは表示されません。

私はアプリケーションを削除して再作成しました。

関連する問題