WordPress.org

Plugin Directory

Changeset 713529


Ignore:
Timestamp:
05/15/13 17:15:48 (11 months ago)
Author:
M66B
Message:

1.184 dev revert new Facebook comments API

Location:
add-link-to-facebook
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • add-link-to-facebook/tags/1.183/readme.txt

    r712385 r713529  
    771771 
    772772= Development version = 
    773 * ... 
     773* Revert: use new Facebook comments API 
     774* Improvement: more debug information 
    774775 
    775776Follow these steps to install the development version: 
  • add-link-to-facebook/trunk/add-link-to-facebook-debug.php

    r702756 r713529  
    322322        $recent = WPAL2Facebook::Is_recent($posts->post); 
    323323        $comments_enabled = get_user_meta($xuser_ID, c_al2fb_meta_fb_comments, true); 
     324        $fbi = array(); 
    324325        $comment_count = '?'; 
    325326        if ($xuser_ID && !$excluded && $post_type != 'reply' && !$nointegrate && $comment_status == 'open' && $recent && $comments_enabled) { 
     
    327328            if ($fb_comments) { 
    328329                $comment_count = 0; 
    329                 foreach ($fb_comments->data as $fb_comment) 
     330                foreach ($fb_comments->data as $fb_comment) { 
    330331                    $comment_count++; 
     332                    $fbi[] = $fb_comment->id; 
     333                } 
    331334            } 
    332335        } 
    333336 
    334337        // Exported comments 
     338        $fbo = array(); 
    335339        $total_count = '-'; 
    336340        $stored_count = '-'; 
     
    340344            $stored_count = 0; 
    341345            foreach ($stored_comments as $comment) 
    342                 if (get_comment_meta($comment->comment_ID, c_al2fb_meta_fb_comment_id, true)) 
     346                $fbid = get_comment_meta($comment->comment_ID, c_al2fb_meta_fb_comment_id, true); 
     347                if ($fbid) { 
    343348                    $stored_count++; 
     349                    $fbo[] = $fbid; 
     350                } 
    344351        } 
    345352 
     
    369376 
    370377        $info .= '</td></tr>'; 
     378 
     379        $info .= '<tr><td>Comments in:</td><td>' . implode(', ', $fbi) . '</td></tr>'; 
     380        $info .= '<tr><td>Comments out:</td><td>' . implode(', ', $fbo) . '</td></tr>'; 
    371381    } 
    372382 
  • add-link-to-facebook/trunk/add-link-to-facebook-int.php

    r710320 r713529  
    336336        // Get comments 
    337337        static function Get_fb_comments($user_ID, $id) { 
    338             $url = 'https://graph.facebook.com/' . $id . '/comments?filter=stream'; 
     338            $url = 'https://graph.facebook.com/' . $id . '/comments'; 
    339339            $url = apply_filters('al2fb_url', $url); 
    340340            $token = WPAL2Int::Get_access_token($user_ID); 
  • add-link-to-facebook/trunk/readme.txt

    r712385 r713529  
    771771 
    772772= Development version = 
    773 * ... 
     773* Revert: use new Facebook comments API 
     774* Improvement: more debug information 
    774775 
    775776Follow these steps to install the development version: 
Note: See TracChangeset for help on using the changeset viewer.