Google + access token insufficient permission

1.1k views Asked by At

Using OAuth code i am able to generate access token for google+ API .

using this access token in oauthpalyground iam getting JSON response .

When I paste this this URL into a browser am get an error message.

 https://www.googleapis.com/plus/v1/activities?query=%22great%22&access_token=xxxxxxxxxxx 

Error Message

{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "insufficientPermissions",
    "message": "Insufficient Permission"
   }
  ],
  "code": 403,
  "message": "Insufficient Permission"
 }
}

Can anyone explain to me why?

1

There are 1 answers

0
Xavier Egea On

You can not query directly from browser sending the access_token as a querystring. You must send access_ token in headers this way:

Authorization: Bearer <access_token>

Try it with Fiddler or some similar software.