Skip to main content

All Questions

1 vote
4 answers
874 views

"Login with Google" in PHP - Google+ API shutdown migration - how to migrate away from plus.people.get?

I got a warning email from Google reminding me of Google+'s EOL which is supposed to break my current "Login with Google", but I am unsure what exactly should I change. Let me show you my (simplified)...
onin's user avatar
  • 5,702
1 vote
1 answer
253 views

How to login to Google API in a server app and use Google Plus?

The initial task was as simple as this: get the latest post from a Google+ page. It took 3 days now to find out that all examples on the Internet seem to be either outdated or wrong or not valid. ...
Onkeltem's user avatar
  • 2,390
1 vote
1 answer
1k views

How to specify fields for $plus->people->get('me') call?

With Google API PHP client library I use the following code, which works well and prints lot of information about the user, who authorizes my application via OAuth2: <?php require_once('google-...
Alexander Farber's user avatar
0 votes
1 answer
2k views

How to reauthenticate a user using Google Oauth2

Here's my problem. I have a Google Plus link on a page with a custom image. The URL is https://accounts.google.com/o/oauth2/auth?client_id=' . Zend_Registry::get('config')->googlePlus->...
sehummel's user avatar
  • 5,538
1 vote
1 answer
500 views

(401) Unauthorized when trying to insert a moment using the Google+ API

Using code below I successfully received a token and using this token also get user detail, but when I try to post/insert moment in user wall I see the following error message Fatal error: Uncaught ...
Mahipal Likhiya's user avatar
1 vote
2 answers
1k views

Authenticate access token provided by GoogleAuthUtil.getToken after sending it to php web server

I am following the docs from link below: https://developers.google.com/+/mobile/android/sign-in#enable_server-side_api_access_for_your_app Specifically the part that says: If you do not require ...
user158443's user avatar
4 votes
1 answer
5k views

Google_Auth_Exception' with message 'Error fetching OAuth2 access token, message: 'invalid_grant'

I'm attempting a slight variation of the Google+ web sign-in server side flow as described on the Google Developer's website. I have a staff login page (staff_login.php) which uses javascript via ...
Ian's user avatar
  • 679
3 votes
1 answer
727 views

Error when trying to use Google OAuth 2.0 login hybrid flow (Google_IO_Exception' with message 'HTTP Error: Unable to connect: '0'')

I'm trying to implement a "Sign-in using G+" button using the server-side hybrid flow and I keep getting the same error : Google_IO_Exception' with message 'HTTP Error: Unable to connect: '0' I have ...
Waldo Jeffers's user avatar
2 votes
3 answers
3k views

Can't get an offline access token with the Google PHP sdk 1.0.0

I can't get an offline access token with this code... Why ? $client = new Google_Client(); $client->setApplicationName('MyAppName'); $client->setScopes(array('https://www.googleapis.com/auth/...
Deptroco's user avatar
  • 129
0 votes
0 answers
1k views

Google API with PHP

EDIT Issue solved. I missed to call session_start(). A really stupid mistake! :( But, now it works fine! \o/ ORIGINAL QUESTION I'm trying to use Google API applying the recipe provided by Google ...
MaxAuray's user avatar
  • 513