OpenSocial doesn't provide any functionality for dealing with username /
password authentication, because, well, it's what we would call an
anti-pattern, something you shouldn't do.

Giving out your super secret login credentials to random sites on the net is
a great way to make sure that you have no privacy, your account will be used
for spamming and everything you have of worth in your email will be stolen..
what's more, often those same credentials also give access to online web
stores like amazon, and financial systems like paypal. In other words, it's
a really, really, really bad idea to give out your login name & password to
a site!

That's why OpenSocial instead uses OAuth, it has all the benefits (being
able to access resources like friend lists and profile information, that
require authentication), and none of the downsides.

If you would like to use username/password authentication, well as
mentioned, that's something you shouldn't want, but that's often done by
screen scraping: http://en.wikipedia.org/wiki/Screen_scraping (ie: doing the
posts and fetches your self and parsing the web pages in your code) for the
sites that don't have API's for it (and the smart ones have API's that use
OAuth instead of username/passwords).

     -- Chris

On Wed, Jun 3, 2009 at 7:18 AM, raji <narniraj...@gmail.com> wrote:

>
> Hi,
>   I am new to opensocial. My requirement is to get the list of
> friends/contacts of a user given his 'user-id' and 'password'.
> (similar to getting contacts of gmail, yahoo account). I need to do
> this from with in a java program.
>
> I tried with the opensocial java client and was able to fetch friends
> from my orkut account. I was able to do this only after registering my
> orkut account with 'OpenSocial Dev App'. I got the consumer secret and
> consumer key from orkut sandbox. But it is failing when I am trying to
> fetch contacts of other users. I think this is because, I am using my
> consumer  key and my consumer secret, instead of the other user. Am I
> right?
>
> Is there any way that I can get the friends/contacts with a similar
> approach as 'Google Contacts API' by supplying the user's id and
> password (and get a security token)? I have observed that 'power.com'
> is pulling in friends from various social containers, by simply taking
> user-id and password. Are they using Opensocial or individual APIs for
> each social network?
>
>
> Thanks,
> Rajesh.
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenSocial Application Development" group.
To post to this group, send email to opensocial-api@googlegroups.com
To unsubscribe from this group, send email to 
opensocial-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/opensocial-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to