[gwibber/f16] fix facebook scope
Tom Callaway
spot at fedoraproject.org
Tue Feb 21 15:37:19 UTC 2012
commit 5f6fe7c933536f0520704483b9126ab340b212e2
Author: Tom Callaway <spot at fedoraproject.org>
Date: Tue Feb 21 10:37:19 2012 -0500
fix facebook scope
gwibber-3.1.0-addscope.patch | 11 +++++++++++
gwibber.spec | 8 +++++++-
2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/gwibber-3.1.0-addscope.patch b/gwibber-3.1.0-addscope.patch
new file mode 100644
index 0000000..c4498f0
--- /dev/null
+++ b/gwibber-3.1.0-addscope.patch
@@ -0,0 +1,11 @@
+diff -up gwibber-3.1.0/gwibber/microblog/plugins/facebook/gtk/facebook/__init__.py.addscope gwibber-3.1.0/gwibber/microblog/plugins/facebook/gtk/facebook/__init__.py
+--- gwibber-3.1.0/gwibber/microblog/plugins/facebook/gtk/facebook/__init__.py.addscope 2012-02-21 10:09:43.595798355 -0500
++++ gwibber-3.1.0/gwibber/microblog/plugins/facebook/gtk/facebook/__init__.py 2012-02-21 10:09:57.322683888 -0500
+@@ -97,6 +97,7 @@ class AccountWidget(gtk.VBox):
+ "client_id": FB_APP_KEY,
+ "display": "popup",
+ "type": "user_agent",
++ "scope": "publish_stream,read_stream,status_update,offline_access,user_photos,friends_photos",
+ "redirect_uri": "http://www.facebook.com/connect/login_success.html",
+ })
+ web.set_size_request(450, 340)
diff --git a/gwibber.spec b/gwibber.spec
index aa65506..64550b0 100644
--- a/gwibber.spec
+++ b/gwibber.spec
@@ -4,7 +4,7 @@
Name: gwibber
Version: 3.1.0
-Release: 2%{?dist}
+Release: 3%{?dist}
Epoch: 1
Summary: An open source microblogging client for GNOME developed with Python and GTK
Group: Applications/Internet
@@ -76,6 +76,9 @@ Patch48: gwibber-3.0.0.1-sqlite-catch_error.patch
# Overwrite default oauth key
Patch49: gwibber-3.1.0-fix-twitter-oauth.patch
+# Set facebook scope
+Patch50: gwibber-3.1.0-addscope.patch
+
Requires: libsoup, python-pycurl
Requires: python
Requires: dbus-python >= 0.80.2
@@ -147,6 +150,9 @@ and GTK. It supports Twitter, Jaiku, Identi.ca, Facebook, and Digg.
# Overwrite default oauth key for twitter
%patch49 -p1
+# Add facebook scope
+%patch50 -p1
+
# sed -i -e '/^#! \?\//, 1d' $(find %{name} | grep "\.py$")
%build
More information about the scm-commits
mailing list