Skip to content

Friends Timeline Behaves Differently than Public Timeline #1

@dragonmantank

Description

@dragonmantank

I'm trying to get the Friends Timeline to work based upon the examples/example_timeline.html, which works perfectly fine with the Public timeline. I'm using the newest commit of spazcore as of tonight.

Changes to Example

I added my twitter username and password to line 69, changed 83 and 84 to:

'success_event':'new_friends_timeline_data',
'failure_event':'error_friends_timeline_data',

and changed line 90 to:

twit.getFriendsTimeline();

I commented out lines 130-140 to cut down on JS errors I was getting with URL expansions.

I then loaded the file in Safari. I tested by adding tweets from a second account to check for updates.

Expected Result

The Friends timeline would load with the newest tweets at the top like the Public timeline, and every 60 seconds to reload with the newest tweets still at the top.

Actual Result

With a max_items set to 30, it grabbed the 50 newest tweets and displayed the oldest 30, with the oldest at the top. The timeline would refresh after 60 seconds using the newest tweet for the since_id in the json call (not the 'newest' tweet shown on the screen) but the timeline would not update.

With a max_items set to 50, it grabbed the 50 newest tweets and displays all of them on the screen, oldest to newest. Sometimes it will grab new entries upon a refresh, and sometimes not.

Leaving max_items at 50, and adding 'add_method': 'append' causes the timeline to render in the correct order (newest to oldest), until a refresh. New entries are appended to the bottom. Sometimes it will append the same 2 or 3 with each refresh.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions