- (void)postToWall {
FBStreamDialog* dialog = [[[FBStreamDialog alloc] init] autorelease];
dialog.userMessagePrompt = [NSString stringWithFormat: subjectTitle]; //subjectTitle works here but not as name where i need it.
NSString *src = @"http://www.sample.com/image.png";
NSString *name = storyLink; //<---------------------------------works with storyLink but not subjectTitle. I need subjectTitle to work here
NSString *href = storyLink;
NSString *attachment = [NSString stringWithFormat:@"{\"name\":\"%@\",\"media\":[{\"type\":\"image\", \"src\":\"%@\", \"href\":\"%@\"}]}", name, src, href];
dialog.attachment = attachment;
[dialog show];
}
je veux ajouter une image de photothèque instred de http://www.sample.com/image.png au mur facebook.ajouter photo sur le mur Facebook
quelqu'un peut-il me fournit de l'aide ....
Merci à l'avance ......
duplication possible de [processus documenté pour l'utilisation de facebook connect pour l'iPhone de télécharger des photos] (http://stackoverflow.com/questions/750328/documented-process-for-using-facebook-connect-for-the-iphone -to-upload-photos) –