Facebook SDK 3.0を使用しています
取り付けは簡単ですが、何かおかしいと思いました
リンクのサムネイルを表示できません
私のコードをチェックしてください、それは短いです
NSString *message = [NSString stringWithFormat:@"%@ is reading this news : \n %@",
self.loggedInUser.first_name,[[dataList objectAtIndex:index] objectForKey:@"NewsURL"]];
[FBRequestConnection startForPostStatusUpdate:message completionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
// [self showAlert:message result:result error:error];
}];
それだけです〜
しかし、それは壁にリンクを投稿するだけで、画像はありません...
ステータスを更新するために同じURLを投稿しようとしましたが、サムネイル画像を表示できます。
サンプルURLはこちら
Facebook API を使用する際に見逃しているものは何ですか ???
返信または回答が役立ちます
ありがとう
ウェーバー
** * ** * ** * ** * ** * *編集* ** * ** * ** * ** * ** * ****
使用する必要がありますFBRequestConnection startWithGraphPath
だから、これらは私の最終的な解決策です
NSMutableDictionary *postParams = [[NSMutableDictionary alloc] initWithObjectsAndKeys:newsURL, @"link",
newsTitle,@"name",nil];
[FBRequestConnection startWithGraphPath:@"me/feed"
parameters:postParams
HTTPMethod:@"POST"
completionHandler:^(FBRequestConnection *connection,id result,NSError *error) {
}];
[postParams release];
また、このリンクを参照してください