[packages/php-facebook-sdk] up to 3.2.0

glen glen at pld-linux.org
Tue Oct 30 10:22:37 CET 2012


commit 05ed1339b9f7c4ff6c8a86c2c4ad62f9655ed5af
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Oct 30 11:22:20 2012 +0200

    up to 3.2.0

 class-nps.patch       | 41 ++++++++++++++++++++++-------------------
 php-facebook-sdk.spec |  6 +++---
 2 files changed, 25 insertions(+), 22 deletions(-)
---
diff --git a/php-facebook-sdk.spec b/php-facebook-sdk.spec
index 1780bc5..6775a03 100644
--- a/php-facebook-sdk.spec
+++ b/php-facebook-sdk.spec
@@ -6,12 +6,12 @@
 %include	/usr/lib/rpm/macros.php
 Summary:	PHP SDK for the Facebook API
 Name:		php-facebook-sdk
-Version:	3.1.1
-Release:	6
+Version:	3.2.0
+Release:	0.1
 License:	Apache v2.0
 Group:		Development/Languages/PHP
 Source0:	https://github.com/facebook/facebook-php-sdk/tarball/v%{version}#/%{name}-%{version}.tgz
-# Source0-md5:	3e23cbda87e68f95f3b222cbb868e5d1
+# Source0-md5:	7a2dd4ca5b388496c46993eca0c2d56e
 Patch0:		class-nps.patch
 URL:		https://github.com/facebook/facebook-php-sdk
 BuildRequires:	rpm-php-pearprov >= 4.4.2-11
diff --git a/class-nps.patch b/class-nps.patch
index 6c16050..ac04584 100644
--- a/class-nps.patch
+++ b/class-nps.patch
@@ -3,9 +3,9 @@ session storage.
 
 This makes api calls possible, but no login support for users.
 
---- php-facebook-sdk-3.1.1/src/facebook.nps.php	2011-08-09 03:32:07.000000000 +0300
-+++ php-facebook-sdk-3.1.1/src/facebook.nps.php	2012-08-21 19:00:15.841768544 +0300
-@@ -19,29 +19,16 @@
+--- php-facebook-sdk-3.2.0/src/facebook.nps.php~	2012-10-26 13:02:43.000000000 +0300
++++ php-facebook-sdk-3.2.0/src/facebook.nps.php	2012-10-26 13:05:14.019384949 +0300
+@@ -19,9 +19,9 @@
  
  /**
   * Extends the BaseFacebook class with the intent of using
@@ -15,30 +15,33 @@ This makes api calls possible, but no login support for users.
 -class Facebook extends BaseFacebook
 +class FacebookNPS extends BaseFacebook
  {
--  /**
+   const FBSS_COOKIE_NAME = 'fbss';
+ 
+@@ -32,12 +32,9 @@
+   // Stores the shared session ID if one is set.
+   protected $sharedSessionID;
+ 
++  protected $kPersistantData = array();
++
+   /**
 -   * Identical to the parent constructor, except that
 -   * we start a PHP session to store the user ID and
 -   * access token if during the course of execution
 -   * we discover them.
 -   *
--   * @param Array $config the application configuration.
--   * @see BaseFacebook::__construct in facebook.php
--   */
--  public function __construct($config) {
+    * @param Array $config the application configuration. Additionally
+    * accepts "sharedSession" as a boolean to turn on a secondary
+    * cookie for environments with a shared session (that is, your app
+@@ -45,9 +42,6 @@
+    * @see BaseFacebook::__construct in facebook.php
+    */
+   public function __construct($config) {
 -    if (!session_id()) {
 -      session_start();
 -    }
--    parent::__construct($config);
--  }
- 
-   protected static $kSupportedKeys =
-     array('state', 'code', 'access_token', 'user_id');
- 
-+  protected $kPersistantData = array();
-+
-   /**
-    * Provides the implementations of the inherited abstract
-    * methods.  The implementation uses PHP sessions to maintain
+     parent::__construct($config);
+     if (!empty($config['sharedSession'])) {
+       $this->initSharedSession();
 @@ -55,7 +42,7 @@
      }
  
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-facebook-sdk.git/commitdiff/05ed1339b9f7c4ff6c8a86c2c4ad62f9655ed5af



More information about the pld-cvs-commit mailing list