Id d'utilisateur GFC

6 просмотров
Перейти к первому непрочитанному сообщению

Cyber tom

не прочитано,
16 апр. 2011 г., 13:00:2416.04.2011
– Google Friend Connect Developer Forum
Bonjour à tous !
J'aimerais savoir, svp, si on peut récuperer l'id d'un utilisateur
google qui se connecte avec google friend connect afin d'enregistrer
cet id avec des informations particulières au site, dans une base sql ?

Bob Aman

не прочитано,
18 апр. 2011 г., 13:31:4518.04.2011
– google-friend-co...@googlegroups.com

Well... best I can do is answer in English, but here goes:

To get the GFC user ID into your database, you'll need to obtain the
fcauth cookie value and use it to authenticate a REST API call to:

https://www.google.com/friendconnect/api/people/@viewer/@self?fcauth=<your
fcauth>

The response will look like:

{"entry":{"id":"___","name":{"formatted":"___","honorificPrefix":"","additionalName":"","familyName":"","givenName":"___","honorificSuffix":""},"displayName":"___"}}

You can then parse the JSON response, grab the entry.id value, and use
it in your database.

Ответить всем
Отправить сообщение автору
Переслать
0 новых сообщений