Title: Fix Facebook Counter
Last modified: December 16, 2016

---

# Fix Facebook Counter

 *  [ollakalla](https://wordpress.org/support/users/ollakalla/)
 * (@ollakalla)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/fix-facebook-counter/)
 * The Problem is that facebook change the json,
    and you can fix the problem by
   edit this file _wp-content/plugins/posts-social-shares-count/classes/share.count.
   php_ and go to function pssc_facebook and change the code inside it with this
   code
 *     ```
       $json_string = $this->file_get_contents_curl( 'https://graph.facebook.com/?id='.$this->url );
       $json = json_decode( $json_string, true );
       return isset( $json['share']['share_count'] ) ? intval( $json['share']['share_count']) : 0;
       ```
   
    -  This topic was modified 9 years, 4 months ago by [ollakalla](https://wordpress.org/support/users/ollakalla/).
    -  This topic was modified 9 years, 4 months ago by [ollakalla](https://wordpress.org/support/users/ollakalla/).
    -  This topic was modified 9 years, 4 months ago by [ollakalla](https://wordpress.org/support/users/ollakalla/).
    -  This topic was modified 9 years, 4 months ago by [ollakalla](https://wordpress.org/support/users/ollakalla/).

The topic ‘Fix Facebook Counter’ is closed to new replies.

 * ![](https://ps.w.org/posts-social-shares-count/assets/icon-128x128.png?rev=1271352)
 * [Posts Social Shares Count](https://wordpress.org/plugins/posts-social-shares-count/)
 * [Support Threads](https://wordpress.org/support/plugin/posts-social-shares-count/)
 * [Active Topics](https://wordpress.org/support/plugin/posts-social-shares-count/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/posts-social-shares-count/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/posts-social-shares-count/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [ollakalla](https://wordpress.org/support/users/ollakalla/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/fix-facebook-counter/)