So how exactly does the fetchPersonAppDataRequest of VIEWER_FRIENDS
work? I'm try to write an app for sharing URL's between friends and
when VIEWER = OWNER on a profile I wanted the app to display the URL's
the current logged in user has sent and use the
fetchPersonAppDataRequest obtain all of the URLs the current user's
friends have sent to them. Is this not possible...
The code I'm using is essentially as follows (trimmed down to only
display the VIEWER_FRIENDS app data request):
function loadFriends(){
var req = opensocial.newDataRequest();
req.add(req.newFetchPersonAppDataRequest('VIEWER_FRIENDS', 'shared'),
'viewerFriendData');
.
.
.
req.send(onLoadFriends);
}
function onLoadFriends(data) {
var viewerFriendData = data.get('viewerFriendData').getData();
.
.
.
}
and the viewerFriendData object is just an emtpy object when as far as
I understand it should be retrieving all of the users friends app data
associated with the key 'shared'.
Thanks so much.
On Jun 11, 3:02 pm, "Rohit Ghatol" <[EMAIL PROTECTED]> wrote:
> Hi Alex,
> Think about receiving gifts as you do not actually receive it, but some one
> have claimed of sending you a gift.
> The reason, why the gifts received is not in my profile, is due to the fact
> that a VIEWER can write in his/her own app data. Infact only a VIEWER can
> write app data.
>
> Hence When we say, we have received a gift we access VIEWER_FRIENDS (our
> friends) appdata to check if some one has flagged that he/she has sent me a
> gift.
> It is confusing at the beginning until you realize, only VIEWER can write in
>
> his/her own app store, and receiving gift is not actually receiving gift up
> checking if some one has sent me a gift.
>
> Now the reason, why only VIEWER is allowed to store data in his/her own app
> store, is that if VIEWER is allowed to store data in a VIEWER_FRIENDS app
> store, there is no way of telling who was the owner of the data.
>
> I hope this helps, if not please shoot back more specific questions, I
> would be more than happy to address them.
>
> Thanks,
> Rohit
>
> Google Developer Programs
>
> Meet OpenSocial developers
> irc://irc.freenode.net/opensocial
>
> On Thu, Jun 12, 2008 at 12:13 AM, Rohit Ghatol <[EMAIL PROTECTED]>
> wrote:
>
> > Hi Alex,
> > Think about receiving gifts as you do not actually receive it, but some
>
> one have claimed of sending you a gift.> The reason, why the gifts received
> is not in my profile, is due to the
>
> fact that a VIEWER can write in his/her own app data. Infact only a VIEWER
> can write app data.
>
> > Hence When we say, we have received a gift we access VIEWER_FRIENDS (our
>
> friends) appdata to check if some one has flagged that he/she has sent me a
> gift.> It is confusing at the beginning until you realize, only VIEWER can
> write
>
> in his/her own app store, and receiving gift is not actually receiving gift
> up checking if some one has sent me a gift.
>
> > Now the reason, why only VIEWER is allowed to store data in his/her own
>
> app store, is that if VIEWER is allowed to store data in a VIEWER_FRIENDS
> app store, there is no way of telling who was the owner of the data.
>
> > I hope this helps, if not please shoot back more specific questions, I
>
> would be more than happy to address them.
>
>
>
> > Thanks,
> > Rohit
>
> > Google Developer Programs
>
> > Meet OpenSocial developers
> > irc://irc.freenode.net/opensocial
>
> > On Wed, Jun 11, 2008 at 7:58 PM, Alex <[EMAIL PROTECTED]> wrote:
>
> >> So I have been playing around with the tutorial app and have found
> >> that gifts that when I log in gifts that I have sent appear on the app
> >> in my profile and gifts that others have sent me only appear on their
> >> respective profiles. I think that the gifts I have sent and received
> >> should all be appearing in the app on my profile but I'm not sure.
> >> Could someone please clarify?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"OpenSocial Application Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/opensocial-api?hl=en
-~----------~----~----~----~------~----~------~--~---