Comment 84 for bug 1088775

Revision history for this message
Ruben Rocha (ruben-silvarocha) wrote :

There are problems again with gwibber and facebook. The error this time is that there is no "count" key when receiving the facebook feed:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/gwibber/microblog/dispatcher.py", line 81, in run
    message_data = PROTOCOLS[account["service"]].Client(account)(opname, **args)
  File "/usr/share/gwibber/plugins/facebook/__init__.py", line 253, in __call__
    return getattr(self, opname)(**args)
  File "/usr/share/gwibber/plugins/facebook/__init__.py", line 268, in receive
    return [self._message(post) for post in data["data"]]
  File "/usr/share/gwibber/plugins/facebook/__init__.py", line 224, in _message
    m["likes"]["count"] = data["likes"]["count"]
KeyError: 'count'

My solution was to edit the file /usr/share/gwibber/plugins/facebook/__init__.py and from line 224 to 231 delete any instance of ["count"]. Save file and reboot. The facebook feed now refreshes and appears in gwibber.