Google Friend Connect and Orkut

248 views
Skip to first unread message

sdg

unread,
Mar 31, 2010, 7:46:03 PM3/31/10
to Orkut Developer Forum
Hi, I'm succesfully connecting with Google Friend Connect from my web
site using server side logic, I get the fcauth and with that I can get
the user ID.

Now I want to retrieve that user friends in Orkut to see if some of
them is already a member of my site and show the activity of those
friends to the viewer.

The question is, how do I now the viewer is an Orkut user ? Is there a
way to find out ? Is that user ID I get through GFC the same for
Orkut ? If not, how can I get the user Orkut Id ?

Or is this not possible ?

Thank you,

SDG

Dhaval Pancholi

unread,
Apr 2, 2010, 7:56:25 AM4/2/10
to opensoci...@googlegroups.com
Hi sdg,
               I have implemented Google friend connect in one project and i really like your idea of integrating Google friend Connect with Orkut to publish user feeds,scraps share albums.  Both are done stand alone.  http://fotoscrapr.appspot.com/ Here Google guys have prepared a demo example on scrapping friend a photo with help of stand alone site It definitely uses o auth .

Check out the link i gave you i think it would solve most of your questions. It is implemented in Google App Engine. Google has Java client library to access Data whose link is http://code.google.com/p/orkut-os-client/

Implementing this was always on my to do list but i could'nt do it if you want any help  i would like to participate. Hope it helps

sdg

unread,
Apr 5, 2010, 10:19:18 AM4/5/10
to Orkut Developer Forum
Hi Dhaval Pancholi, thank you for answering.

Can it only be done with Java then ? or would it be the same to use
this: http://code.google.com/p/opensocial-net-client/ ?

Thank you,

SDG


On 2 abr, 08:56, Dhaval Pancholi <dhavalyo...@gmail.com> wrote:
> Hi sdg,
>                I have implemented Google friend connect in one project and i
> really like your idea of integrating Google friend Connect with Orkut to

> publish user feeds,scraps share albums.  Both are done stand alone.http://fotoscrapr.appspot.com/Here Google guys have prepared a demo example


> on scrapping friend a photo with help of stand alone site It definitely uses
> o auth .
>
> Check out the link i gave you i think it would solve most of your questions.
> It is implemented in Google App Engine. Google has Java client library to

> access Data whose link ishttp://code.google.com/p/orkut-os-client/

Robson Dantas

unread,
Apr 6, 2010, 1:31:48 PM4/6/10
to opensoci...@googlegroups.com
Hi sdg,

They are not the same. First one is the *new* project which is being developed by orkut team, it´s not completely done yet, and supports 3legged auth, written in java

The second one is restful based, and supports 2legged auth.

So, answering your question, right now, just java version if you want to interact. Also note, if need to be whitelisted to use the new api.

Regards,

Robson Dantas

2010/4/5 sdg <sandi...@gmail.com>
--
You received this message because you are subscribed to the Google Groups "Orkut Developer Forum" group.
To post to this group, send email to opensoci...@googlegroups.com.
To unsubscribe from this group, send email to opensocial-ork...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/opensocial-orkut?hl=en.


Huzefa

unread,
Apr 19, 2010, 4:45:23 AM4/19/10
to Orkut Developer Forum
I have downloaded the "orkut-os-client" and executed the
"OrkutSample.java".

It throws the following exception(or shows the following things on
console)
"
Request:[{"params":
{"messageGroup":"birthdays","messageType":"notification","groupId":"@friends","userId":"@me"},"id":"0-
messages.get","method":"messages.get"}]
Exception in thread "main" java.lang.RuntimeException: Unexpected
exception while setting response
at
com.google.orkut.client.api.BatchTransaction.setResponse(BatchTransaction.java:
151)
at com.google.orkut.client.sample.Transport.run(Transport.java:104)
at
com.google.orkut.client.sample.FriendTxSample.fetchBirthayNotifications(FriendTxSample.java:
63)
at
com.google.orkut.client.sample.FriendTxSample.run(FriendTxSample.java:
40)
at com.google.orkut.client.sample.OrkutSample.run(OrkutSample.java:
37)
at com.google.orkut.client.sample.OrkutSample.main(OrkutSample.java:
51)
Caused by: org.json.me.JSONException: A JSONArray text must start with
'[' at character 0 of
at org.json.me.JSONTokener.syntaxError(JSONTokener.java:448)
at org.json.me.JSONArray.<init>(JSONArray.java:106)
at org.json.me.JSONArray.<init>(JSONArray.java:145)
at
com.google.orkut.client.api.BatchTransaction.setResponse(BatchTransaction.java:
141)
... 5 more
"

the reason for this exception is that the response is empty.

Can you help me in understanding the reason.

Thanks






On Apr 6, 10:31 pm, Robson Dantas <biu.dan...@gmail.com> wrote:
> Hi sdg,
>
> They are not the same. First one is the *new* project which is being
> developed by orkut team, it´s not completely done yet, and supports 3legged
> auth, written in java
>
> The second one is restful based, and supports 2legged auth.
>
> So, answering your question, right now, just java version if you want to
> interact. Also note, if need to be whitelisted to use the new api.
>
> Regards,
>
> Robson Dantas
>
> 2010/4/5 sdg <sandisk...@gmail.com>
>
> > Hi Dhaval Pancholi, thank you for answering.
>
> > Can it only be done with Java then ? or would it be the same to use
> > this:http://code.google.com/p/opensocial-net-client/ ?
>
> > Thank you,
>
> > SDG
>
> > On 2 abr, 08:56, Dhaval Pancholi <dhavalyo...@gmail.com> wrote:
> > > Hi sdg,
> > >                I have implemented Google friend connect in one project
> > and i
> > > really like your idea of integrating Google friend Connect with Orkut to
> > > publish user feeds,scraps share albums.  Both are done stand alone.
> >http://fotoscrapr.appspot.com/HereGoogle guys have prepared a demo
> > example
> > > on scrapping friend a photo with help of stand alone site It definitely
> > uses
> > > o auth .
>
> > > Check out the link i gave you i think it would solve most of your
> > questions.
> > > It is implemented in Google App Engine. Google has Java client library to
> > > access Data whose link ishttp://code.google.com/p/orkut-os-client/
>
> > > Implementing this was always on my to do list but i could'nt do it if you
> > > want any help  i would like to participate. Hope it helps
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Orkut Developer Forum" group.
> > To post to this group, send email to opensoci...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > opensocial-ork...@googlegroups.com<opensocial-orkut%2Bunsu...@googlegroups.com>
> > .
Reply all
Reply to author
Forward
0 new messages