The OpenSocial Developer's Guide has a complete code listing for retrieving the current user's friends. Please start a new thread if you have any questions beyond what this sample demonstrates:
http://code.google.com/apis/opensocial/docs/0.7/devguide.html#ListFriends_Complete - Jason On Sep 4, 7:34 am, sushant <[EMAIL PROTECTED]> wrote: > I am new to open social. How do i get number of friends for each of > my friend / or list of friends by person Id . very similar to # > 3 > > Some basic code will help. > > thanks > > On Sep 2, 7:26 pm, Jason <[EMAIL PROTECTED]> wrote: > > > I think your application idea is superb -- it's definitely social and > > you can easily generalize it so other users can tag friends in any > > photo, add friend-contributed sticky notes, news updates, etc. > > > Unfortunately, most of the features you want are not yet available. > > Currently, there are no orkut-specific extensions for accessing the > > photos/videos of a user, retrieving or posting scraps or testimonials, > > fans, communities, etc., and theOpenSocialAPIdoes not provide any > > method to return the list of installed applications for a given user. > > > As far as the points thatOpenSocialCAN help you with: > > 3. I believe that orkut allows for a maximum of 1,000 friends. So if > > you set the max to be 1,000, you should get the full list of friends, > > and you can use the size or getTotalSize methods to retrieve the > > correct number. > > 7. While you can't query for mutual friends directly, you should be > > able to retrieve the full list of friends for both the application's > > owner and the current user and compare them. This may not be highly > > efficient, depending on the number of friends you're dealing with. > > 1. Yes, you can useopensocial.requestSendMessage to send a message to > > a friend which will be delivered to the recipient's orkut inbox, email > > inbox, or both depending on his/her settings. You can't send scraps > > programatically (yet), however. > > > Extension APIs for interacting with orkut-specific features like > > photos, scraps, testimonials, and so forth are on the road map, but > > may not be right around the corner. I'm afraid I can't give you a very > > sound ETA, so you may not want to count on them if you have a set > > deadline. That said, a number of features you mention can be done > > right now without scraps, photos, etc. so you may want to prototype > > your application given what is available today to see if it's still > > viable. And if you have any more questions, shoot. :) > > > Cheers! > > - Jason > > > On Aug 30, 1:09 pm, sudipto choudhury <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > I am new to open social development. > > > > I have been trying to create a Orkut Application exclusively for my > > > Class X Batch Mates' community. It mainly consists of a group > > > photo...an image taken 8/9 years ago when we were of Class 10. > > > Moreover, the App will automatically zoom into the image(face) of the > > > OWNER/VIEWER. This i would do using Flash. I have more ideas like > > > putting stickey messages, recent updates from the owners, news, gossip > > > etc. and lots more things that i can think of. > > > > My queries are : > > > > 1. Can OSAPI access the owner's photo galley to access photos? > > > 2. Can the star ratings of a viewer/owner be accessed? By star ratings > > > i mean the fields - trusty,cool, sexy ratings? > > > 3. Can I access the other minor things like no of friends? This is > > > necssary as i can not always go on setting some MAX value while > > > retrieving friend list. > > > 4. Can i Access no of Scraps, no of photos, no of videos? > > > 5. Can i Access the list of FANS(just the name, id and thumb etc, the > > > fields those are visible)? > > > 6. Can i access the list of communities of the viewer? This is also > > > crucial to do some validation through my code (u can understand i > > > would give full access to the app who is a member of my Class Mate > > > Group) > > > 7. Can I access testimonials? > > > 6. Can I access the names/URL of Applications of the viewer? > > > > 7. Then again mutual friends?(owner==viewer) > > > 8. Mutual Communities? > > > > MORE IMPORTANTLY:(if securities set off) > > > 1. Can viewer/owner use OSAPI to send message/scrap (if permited) to > > > another profile holder? > > > 2. Can viewer/owner use OSAPI to reqeust scraps? > > > > Please help me out in all thse as i can not figure out how to do > > > these. > > > > Please also let me know if in future there is a good chance to > > > implement those features (from my query list) which are missing now. > > > > Finally, please let me know, if the idea of my Orkut Application is ok > > > or not. Would it gt approval?...because i want to gift this > > > application to all my class mates on the eve of our 10 year's > > > separation. Can anyone help me in adding some real interesting > > > features? > > > > Thanks for your time and thanks for your support ideas advices > > > feedback. > > > > Thanks and cheers for Google , Orkut andOpenSocialAPIdevelopers. I > > > am loving it! --~--~---------~--~----~------------~-------~--~----~ 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-orkut@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/opensocial-orkut?hl=en -~----------~----~----~----~------~----~------~--~---