Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Bishoy.A

    (@bishoya)

    Hello Alessandro,

    The plugin caches the results for one hour. Maybe it was cached? After you checked again, did the number change?

    Thread Starter alex1506alex

    (@alex1506alex)

    The number does not change with cleaned cache, i dont know why

    Thread Starter alex1506alex

    (@alex1506alex)

    The problem after the last release of plugin

    Plugin Author Bishoy.A

    (@bishoya)

    I’ll test it and see if I can replicate it.

    Were you ever able to replicate this issue? I am having a similar problem.

    I know it has something to do with the transient api, because when I test without it the count is correct. Let me know if you were able to find out anything.

    Thanks!

    This is what is getting added as _transient_pssc_counts option_value in the mysql database:

    a:9:{s:17:"pssc_facebook_127";i:1;s:17:"pssc_facebook_122";i:5;s:17:"pssc_facebook_121";i:6;s:17:"pssc_facebook_117";i:5;s:17:"pssc_facebook_110";i:4;s:17:"pssc_facebook_105";i:11;s:17:"pssc_facebook_103";s:1:"0";s:17:"pssc_facebook_102";i:1;s:17:"pssc_facebook_101";s:1:"0";}

    and the numbers are not accurate. For example “pssc_facebook_105”;i:11;s:17: should be 65 not 11.

    I can delete it from the database but it comes back the same.

    Any ideas?

    //Facebook function needs to be updated

    public function pssc_facebook() {

    $json_string = file_get_contents(‘http://graph.facebook.com/?id=’ . $this->url);
    $json = json_decode($json_string, true);
    return isset($json[‘shares’]) ? intval($json[‘shares’]) : 0;

    }

    Corrected

    public function pssc_facebook() {
    
      $json_string = $this->file_get_contents_curl('http://graph.facebook.com/?id=' . $this->url);
      $json = json_decode($json_string, true);
      return isset($json['shares']) ? intval($json['shares']) : 0;
    
    	}

    Author please update this issue in the plugin

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Wrong Facebook count’ is closed to new replies.