Gwibber does not refresh Facebook feed

Bug #1287211 reported by Ruben Rocha
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gwibber (Ubuntu)
Invalid
Undecided
Unassigned
Precise
Fix Released
High
Unassigned

Bug Description

[Impact]
Facebook's API has changed the data structure returned. There is no longer a count of total number of likes provided. This causes a parse error in the gwibber.

[Test case]
To reproduce this bug, ensure you have a facebook account configured and attempt a refresh. The parse failure prevents any new feed data from being stored in gwibber.

To verify the fix, ensure there is a facebook account configured and refresh the feed. You should see recent content in your feed.

[Regression potential]
Very low, right now all refresh attempts will fail to parse the result meaning nothing
gets stored. Any problems with the included fix would result in the same failure.

There are problems again with gwibber and facebook. The facebook feed does not refresh.

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.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: gwibber 3.4.2-0ubuntu2.3
ProcVersionSignature: Ubuntu 3.11.0-17.31~precise1-generic 3.11.10.3
Uname: Linux 3.11.0-17-generic x86_64
ApportVersion: 2.0.1-0ubuntu17.6
Architecture: amd64
Date: Mon Mar 3 15:08:40 2014
InstallationMedia: Ubuntu 12.04.4 LTS "Precise Pangolin" - Release amd64 (20140204)
MarkForUpload: True
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: gwibber
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Ruben Rocha (ruben-silvarocha) wrote :
Revision history for this message
Ken VanDine (ken-vandine) wrote :

We can't just remove the count, but since facebook has changed the data structure I have a patch ready that properly gets the count.

Changed in gwibber (Ubuntu Precise):
importance: Undecided → High
Changed in gwibber (Ubuntu):
status: New → Invalid
Changed in gwibber (Ubuntu Precise):
status: New → Confirmed
description: updated
Changed in gwibber (Ubuntu Precise):
status: Confirmed → Fix Committed
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Ruben, or anyone else affected,

Accepted gwibber into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/gwibber/3.4.2-0ubuntu2.4 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

tags: added: verification-needed
Revision history for this message
Ruben Rocha (ruben-silvarocha) wrote :

Tested the package from the proposed repo and it fixes the bug.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gwibber - 3.4.2-0ubuntu2.4

---------------
gwibber (3.4.2-0ubuntu2.4) precise-proposed; urgency=medium

  * debian/patches/lp_1287211.patch
    - Facebook's data structure for likes has changed, fix for parsing
      and getting a count (LP: #1287211)
  * debian/patches/lp_1286639.patch
    - Ensure all calls to twitter.com use SSL (LP: #1286639)
 -- Ken VanDine <email address hidden> Mon, 03 Mar 2014 13:38:17 -0500

Changed in gwibber (Ubuntu Precise):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for gwibber has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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