Skip to content

Commit

Permalink
Request and parse correct language in FacebookPublicUpdater
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Cole committed Apr 29, 2015
1 parent 509e77f commit de9575f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/data-sources/FacebookPublicUpdater.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ public function setParams($post_id, $post_url = false) {
parent::setparams($post_id, $post_url);

$this->updater->resource_params = array(
'href' => $this->updater->post_url
'href' => $this->updater->post_url,
'locale' => 'en_US' // Result will be parsed in English
);

}
Expand Down
6 changes: 6 additions & 0 deletions src/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ This plugin was created by Ben Cole, as a member of the Chapman University web m

== Changelog ==

= 1.5.2 =
* Fixed an issue where Facebook stats were not collected for some websites in languages other than English

= 1.5.1 =
* Updated the Facebook Graph API to version 2.3 (latest)
* IMPORTANT: As of this version, the individual post meta fields for 'facebook_likes', 'facebook_comments' and 'facebook_shares' are no longer available. You will not notice any difference unless you have previously written a custom theme or plugin which made use of these hidden custom fields. To delete these old fields and clean up your database, you should completely un-install (and delete) this plugin from the Dashboard and then re-install it.
Expand Down Expand Up @@ -201,6 +204,9 @@ This plugin was created by Ben Cole, as a member of the Chapman University web m

== Upgrade Notice ==

= 1.5.2 =
Fixed a bug with Facebook stats on non-English websites

= 1.5.1 =
Switch to Facebook API version 2.3

Expand Down
4 changes: 2 additions & 2 deletions src/social-metrics-tracker.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Social Metrics Tracker
Plugin URI: https://github.com/ChapmanU/wp-social-metrics-tracker
Description: Collect and display social network shares, likes, tweets, and view counts of posts.
Version: 1.5.1
Version: 1.5.2
Author: Ben Cole, Chapman University
Author URI: http://www.bencole.net
License: GPLv2+
Expand Down Expand Up @@ -38,7 +38,7 @@

class SocialMetricsTracker {

public $version = '1.5.1'; // for db upgrade comparison
public $version = '1.5.2'; // for db upgrade comparison
public $updater;
public $options;

Expand Down

0 comments on commit de9575f

Please sign in to comment.