Changeset 1639715
- Timestamp:
- 04/18/2017 10:42:40 AM (9 years ago)
- Location:
- wp-facebook-portal/trunk
- Files:
-
- 1 added
- 1 deleted
- 3 edited
-
. (modified) (1 prop)
-
libraries/facebook.php (modified) (5 diffs)
-
plugin.php (deleted)
-
readme.txt (modified) (5 diffs)
-
wp-facebook-portal.php (added)
Legend:
- Unmodified
- Added
- Removed
-
wp-facebook-portal/trunk
-
Property
svn:ignore
set to
.git
.gitignore
-
Property
svn:ignore
set to
-
wp-facebook-portal/trunk/libraries/facebook.php
r1035657 r1639715 36 36 * @var string 37 37 */ 38 public $requestUrl = 'https://graph.facebook.com/v2. 2';38 public $requestUrl = 'https://graph.facebook.com/v2.8'; 39 39 40 40 /** … … 43 43 * @var string 44 44 */ 45 public $postUrlFormat = 'https://www.facebook.com/% d/posts/%d';45 public $postUrlFormat = 'https://www.facebook.com/%s/posts/%s'; 46 46 47 47 /** … … 143 143 public function getAccessToken($config = array()) 144 144 { 145 if ( $this->accessToken !== null) {146 return $this->accessToken;147 }148 149 if (!empty($config)){145 if (empty($config)) { 146 if ($this->accessToken !== null) { 147 return $this->accessToken; 148 } 149 } else { 150 150 $this->setConfig($config); 151 151 } … … 157 157 ); 158 158 if ($response = $this->apiRequest('/oauth/access_token', $params)) { 159 parse_str($response, $result); 159 if (is_array($response)) { 160 $result = $response; 161 } else { 162 parse_str($response, $result); 163 } 164 160 165 if (!empty($result['access_token'])) { 161 166 $this->setAccessToken($result['access_token']); … … 181 186 ); 182 187 $response = $this->apiRequest($path, $params); 183 if (!empty($response['picture']['data']['url'])) { 184 $response['picture'] = $response['picture']['data']['url']; 185 } 186 return $response; 188 if (!empty($response['id'])) { 189 if (!empty($response['picture']['data']['url'])) { 190 $response['picture'] = $response['picture']['data']['url']; 191 } 192 return $response; 193 } 194 return false; 187 195 } 188 196 -
wp-facebook-portal/trunk/readme.txt
r1035657 r1639715 4 4 Tags: Facebook, Facebook page, portal, feed 5 5 Requires at least: 3.5.1 6 Tested up to: 4. 0.17 Stable tag: 2.3. 16 Tested up to: 4.7.3 7 Stable tag: 2.3.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 39 39 アップデート情報や対応状況、機能追加予定なども配信しているのでぜひ『いいね!』を押してください。 40 40 41 https://www.facebook.com/ pages/WordPress-Plugins/56327753704079041 https://www.facebook.com/rnsk.plugins/ 42 42 43 43 … … 66 66 == Changelog == 67 67 68 2.3.2 69 WordPress 4.7.3 に対応 70 Facebook API v.2.8 に対応 71 APIのバージョン変更に伴う修正 72 記事自動取得の不具合を修正 73 記事リンクの不具合を修正 74 68 75 2.3.1 69 76 Facebook ページが投稿した記事のみ取得するよう修正 … … 72 79 Modified to get only from Facebook page the posts. 73 80 Corresponded to the Facebook API v.2.2 74 Corresponded to the WordPress 4.0.1 81 Corresponded to the WordPress 4.0.1 75 82 76 83 2.3 … … 107 114 108 115 そのほかWordPressデフォルトの機能を優先して使うことで処理をスムーズに行うようにしました。 109
Note: See TracChangeset
for help on using the changeset viewer.