shyambhat / instagramkit Goto Github PK
View Code? Open in Web Editor NEWThe unofficial Instagram iOS SDK
License: MIT License
The unofficial Instagram iOS SDK
License: MIT License
I just run your example project.I am confused what we have to put in InstagramKitAppRedirectURL.I tried so many things but still i am getting this error.
First i put Redirect URI whenever i register my application.
Second I put Redirect_URI/#access_token=.
Third I put client_id//authorize
Pls tell me if i am wrong.
Implemented on pr/5 branch. Testing for next milestone.
If someone likes one of my photo's and I refresh my app by calling getMediaForUser
the like count doesn't increase unless I background kill the app and try again, then the like count increases.
Could it be that GET
requests are being cached?
Is there a way to specify not to cache requests?
Thanks
Just trying to use InstagramKit in a swift project with a bridging header.
Theres a Swift Compiler Error in InstagramEngine.h on line 84. "Expected a Type"
If I comment out that line, InstagramKit compiles and works.
I have this working in my app and it works great except that I'm trying to show more images but it is not showing the number I want. I have set the count but it is only showing the first 33 images.
[[InstagramEngine sharedEngine] getMediaForUser:@"196509072" count:50 maxId:self.currentPaginationInfo.nextMaxId withSuccess:^(NSArray *feed, InstagramPaginationInfo *paginationInfo)
Per Instagram's recommendations, it would be nice if this library provided a method to login with the code
option instead of just always using token
. The callback could expose this token, which the developer would then have to send to their server, and then eventually provide back to the InstagramKit engine.
Check out their guide for more information. It's not super vital, it would just be nice.
Is there any way to see if the current media has been liked by the user before?
Is there anything on my half that might be wrong?
http://puu.sh/9UWEp/896cbc8bd0.png - line 68 in once.h
Although when I look more into it, it seems like this once.h file is part of the iOS Simulator. I'm running XCode 6 beta 2 on Maverics.
Hi,
How can I search on requested results (without using api).
Regards
Alok
Thanks for a wonderful kit. How to follow an user on instagram programmatically. Is it possible?
nsurl - is nil
3 Foundation 0x017c7698 -[NSURL(NSURL) initWithString:relativeToURL:] + 89
4 Foundation 0x01829ba2 -[NSURL(NSURL) initWithString:] + 48
5 LikeMe 0x0009b0e8 -[InstagramPaginationInfo initWithInfo:] + 472
6 LikeMe 0x00072078 __68-[InstagramEngine getPath:parameters:responseModel:success:failure:]_block_invoke + 248
The InstagramEngine from the example has follow/block/aprove methods that does not appear on the pod.
Can you fix that?
for some reason my likes stopped working today. no code changing or anything everything was working fine. I tested the demo and it had the same problem.
Hi,
Still comment post is not working. Let me know what we need to do it
Regards
Alok
It would be awesome if InstagramKit could persist the accessToken by itself, and handle if the token has been expired or revoked.
Nice and thanks!! But I have some problem form the demo
When I run the demo in xcode, it will black screen and return following error.
2014-04-02 09:31:46.835 InstagramKit[5181:60b] *** Assertion failure in -[InstagramEngine init], /Users/louisyip/Downloads/InstagramKit-master 2/InstagramKit/Engine/InstagramEngine.m:115
2014-04-02 09:31:46.839 InstagramKit[5181:60b] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid Instagram Client ID.'
Would you please tell me which part I wrong?
Hi,
Can we have an update for the Podfile so we can add the new version for the project.
Thanks!
Some new tools and rate limits have been introduced by instagram last month. If you find the time it would be great if you could implement the code for "signed" api calls, especially concerning POST methods for relationship endpoints (explained here: http://instagram.com/developer/restrict-api-requests/)
Hi shyambhat,
Thanks for sharing the nice your works.
I had problem while fetching images from self feed, please find below code.
"[[InstagramEngine sharedEngine] getSelfFeedWithCount:100 maxId:self.currentPaginationInfo.nextMaxId success:^(NSArray *media, InstagramPaginationInfo *paginationInfo)"
here, I assign feedcount to 100 but when I checked it "media" array then I had found only 33 records.
Please provide your feedback where I made mistake and please could you share how I add pagination in application.
Thanks in advanced.
Please bare with me, I know it has to do with the getRelationshipStatusOfUser method, but I don't necessarily understand how to implement it. I essentially just want to get whether the user is private or not and store that value in a standardUserDefault.
Hi,
I Installed IK as a cocoapod, and tried to implement login like in the demo, with a webview, but I get a compilation error, that IKLoginScope not found.
I tried the LoginWithBlock function as well, but that takes to the browser outside the application, and after logging in on the website, it takes me to the redirect uri, but does not return control to the application.
Please help.
Thanks
MK
I get the following message when trying to install via cocoapods:
[!] Unable to satisfy the following requirements:
InstagramKit (= 2.1.0)
required by Podfile
My podfile:
platform :ios, '7.0'
pod 'InstagramKit', '2.1.0'
Any idea what's causing the problem?
Is there a specific app hook or address that we need to use? Something to let the app know it has been authenticated or denied?
I'm sure its a simple answer, I just can't figure it out...
The pr-5 branch contains the merged code from ptwohig's repo for AFNetworking 2. Post requests have stopped working on merging. Need help.
I'v just downloaded Instagram Kit to test it but it crashed in iOS 7 and iOS 8 Simulator.
4 InstagramKit 0x000000010e356ded -[InstagramEngine init] + 2237
5 InstagramKit 0x000000010e356352 __31+[InstagramEngine sharedEngine]_block_invoke + 50
If I use likeMedia
then getMedia
and check the list of like usernames, it hasn't added it although the likeMedia
method completes without error.
It isn't clear what the expected behavior is for users who want to log out and log back in with another account.
Hi,
After login authentication you are displaying media data in the LoginviewController itself. But I need to redirect my user to separate viewcontroller(CustomController) and there I will place one button(logout) then user can be logged out there from there.
I hope you can understand my requirement.. I don't want to display LoginViewController after successful login. I need to display differentViewController there I will have logout button.can u help me ...please
I need not to display media data after successful login. user has to enter his credentials. after authorisation we display seperateViewController with welcome text..
The main thing is user has to be redirected to separate view controller(not loginviewcontroller)..sorry if I irritated with my query..
Since most users have more than 50 followers/following, the calls to getUsersFollowedByUser, getFollowersOfUser, and getFollowRequests should make use of a pagination object.
When I call getSelfLikesWithSuccess
I get an exception crash
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSPlaceholderString initWithString:]: nil argument
on line 19 of InstagramPaginationInfo.m
info[kNextMaxId]
is in fact nil.
http://instagram.com/developer/endpoints/relationships/
To contribute, please fork the branch 'relationships'
Hi I have downloaded your zip file and I replaced my instagram credentials. But I could not run the application. I have used different URL's as part of Redirect URL but still problem persists. please bear with me in this and let me finish login with instagram.
Thanks in advance...
As of Version 1.1.0, pagination for fetching excess data hasn't been implemented yet.
Pl refer to response structure at http://instagram.com/developer/endpoints/.
Hi, First of all I would like to thanks for such a good kit. I have one question how to check user token is valid, If token is not valid then again ask for login.
Note : Authenticated requests require an access_token. These tokens are unique to a user and should be stored securely. Access tokens may expire at any time in the future.
Regards
Alok
I get an error when I already use AFNetworking installed with Cocoapods.
"AFHTTPClient.h" not found.
Hi, I'm new at instagram SDK and was just wondering how to access the method to follow / unfollow a user? Is this method already declared in the demo project or do I have to do this by myself (and how :$)? :)
shows AFNetworking now. Need to create InstagramKit specific error domains.
Similar to the
method.
Hi,
Looks like a very interesting library and would love to give it a try. There is, however, one issue. In my project I use AFNetworking 2.0. In this library, AFNetworking 1.3 is used.
Would it be possible for you to make it compatible with AFNetworking 2.0?
Thanks for your time and work!
The NSString media.user.bio always is an empty string although the user has a bio maybe the URL is incorrect?
Hi, I've just added InstagramKit to my project and I'm getting the following errors when trying to compile:
/Users/Neil/Documents/iOS Projects/Project1/Project1/InstagramKit/Engine/InstagramEngine.h:99:22: Expected a type
If i comment out the line i get another error:
/Users/Neil/Documents/iOS Projects/Project1/Project1/InstagramKit/Models/IKUserInPhoto.h:27:33: Unknown type name 'CGPoint'; did you mean 'Point'?
Im not sure what is causing this behaviour, I'm using Xcode 6.1, my app is for iOS 8 and up & I'm using Objective C.
Anyone have any ideas?
@shyambhat @dezinezync I was wondering if there was an effective way to have a custom login view to allow the user to login with their username and password instead of having a WebView presented to the user before login each time. Having one would be helpful to allow quicker access to the app and the ability to remember a user's username. I tried having a hidden WebView and then passing the username and password via javascript and end up getting an error after attempting the login. Have any of you found an effective way to do this?
Good day. Please tell me how to get out of mediaCount InstagramTag?
I don't see a way to access the current user's recent media without asking them for their username. Am I missing it?
Thanks for this great project but I have nothing changed in the code and when I compile the app and run it it crashes after launching with an error:
" 'NSInternalInconsistencyException', reason: 'Invalid Instagram Client ID.' "
Does anybody else have this problem and can anybody please help me? :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.