You are having a different problem then me.
When you are getting the OAuth token its not being saved. Without this token you will be unable to make requests to the Google Latitude API for your location data. It appears that you have gone through the steps of requesting a token correctly.
Try this to see if you are getting and saving the token.
1. In google-latitude-history.php, replace this function:
function GoogleLatitudeHistory() {
//Inserts Latitude OAuth info into the DB
if(isset($_REQUEST['oauth_token']) && isset($_REQUEST['oauth_verifier'])) {
//Create LatitudeOAuth object with app key/secret and token key/secret from default phase
$connection = new LatitudeOAuth(get_option('glatitudehistory_oauth_consumer_key'), get_option('glatitudehistory_oauth_consumer_secre\
t'), $_SESSION['oauth_token'], $_SESSION['oauth_token_secret']);
//Request access tokens from google latitude
$access_token = $connection->getAccessToken($_REQUEST['oauth_verifier']);
update_option( 'glatitudehistory_oauth_token', $access_token['oauth_token']);
update_option( 'glatitudehistory_oauth_secret', $access_token['oauth_token_secret']);
header('Location: ' . $_SERVER['SCRIPT_NAME'] . '?page=google-latitude-history-menu');
}
//Creates Latitude connection
$this->latitude_con = new LatitudeOAuth(get_option('glatitudehistory_oauth_consumer_key'), get_option('glatitudehistory_oauth_consumer_secre\
t'), get_option('glatitudehistory_oauth_token'), get_option('glatitudehistory_oauth_secret'));
}
with
function GoogleLatitudeHistory() {
//Inserts Latitude OAuth info into the DB
if(isset($_REQUEST['oauth_token']) && isset($_REQUEST['oauth_verifier'])) {
//Create LatitudeOAuth object with app key/secret and token key/secret from default phase
$connection = new LatitudeOAuth(get_option('glatitudehistory_oauth_consumer_key'), get_option('glatitudehistory_oauth_consumer_secre\
t'), $_SESSION['oauth_token'], $_SESSION['oauth_token_secret']);
//Request access tokens from google latitude
$access_token = $connection->getAccessToken($_REQUEST['oauth_verifier']);
var_dump($access_token['oauth_token']);
update_option( 'glatitudehistory_oauth_token', $access_token['oauth_token']);
update_option( 'glatitudehistory_oauth_secret', $access_token['oauth_token_secret']);
header('Location: ' . $_SERVER['SCRIPT_NAME'] . '?page=google-latitude-history-menu');
}
//Creates Latitude connection
$this->latitude_con = new LatitudeOAuth(get_option('glatitudehistory_oauth_consumer_key'), get_option('glatitudehistory_oauth_consumer_secre\
t'), get_option('glatitudehistory_oauth_token'), get_option('glatitudehistory_oauth_secret'));
}
2. click “Refresh OAuth Token” on the Google Latitude settings page and go through the 2 screens to grant access. When you are returned to wordpress at the top should be something like:
string(45) “2/8w-1s2swPQshajsdke9ck333Zb2cQy1nfkEL8”
If you see this, this is the oauth token. you can change the function back now.
3. If you see the oauth token there query your wordpress database in query the options table where option_name = ‘glatitudehistory_oauth_token’. You should see the token there too.