से इंस्टाग्राम पर पोस्ट नहीं है मैं instagram-ios-sdk
का उपयोग कर अपने आवेदन में Instagram को एकीकृत कर रहा हूं। मैं Instagram में login
सफलतापूर्वक प्राप्त कर सकता हूं और एक टोकन एक्सेस प्राप्त कर सकता हूं, लेकिन इसके बाद जब मैं UIImagePickerController
से चित्र पोस्ट करने का प्रयास कर रहा हूं, तो छवि पोस्ट नहीं हो रही है। एक तस्वीर भेजने के लिए कोड नीचे दिया गया हैछवि आईओएस 6
(void)_startUpload:(UIImage *) image {
NSLog(@"Image Object = %@",NSStringFromCGSize(image.size));
NSString *jpgPath = [NSHomeDirectory() stringByAppendingPathComponent:@"Documents/Test.igo"];
[UIImageJPEGRepresentation(image, 1.0) writeToFile:jpgPath atomically:YES];
NSLog(@"file url %@",jpgPath);
NSURL *igImageHookFile = [[NSURL alloc] init];
igImageHookFile = [NSURL fileURLWithPath:jpgPath];
NSLog(@"File Url = %@",igImageHookFile);
documentInteractionController.UTI = @"com.instagram.photo";
[UIDocumentInteractionController interactionControllerWithURL:igImageHookFile];
[self setupControllerWithURL:igImageHookFile usingDelegate:self];
[documentInteractionController presentOpenInMenuFromRect:CGRectZero inView:self.view animated:YES];
}
(UIDocumentInteractionController *) setupControllerWithURL: (NSURL*) fileURL usingDelegate: (id <UIDocumentInteractionControllerDelegate>) interactionDelegate {
NSLog(@"%@",fileURL);
UIDocumentInteractionController *interactionController =
[UIDocumentInteractionController interactionControllerWithURL: fileURL];
interactionController.delegate = interactionDelegate;
return interactionController;
}
मैं .ig
प्रारूप के लिए छवि परिवर्तित, (612 * 612) के एक संकल्प के साथ। लेकिन अभी भी छवि Instagram
पर पोस्ट नहीं कर रही है। क्या मैं कुछ भूल रहा हूँ? क्या कोई मुझे इस बारे में सहायता कर सकता है?
धन्यवाद
समान समस्या का उपयोग करें। :(यदि आपने पता लगाया है तो कृपया मुझे साझा करें जो आपने किया है। –
क्या आप में से किसी ने इसे समझ लिया? –