Control does not return to the application after uploading photos to Instagram

What I did with my application:

Implemented by

  • In the application, I encode Instagram integration, in which I successfully open Instagram and upload the image to the Instagram server. I also show the uploaded photo.

Problem

  • After the image inside the application is shared via Instagram integration (which is similar to the integration with Facebook), the control does not return to my application

Is it possible to return control to my application after sharing photos via Instagram?

+6
source share
1 answer

In general, there is no reliable way to tell another application to open it at a certain point. The best you can usually hope for is convincing the application to try to open a URL that uses the custom scheme that you registered with your application. I went through the instagram docs documentation , and the only URL-based callback mechanism seems to be authentication (not passing the image through post-authorization). You can examine the API again to see if you can opt out of sharing, but I haven’t seen anything about actually posting the photo on behalf of the user (it looks like they keep it for themselves).

Good luck

+5
source

Source: https://habr.com/ru/post/920303/


All Articles