Comments (6)
Ok, i've found the problem.
This define #define kNextMaxId @"next_max_id"
needs to be changed to this #define kNextMaxId @"next_max_like_id"
I'm not sure if that will break anything else though.
from instagramkit.
I've found another similar too. Where pagination
is empty but not nil.
Changing if (self && IKNotNull(info)) {
to if (self && IKNotNull(info) && [info count] > 0) {
seems to fix it.
from instagramkit.
This does break other functions. So try this instead:
- (id)initWithInfo:(NSDictionary *)info
{
self = [super init];
if (self && IKNotNull(info) && [info count] > 0) {
NSLog(@"%@", info);
_nextURL = [[NSURL alloc] initWithString:info[kNextURL]];
if (IKNotNull(info[kNextMaxId]))
_nextMaxId = [[NSString alloc] initWithString:info[kNextMaxId]];
else if (IKNotNull(info[kNextMaxLikeId]))
_nextMaxId = [[NSString alloc] initWithString:info[kNextMaxLikeId]];
}
return self;
}
and you'l need to add a new define
#define kNextMaxLikeId @"next_max_like_id"
from instagramkit.
Here is my Fix
if (self && IKNotNull(info) && IKNotNull(info[kNextURL]) && IKNotNull(info[kNextMaxId])) {
_nextURL = [[NSURL alloc] initWithString:info[kNextURL]];
_nextMaxId = [[NSString alloc] initWithString:info[kNextMaxId]];
}
WBR, Alexandr Chernyy
Team Lead, Nikolaev
Tatem Games Nikolaev
Skype: pingus_kisya
Phone: +38 (093) 561 56 30
E-mail: [email protected]
www.tatemgames.com
On Mar 18, 2014, at 5:29 PM, ddaddy [email protected] wrote:
This does break other functions. So try this instead:
- (id)initWithInfo:(NSDictionary *)info
{
self = [super init];
if (self && IKNotNull(info) && [info count] > 0) {
NSLog(@"%@", info);
_nextURL = [[NSURL alloc] initWithString:info[kNextURL]];
if (IKNotNull(info[kNextMaxId]))
_nextMaxId = [[NSString alloc] initWithString:info[kNextMaxId]];
else if (IKNotNull(info[kNextMaxLikeId]))
_nextMaxId = [[NSString alloc] initWithString:info[kNextMaxLikeId]];
}
return self;
}
and you'l need to add a new define
#define kNextMaxLikeId @"next_max_like_id"—
Reply to this email directly or view it on GitHub.
from instagramkit.
I don't think that will fix it. There is a different json key for nextmax for likes than the other nextmax's.
next_max_like_id
next_max_id
from instagramkit.
I'm doing the error checking now, and have also added the additional macro.
Thanks a bunch for the fixes, guys.
You could just fork the project, going ahead and send me pull requests with your fixes so I can review and merge it right from my inbox. This will make things much quicker and also make you contributors of the repo.
from instagramkit.
Related Issues (20)
- Followers list always returns a 0-element array
- Version? HOT 3
- Deprecated methods HOT 2
- Need fix InstagramUser.m HOT 3
- Need for api endpoint for IGTV
- Objective-C for Swift HOT 1
- Instagram getSelfUserDetails bad request 400 eventhough session is valid HOT 2
- My app with istagramkit is opened when I click on another app
- duplicate symbol _kLocation
- UIwebview depecrated HOT 1
- How can I get the 10 most popular user publications in a certain time?
- Instagram Display API HOT 1
- [question] instagram fingerprint
- Login Flow issue
- you are not a sand box user error
- Yehe
- Hi HOT 1
- My work
- https://github.com/eggyo HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from instagramkit.