Changeset 1778819
- Timestamp:
- 11/30/2017 04:37:10 PM (8 years ago)
- Location:
- themeloom-widgets/trunk
- Files:
-
- 2 added
- 3 edited
-
facebook-widget.php (modified) (3 diffs)
-
images/src (added)
-
images/src/facebook.ai (added)
-
readme.txt (modified) (2 diffs)
-
themeloom-widgets.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
themeloom-widgets/trunk/facebook-widget.php
r1609785 r1778819 137 137 //Retrieve access token, now required for even public pages 138 138 $authToken = livingos_fetchUrl("https://graph.facebook.com/oauth/access_token?grant_type=client_credentials&client_id={$appid}&client_secret={$appsc}"); 139 140 return $authToken;139 140 return json_decode($authToken)->access_token; 141 141 } 142 142 … … 153 153 154 154 //cache empty 155 155 156 156 //get page details 157 $json_object = livingos_fetchUrl( "https://graph.facebook.com/v2. 5/{$page_id}?fields=name,link&{$auth_token}" );157 $json_object = livingos_fetchUrl( "https://graph.facebook.com/v2.11/{$page_id}?fields=name,link&access_token={$auth_token}" ); 158 158 159 159 $pageinfo = json_decode($json_object); … … 182 182 183 183 //get page feed 184 $json_object = livingos_fetchUrl( "https://graph.facebook.com/v2. 5/{$page_id}/{$edge}?fields=from,message,name,created_time,description,story,type,link,caption,picture&limit={$num_posts}&{$auth_token}" );184 $json_object = livingos_fetchUrl( "https://graph.facebook.com/v2.11/{$page_id}/{$edge}?fields=from,message,name,created_time,description,story,type,link,caption,picture&limit={$num_posts}&access_token={$auth_token}" ); 185 185 186 186 $feedarray = json_decode($json_object); -
themeloom-widgets/trunk/readme.txt
r1609785 r1778819 4 4 Tags: widgets, posts, pages, query, responsive, twitter, flickr, facebook 5 5 Requires at least: 4.2 6 Tested up to: 4. 7.36 Tested up to: 4.9.1 7 7 Stable tag: trunk 8 8 License: GPLv2 or later … … 76 76 == Changelog == 77 77 78 = 1.8.4 = 79 * fixed for new facebook api version 80 78 81 = 1.8.3 = 79 82 * updated deprecated functions -
themeloom-widgets/trunk/themeloom-widgets.php
r1609785 r1778819 3 3 Plugin Name: ThemeLoom Widgets 4 4 Description: A set of really useful widgets for showing posts, pages, tweets and your flickr images. Designed for use with responsive themes. 5 Version: 1.8. 35 Version: 1.8.4 6 6 License: GPLv2 7 7 Author: Tim Hyde
Note: See TracChangeset
for help on using the changeset viewer.