Hello,

You can use signed requests, and then you'll get opensocial_owner_id and
opensocial_viewer_id . The container will send you this information.

If you don't want to use that, you can make a data request, grabing
owner_id. I think the option above is safer.

Btw, here are the references:

Signed requests:
http://wiki.opensocial.org/index.php?title=Introduction_To_Signed_Requests

<http://wiki.opensocial.org/index.php?title=Introduction_To_Signed_Requests>Fetching
social data:
http://wiki.opensocial.org/index.php?title=Requesting_Social_Data_using_JavaScript

<http://wiki.opensocial.org/index.php?title=Requesting_Social_Data_using_JavaScript>Let
me know if you have any doubt.

Robson Dantas

2010/4/29 akiritescu <akirite...@gmail.com>

> Hello!
>
> I'm new to orkut opensocial and I need some help.
> I want to know how do I get the userID of the logged in user in order
> to  select ( insert ) his data from database.
>
> In a Facebook application  I get all the necessary information in the
> $_POST variable ( PHP ) and for the userID  I just check
> $_POST[ 'fb_sig_user' ];
> But here I don't have any ideas how to get it,  the $_POST variable
> being empty.
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Orkut Developer Forum" group.
> To post to this group, send email to opensocial-or...@googlegroups.com.
> To unsubscribe from this group, send email to
> opensocial-orkut+unsubscr...@googlegroups.com<opensocial-orkut%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/opensocial-orkut?hl=en.
>
>

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

Reply via email to