Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Control doesn't come back to application after uploading photo to Instagram

What I have done with my application:

Implemented

  • In the application I code for Instagram integration in that I successfully open Instagram and upload an image to the Instagram server. Also I show the uploaded photo.

Problem

  • After the in-app image shares through the Instagram integration (which is similar to Facebook integration), the control doesn't come back to my application

Is it possible to return control to my application after sharing a photo through Instagram?

like image 485
Nimit Parekh Avatar asked Jul 12 '12 09:07

Nimit Parekh


1 Answers

In general, there is no solid way to tell another app to open yours at a certain point. The best you can usually hope for is convincing the app to attempt to open a URL which uses a custom schema you have registered with your app. I skimmed over the instagram API documentation, and the only mechanism with a URL-based callback appears to be authentication (not passing an image over post-auth). You can explore the API more, to see if you can avoid the hand-off altogether, but I didn't see anything there about actually posting a photo on behalf of the user (seems like they are keeping that one to themselves).

Good luck!

like image 61
Chris Trahey Avatar answered Nov 15 '22 08:11

Chris Trahey