Id d'utilisateur GFC

6 views
Skip to first unread message

Cyber tom

unread,
Apr 16, 2011, 1:00:24 PM4/16/11
to 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

unread,
Apr 18, 2011, 1:31:45 PM4/18/11
to 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.

Reply all
Reply to author
Forward
0 new messages