ginatrapani/ThinkUp — Issue #1075: Gracefully handle disabled Google+ API access
Author: ginatrapani
Created: 2011-10-30 17:50:53+00:00
State: open
Labels: bug, googleplus plugin

If the user sets up a Google API project on code.google.com but does not enable the Google+ API (that instruction is buried in the text), ThinkUp should gracefully handle the problem.

In that case, after attempting to auth your Google account, the JSON that gets returned is:

stdClass Object ( [error] => stdClass Object ( [errors] => Array ( [0] => stdClass Object ( [domain] => usageLimits [reason] => accessNotConfigured [message] => Access Not Configured ) ) [code] => 403 [message] => Access Not Configured ) )

The GooglePlusConfigurationController should check for that error structure and give an informative error message instructing the user to turn G+ access on, with a link to a new troubleshooting documentation page with a screenshot.

https://skitch.com/ginatrapani/grwwb/google-apis-console

This check should happen around line 116, ie, the app code shouldn't assume displayName and id come back in the $gplus_user object.

Related mailing list thread:

http://groups.google.com/group/thinkupapp/browse_thread/thread/35323a725c5c8ac3