Skip to content

Commit

Permalink
Restore missing dashboard charts for Facebook and Google+ users
Browse files Browse the repository at this point in the history
  • Loading branch information
ginatrapani committed Jul 6, 2012
1 parent 5d4b2cd commit b94bd76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webapp/plugins/facebook/model/class.FacebookPlugin.php
Expand Up @@ -84,6 +84,7 @@ public function crawl() {

$instance_dao->updateLastRun($instance->id);
$crawler = new FacebookCrawler($instance, $access_token, $max_crawl_time);
$insights_generator = new InsightsGenerator($instance);
try {
$crawler->fetchPostsAndReplies();
} catch (APIOAuthException $e) {
Expand All @@ -95,6 +96,7 @@ public function crawl() {
} catch (Exception $e) {
$logger->logUserError('EXCEPTION: '.$e->getMessage(), __METHOD__.','.__LINE__);
}
$insights_generator->generateInsights();

$instance_dao->save($crawler->instance, 0, $logger);
$logger->logUserSuccess("Finished collecting data for ".$instance->network_username."'s ".
Expand Down
2 changes: 2 additions & 0 deletions webapp/plugins/googleplus/model/class.GooglePlusPlugin.php
Expand Up @@ -73,6 +73,7 @@ public function crawl() {

$instance_dao->updateLastRun($instance->id);
$crawler = new GooglePlusCrawler($instance, $access_token);
$insights_generator = new InsightsGenerator($instance);
try {
$crawler->initializeInstanceUser($options['google_plus_client_id']->option_value,
$options['google_plus_client_secret']->option_value, $access_token, $refresh_token,
Expand All @@ -83,6 +84,7 @@ public function crawl() {
$logger->logUserError('EXCEPTION: '.$e->getMessage(), __METHOD__.','.__LINE__);
}

$insights_generator->generateInsights();
$instance_dao->save($crawler->instance, 0, $logger);
$logger->logUserSuccess("Finished collecting data for ".$instance->network_username."'s ".
ucwords($instance->network), __METHOD__.','.__LINE__);
Expand Down

0 comments on commit b94bd76

Please sign in to comment.