Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getFollowedTimelineSinceID issue #64

Open
sweetie85 opened this issue Oct 21, 2010 · 6 comments
Open

getFollowedTimelineSinceID issue #64

sweetie85 opened this issue Oct 21, 2010 · 6 comments

Comments

@sweetie85
Copy link

Hi,

I have a problem with getFollowedTimelineSinceID method. I am using this method to get tweets.
But I am getting only 20 tweets, though I am changing the count but still its pulling only 20 tweets.

Can you please guide me on how to pull all the messages from timeline.

Thanks,
Swetha.

@mginod
Copy link

mginod commented Nov 12, 2010

I have the exact same problem. It seems the 'page' and 'count' parameters have no effect in the getFollowedTimelineSinceID method. There are always 20 results.

@sweetie85
Copy link
Author

I researched for this problem, but could not find any solution, can you please let me know if you find any solution.

Thanks.

@arpandesai
Copy link

Hello All,

Typical Problem I faced for a week or so.

You just need to remove the 'Comment Lines'

Problem is that your parameters are you not appending to the request Twitter Engine is sending.

SA_OAuthTwitterEngine.m > _sendRequestWithMethod (Method)

// modificaiton from the base clase
// the base class appends parameters here

Remove the Comments on this code :

if (params) {
fullPath = [self _queryStringWithBase:fullPath parameters:params prefixed:YES];
}

Regards,
Arpan

@FreeApple
Copy link

This works for me, but then blocks me from posting. If I remove the "comment lines" then I can call out the "count" and it seems to work "which I might add I have tried forever to get more then 20 tweets!"

Then now when I try to post a tweet since I am using xAuth I get a 401 error saying my user name and password cannot be verified....but I can do anything else and I am logged in as you can clearly see y username and all my tweets so there is a bug somewhere in the parameters!

If anyone has any more insight on this topic please enlighten me

@SepiaApps
Copy link

I'm running into the same exact scenario as FreeApple. Anyone have any solutions?

@FreeApple
Copy link

Yeah that was a hard one to figure out. I should have came back with my solution earlier. So after I unblocked this code I used if statements such as

if (requestType == MGTwitterStatus) {
    NSLog(@"Statuses Requested");

   if (params) {
        fullPath = [self _queryStringWithBase:fullPath parameters:params prefixed:YES];
   }

}
if (requestType == MGTwitterRepliesRequest) {
    if (params) {
        fullPath = [self _queryStringWithBase:fullPath parameters:params prefixed:YES];
    }
}
if (requestType == MGTwitterDirectMessagesRequest) {
    if (params) {
        fullPath = [self _queryStringWithBase:fullPath parameters:params prefixed:YES];
    }

}

if (requestType == MGTwitterUserTimelineForUserRequest) {
    if (params) {
        fullPath = [self _queryStringWithBase:fullPath parameters:params prefixed:YES];
    }
}            

Hope this helps others !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants