Comparte la imagen del paquete y el enlace en Facebook en iPhone
Quiero compartir la imagen, el enlace, etc. a Facebook desde mi aplicación para iPhone. Mi aplicación Enlace, cation, nombre y descripción publicados correctamente. Pero no puedo compartir la imagen. Por favor, siga mi código ...
UIImage *image = [UIImage imageNamed:@"sample.png"];
NSData *imgData = UIImageJPEGRepresentation(image, 1.0);
self.dictionary =[[NSMutableDictionary alloc] initWithObjectsAndKeys: @"https://www.google.com/ios", @"link",
imgData, @"data",
@"AppName", @"name",
@"Testing", @"caption",
@"say something about this", @"description",
nil];
Mi código de Facebook es ...
[facebook requestWithGraphPath:@"/me/feed" andParams:dictionary andHttpMethod:@"POST" andDelegate:self];
¿Mi problema es cómo tomar la imagen del paquete y cómo compartir la imagen seleccionada en Facebook? Por favor, ayúdame ...