MrSwitch/hello.js

Uncaught TypeError: Cannot use 'in' operator to search for 'feed' in Not Found

Open

#330 geöffnet am 19. Okt. 2015

Auf GitHub ansehen
 (9 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (557 Forks)batch import
good first issuehelp wanted

Repository-Metriken

Stars
 (4.630 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Hello there,

I'm using the hello.js as an oauth2 client and it works fine for other networks.

Although i've no problem to use hello.js to post in facebook it is always returning this error in google plus.

POST https://www.googleapis.com/me/share?access_token=XXXXXXXXXXXXXX 404 (OK) hello.all.min.js:4 Uncaught TypeError: Cannot use 'in' operator to search for 'feed' in Not Found

BTW, the url https://www.googleapis.com/me/share?access_token=XXXXXXXXXXXXXX returns 'Not found' although the token is ok.

Google + api is enabled on console. I use a json object to post from hello.api(), something like:

  json = {
    "object": {
      "attachments": [{
          "url": "http://domain/domain.png",
          "objectType": "article"
      }],
      "originalContent": "content ok",
    },
    "access": {
      "items": [{
          "type": "extendedCircles"
      }],
      "domainRestricted": false
    }
  }
}

Any help? Thanks in advance!

Contributor Guide