Hi,
I need to be able to get photo's from Instagram, does anybody have an example of how to do this?
Regards, Steve
4 Answers
Titanium Appcelerator Instagram Code ... This code is almost two years old and I havent tested it in a while — Gist
A quick Google turned up this https://github.com/scuciatto/Instagram-Titanium
Hello,
I think that you will get more answers with a more specific question, it should be a simple query but I think that you need authenticate the user first via oAuth.
Regards
Been trying to figure out how to use the InstagramMgr class, it looks well constructed and modular, though I'm trying to use it, example:
Ti.include('lib/InstagramMgr.js'); InstagramMgr.init('xxx_CLIENT_ID_xxx', 'http://somedomain'); // my button to login to Instagram instaLoginButton.addEventListener('click', function() { InstagramMgr.login(); });When I run the code above, the webview window loads to the redirect uri http://somedomain. In the trace out, I see in the console returning the token:
[DEBUG] New scheme: <NSMutableURLRequest http://somedomain.com/#access_token=XXXXXX.XXXXXXX.XXXXXXX>When I break-point in function authorizeUICallback(e) none of the conditions passed:
if (e.url.indexOf('#access_token') != -1) // line 221 OR else if ('http://instagram.com/' == e.url) { // line 238 OR else if (e.url.indexOf('#error=access_denied') != -1) {I simply want to fetch the images of the user, and looks like I got the token from the debug trace out. Curious if anybody got this work?
Your Answer
Think you can help? Login to answer this question!