summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitattributes1
-rw-r--r--_cron/fb-user-token1
-rw-r--r--bin/fb-user-token-expiry1
-rw-r--r--config/facebook.jsonbin323 -> 0 bytes
-rw-r--r--deprecated/Facebook.php (renamed from providers/Facebook.php)3
-rw-r--r--deprecated/facebook.jsonbin0 -> 325 bytes
-rw-r--r--deprecated/facebook.php5
-rw-r--r--deprecated/fb-user-token1
-rw-r--r--deprecated/fb-user-token-expiry1
-rw-r--r--deprecated/fb-user-token.php (renamed from bin/fb-user-token.php)2
-rwxr-xr-xdeprecated/fb-user-token.sh (renamed from bin/fb-user-token.sh)0
11 files changed, 13 insertions, 2 deletions
diff --git a/.gitattributes b/.gitattributes
index 18ef3a0..177b225 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1 +1,2 @@
config/*.json filter=git-crypt diff=git-crypt
+deprecated/*.json filter=git-crypt diff=git-crypt
diff --git a/_cron/fb-user-token b/_cron/fb-user-token
deleted file mode 100644
index 4b9ec9f..0000000
--- a/_cron/fb-user-token
+++ /dev/null
@@ -1 +0,0 @@
-01 * * * * $SITEPATH/bin/fb-user-token.sh
diff --git a/bin/fb-user-token-expiry b/bin/fb-user-token-expiry
deleted file mode 100644
index d737123..0000000
--- a/bin/fb-user-token-expiry
+++ /dev/null
@@ -1 +0,0 @@
-2019-02-18 \ No newline at end of file
diff --git a/config/facebook.json b/config/facebook.json
deleted file mode 100644
index 6830e06..0000000
--- a/config/facebook.json
+++ /dev/null
Binary files differ
diff --git a/providers/Facebook.php b/deprecated/Facebook.php
index 013781b..063cdeb 100644
--- a/providers/Facebook.php
+++ b/deprecated/Facebook.php
@@ -14,6 +14,9 @@ class Facebook extends \Providers\Provider {
public function __construct($feed, $options=[]) {
parent::__construct($feed, $options);
+ //if (date('Y-m-d') <= '2019-01-31') {
+ throw new \Exception('wait');
+ //}
$this->_config = json_decode(file_get_contents('../config/facebook.json'), TRUE);
$this->_api = new \Facebook\Facebook($this->_config);
}
diff --git a/deprecated/facebook.json b/deprecated/facebook.json
new file mode 100644
index 0000000..eb8e6d0
--- /dev/null
+++ b/deprecated/facebook.json
Binary files differ
diff --git a/deprecated/facebook.php b/deprecated/facebook.php
new file mode 100644
index 0000000..8db60bd
--- /dev/null
+++ b/deprecated/facebook.php
@@ -0,0 +1,5 @@
+<?php
+
+var_dump($_REQUEST);
+
+?>
diff --git a/deprecated/fb-user-token b/deprecated/fb-user-token
new file mode 100644
index 0000000..5c960bd
--- /dev/null
+++ b/deprecated/fb-user-token
@@ -0,0 +1 @@
+# 01 * * * * $SITEPATH/bin/fb-user-token.sh
diff --git a/deprecated/fb-user-token-expiry b/deprecated/fb-user-token-expiry
new file mode 100644
index 0000000..14f88dc
--- /dev/null
+++ b/deprecated/fb-user-token-expiry
@@ -0,0 +1 @@
+2019-03-20
diff --git a/bin/fb-user-token.php b/deprecated/fb-user-token.php
index 02aea74..b4b3223 100644
--- a/bin/fb-user-token.php
+++ b/deprecated/fb-user-token.php
@@ -25,6 +25,8 @@ if (!file_exists($expiryFile) || trim(file_get_contents($expiryFile)) == date('Y
'code' => $firstResponse->code,
'redirect_uri' => 'http://rss.emkael.info/facebook.php'
]);
+ print($secondLink);
+ die();
$secondResponse = json_decode(file_get_contents($secondLink));
$config['user_token'] = $secondResponse->access_token;
diff --git a/bin/fb-user-token.sh b/deprecated/fb-user-token.sh
index 396e20a..396e20a 100755
--- a/bin/fb-user-token.sh
+++ b/deprecated/fb-user-token.sh