facebook is always a day or two OLD

Bug #572011 reported by jabastien
72
This bug affects 15 people
Affects Status Importance Assigned to Milestone
gwibber (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: gwibber

Description: Ubuntu 10.04 LTS
Release: 10.04
Gwibber 2.30.0.1

Twitter & identi.ca accounts get the current updates. But Gwibber only pulls 1 to 2 days or older posts from Facebook.

Thanks.

Revision history for this message
Claudio Moretti (flyingstar16) wrote :

Are you sure this is not a Facebook problem, instead of Gwibber?
This can be due to FB server issues, can you please try another client and see if there's the same behaviour?

Changed in gwibber (Ubuntu):
status: New → Incomplete
Revision history for this message
Omer Akram (om26er) wrote :

Thanks for taking time to report this bug and helping to make ubuntu better. Is the problem you are facing that the comments made by your facebook friends are not updated in gwibber? maybe bug 541831

Revision history for this message
Victor Vargas (kamus) wrote :

@jabastien, any news about this issue?

Changed in gwibber (Ubuntu):
importance: Undecided → Low
Revision history for this message
zdenek.zikan (zdenek-zikan) wrote :

Gwibber (latest 2.30.0.1-0ubuntu1, resp. pre-released 2.30.0.1-0ubuntu3 in Lucid) shows me only image posts AND only 28 days old (or older) AND only from two people. I use also facebook client for Android and it works fine, so it seems like an application issue. (I didn't find any other Facebook client in Ubuntu repos to test it with, except Plasma widget which I obviously cannot use in Gnome - is there any?)

Revision history for this message
Victor Vargas (kamus) wrote :

@jabastien or @zdenek.zikan, Please could you run under latest version of gwibber: gwibber-service -d -o and attach all resulted output to a textfile (following your steps to reproduce this issue), Thanks!

Revision history for this message
D. Wegener (dpwegener) wrote :

Attaching error output for gwibber-service -d -o

Revision history for this message
KomarSerjio (komarserjio) wrote :

I have the same bug.

Attaching output for gwibber-service -d -o.

Revision history for this message
Victor Vargas (kamus) wrote :

Have you tried to run a rm -fr ~/.cache/desktop-couch ~/.config/desktop-couch and ~/.local/share/desktop-couch and then start gwibber again?

Revision history for this message
D. Wegener (dpwegener) wrote :

Problem appears to be that the facebook.py is expecting comments to be returned as a list and they are actually being returned as a dictionary. I have been able to fix the problem by changing the comment parsing loop to use values() for the dictionary. Here is the original code:

    if data.get("comments", 0):
      m["comments"] = []
      for item in data["comments"]["comment_list"]:
        m["comments"].append({
          "text": item["text"],
          "time": int(mx.DateTime.DateTimeFrom(item["time"]).gmtime()),
          "sender": self._sender(profiles[item["fromid"]]),
        })

Changing the for line as follows corrects the problem:

    if data.get("comments", 0):
      m["comments"] = []
      for item in data["comments"]["comment_list"].values():
        m["comments"].append({
          "text": item["text"],
          "time": int(mx.DateTime.DateTimeFrom(item["time"]).gmtime()),
          "sender": self._sender(profiles[item["fromid"]]),
        })

Revision history for this message
D. Wegener (dpwegener) wrote :

I found a post on the Facebook developer forum where someone reported that the comment_list had changed from the documented array to a dictionary. May need to confirm with Facebook whether they intended to make this change, or if it is a bug.

http://forum.developers.facebook.com/viewtopic.php?id=59877

Revision history for this message
Ryan May (rmay31) wrote :

I'm not sure, but it seems that all of a sudden (~4:10 UTC) it seems to be working again. Seems like it might have been a FB oops.

Revision history for this message
Omer Akram (om26er) wrote :

D. Wegener, .diff would be preferred so that we could propose a merge

Omer Akram (om26er)
Changed in gwibber (Ubuntu):
importance: Low → Medium
status: Incomplete → Confirmed
Revision history for this message
CTenorman (ctenorman) wrote :

It was working again for a while, and now it's off again, I'm missing the last 10 hours. Odd!!

Revision history for this message
D. Wegener (dpwegener) wrote :

It does look to be a FaceBook bug. 11:53 PM CDT and it is working again. FaceBook is returning the comment_list as an array again.

Revision history for this message
CTenorman (ctenorman) wrote :

Is there any chance we could make gwibber robust enough to deal with either scenario? I'm still a day behind in my FB updates.

Revision history for this message
James Vogel (jim-m-vogel) wrote :

(note: I have not tested this since facebook seems not to be using a dictionary anymore)

You could do a simple try catch, something like:

try:
  if data.get("comments", 0):
      m["comments"] = []
      for item in data["comments"]["comment_list"]:
        m["comments"].append({
          "text": item["text"],
          "time": int(mx.DateTime.DateTimeFrom(item["time"]).gmtime()),
          "sender": self._sender(profiles[item["fromid"]]),
        })
catch TypeError
  if data.get("comments", 0):
      m["comments"] = []
      for item in data["comments"]["comment_list"].values():
        m["comments"].append({
          "text": item["text"],
          "time": int(mx.DateTime.DateTimeFrom(item["time"]).gmtime()),
          "sender": self._sender(profiles[item["fromid"]]),
        })

Revision history for this message
Omer Akram (om26er) wrote :

please enable lucid-proposed repository from software source and update gwibber to the latest version and check if that solves the problem

Changed in gwibber (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Omer Akram (om26er) wrote :

Please enable lucid-proposed repository from software sources and update gwibber to the latest version 2.30.1 in Lucid. that version should solve the problem. if the problem is still there please read the cause here: https://bugs.launchpad.net/ubuntu/lucid/+source/gwibber/+bug/595265/comments/69

Revision history for this message
Victor Vargas (kamus) wrote :

any news about this issue?

Revision history for this message
James Vogel (jim-m-vogel) wrote :

This bug was created by a discrepancy in facebooks api and their documentation. It has since been fixed and patched by facebook and is no longer applicable. That's all the news there is to it. ;)

Revision history for this message
Victor Vargas (kamus) wrote :

Thanks for the feedback, marked as Fixed then.

Changed in gwibber (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.