Plugin Directory

Changeset 1778819


Ignore:
Timestamp:
11/30/2017 04:37:10 PM (8 years ago)
Author:
livingos
Message:

fix for facebook api widget

Location:
themeloom-widgets/trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • themeloom-widgets/trunk/facebook-widget.php

    r1609785 r1778819  
    137137    //Retrieve access token, now required for even public pages
    138138    $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;
    141141}
    142142
     
    153153       
    154154        //cache empty
    155        
     155
    156156        //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}" );
    158158
    159159        $pageinfo = json_decode($json_object);
     
    182182       
    183183        //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}" );
    185185
    186186        $feedarray = json_decode($json_object);
  • themeloom-widgets/trunk/readme.txt

    r1609785 r1778819  
    44Tags: widgets, posts, pages, query, responsive, twitter, flickr, facebook
    55Requires at least: 4.2
    6 Tested up to: 4.7.3
     6Tested up to: 4.9.1
    77Stable tag: trunk
    88License: GPLv2 or later
     
    7676== Changelog ==
    7777
     78= 1.8.4 =
     79* fixed for new facebook api version
     80
    7881= 1.8.3 =
    7982* updated deprecated functions
  • themeloom-widgets/trunk/themeloom-widgets.php

    r1609785 r1778819  
    33Plugin Name: ThemeLoom Widgets
    44Description: 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.3
     5Version: 1.8.4
    66License: GPLv2
    77Author: Tim Hyde
Note: See TracChangeset for help on using the changeset viewer.