]> git.pld-linux.org Git - packages/php-facebook-sdk.git/commitdiff
up to 3.2.0
authorElan Ruusamäe <glen@delfi.ee>
Tue, 30 Oct 2012 09:22:20 +0000 (11:22 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Tue, 30 Oct 2012 09:22:20 +0000 (11:22 +0200)
class-nps.patch
php-facebook-sdk.spec

index 6c16050b5f57b173ce1bf24b2d1bca807da0b04e..ac0458433a3a170086aae0eea7a35d74d77c1de6 100644 (file)
@@ -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 @@
      }
  
index 1780bc54c29d809f5f09d49fac07248480b93f07..6775a03bf660ae2b78f35631b5a937676716ffb9 100644 (file)
@@ -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
This page took 0.154625 seconds and 4 git commands to generate.