How to transfer text / photos / videos to Instagram on ios

I want to share text / photos / videos on Instagram. I have been looking for this for a long time, but I have not received any proper documentation. If someone knows about the stock on instagram, please let me know.

+5
ios instagram
source share
2 answers

Instagram Media Endpoints

Currently loading via API is not possible. We made a conscious choice not to add this for the following reasons:

Instagram - about your life along the way - we hope to encourage photos from the app. However, in the future we can give a whitelist access to individual applications in each case.

We want to fight spam and low quality photos. Once we allow downloads from other sources, it’s more difficult to control what is included in the Instagram Ecosystem. All this suggests that we are working to provide a constant and high-quality user experience on our platforms.

Perhaps you can try the hook: http://instagram.com/developer/iphone-hooks/ or https://instagram.com/developer/mobile-sharing/android-intents/

+2
source share

Try using the following code.

@property (nonatomic, retain) UIDocumentInteractionController *dic; CGRect rect = CGRectMake(0 ,0 , 0, 0); UIGraphicsBeginImageContextWithOptions(self.view.bounds.size, self.view.opaque, 0.0); [self.view.layer renderInContext:UIGraphicsGetCurrentContext()]; UIGraphicsEndImageContext(); NSString *jpgPath = [NSHomeDirectory() stringByAppendingPathComponent:@"Documents/test.igo"]; NSURL *igImageHookFile = [[NSURL alloc] initWithString:[[NSString alloc] initWithFormat:@"file://%@", jpgPath]]; // NSURL *igImageHookFile = [[NSURL alloc] initWithString:[[NSString alloc] initWithFormat:@"file://%@", screenshot]]; self.dic.UTI = @"com.instagram.photo"; self.dic = [self setupControllerWithURL:igImageHookFile usingDelegate:self]; self.dic=[UIDocumentInteractionController interactionControllerWithURL:igImageHookFile]; self.dic.annotation = [NSDictionary dictionaryWithObject:@"Here Give what you want to share" forKey:@"InstagramCaption"]; [self.dic presentOpenInMenuFromRect: rect inView: self.view animated: YES ]; - (UIDocumentInteractionController *) setupControllerWithURL: (NSURL*) fileURL usingDelegate: (id <UIDocumentInteractionControllerDelegate>) interactionDelegate { UIDocumentInteractionController *interactionController = [UIDocumentInteractionController interactionControllerWithURL: fileURL]; interactionController.delegate = interactionDelegate; return interactionController; } 

This works for me. Hope this helps you.

0
source share

All Articles