WordPress.org

Ready to get started?Download WordPress

Forums

Flare
[resolved] Version 1.1.8a does not count Facebook likes in no. of Flares (16 posts)

  1. conualfy
    Member
    Posted 1 year ago #

    Hello!

    It seems to be better, but Flares count does not count Facebook likes. It seems to be working with G+ + Twitter, but not Fb. Facebook likes are not shown in front screen, but you can see them if you hover Facebook.

    http://wordpress.org/extend/plugins/flare/

  2. dtelepathy
    Member
    Plugin Author

    Posted 1 year ago #

    Hey Conualfy, we just pushed out an update that may fix some of these issues. Can you please update and let us know if you're still seeing the problems? Can you also send us a link to the site you have Flare deployed on so we can get more insight into what is happening? Thanks!

  3. conualfy
    Member
    Posted 1 year ago #

    I just upgraded and deleted cache (both for local browser and wp-super-cache). The bug is still here. I tried both Firefox and Chrome (Ubuntu Linux).

    You can test it on this address: http://goo.gl/zkE3u

  4. bakbek
    Member
    Posted 1 year ago #

    Hi DT... Seems to work on my blog (example post : http://www.ronenbekerman.com/making-of-seaside-feeling/)

    I do have issues with the top / bottom horizontal buttons
    they don't seem to work in any case... very buggy.

  5. conualfy
    Member
    Posted 1 year ago #

    @bakbek I do not see Flare running on your site.

  6. bakbek
    Member
    Posted 1 year ago #

    It is. The URL was wrong

    See this http://www.ronenbekerman.com/making-of-seaside-feeling

  7. dtelepathy
    Member
    Plugin Author

    Posted 1 year ago #

    Hey guys, looks like Facebook changed the API query that we were using to not include the count. We've made an adjustment to use the current, non-deprecated stat query method and pushed out an update as version 1.1.9a of Flare

  8. conualfy
    Member
    Posted 1 year ago #

    Sorry, I cannot see it working. Use this page for debugging>
    goo.gl/zkE3u

  9. kiersten_
    Member
    Posted 1 year ago #

    I just updated to 1.1.9a (and deleted my cache) and the number of Facebook likes still isn't showing up in the Flare bar on my site either. Here's an example:

    http://ohmyveggies.com/recipe-grasshopper-brownie-cookies/

  10. conualfy
    Member
    Posted 1 year ago #

    I could see there is a very simple way to get the number of likes, by extracting it from an url like this one: http://graph.facebook.com/PAGE_OR_APP_ID, where PAGE_OR_APP_ID is the encoded url of the site page:

    Example:
    http://graph.facebook.com/http%3A%2F%2Fdrumliber.ro%2F10-plus-1-locuri-unde-sa-mergi-in-iarna-2012-2013%2F

    The response looks like this and shares gets the likes count:

    {
       "id": "http://drumliber.ro/10-plus-1-locuri-unde-sa-mergi-in-iarna-2012-2013/",
       "shares": 34
    }
  11. conualfy
    Member
    Posted 1 year ago #

    Mine started to work, I guess there still was some cached file somewhere.

    @kiersten_ can you also please check to see it is not some coincidence? Thanks!

    The only problem I see now is that on my theme (http://goo.gl/zkE3u) the top and bottom of post flare shows the like/+1/tweet count+action div behind some other content, but it could be because of the theme, didn't check with some other theme.

  12. mflearn
    Member
    Posted 1 year ago #

    Facebook counts were not working for me. I made some changes to the file "/models/button.php", including making the count the "total_count".

    Here is the new "function get_count_facebook" starting on line 457:

    function get_count_facebook( $vars ) {
    $url = $vars[0];
    $count = 0;
    $cache_key = $this->namespace . '-facebook-fql-' . md5( $url );

    $response = get_transient( $cache_key );

    if( !$response ) {
    $fql = "https://graph.facebook.com/fql?q=SELECT%20url,%20normalized_url,%20share_count,%20like_count,%20comment_count,%20total_count,%20commentsbox_count,%20comments_fbid,%20click_count%20FROM%20link_stat%20WHERE%20url='$url'";
    $response = file_get_contents($fql);

    if( !is_wp_error( $response ) ) {
    set_transient( $cache_key, $response, FLARE_STATS_CACHE_LENGTH );
    }
    }

    if( !is_wp_error( $response ) ) {
    $response_json = json_decode($response);

    if( isset( $response_json->data[0]->total_count ) ) {
    $count = $response_json->data[0]->total_count;
    }
    }

    return $count;
    }

  13. The Crazy Travel
    Member
    Posted 1 year ago #

    Still not working, the solution of mflearn didn't solve it on my website.

    http://thecrazytravel.com/

  14. The Crazy Travel
    Member
    Posted 1 year ago #

    Just started to work, but I need to reload the page for some reason (and I have clear the cache). Every post need to be reloaded for appearing the facebook likes, it's weird but it works with mflearn's code.

  15. crunchyfrugalista
    Member
    Posted 1 year ago #

    The Crazy Travel. What do you mean that every page needs to be reloaded? I got it to work with this code on one page, but now it doesn't work on any others. I have reloaded, and cleared the cache several times. Does it just take time for it to work on all pages? Thanks!

  16. Jeana
    Member
    Posted 1 year ago #

    I am also still experiencing this issue :( I have updated to latest version and DO NOT use a caching system.

    sample post: http://www.surfandsunshine.com/2013-mitsubishi-outlander-sport/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic