Retrieving messages of friends

8 views
Skip to first unread message

Максім Марусіч

unread,
Jul 24, 2011, 10:57:30 AM7/24/11
to opensoci...@googlegroups.com
Hi,

I developing off-site application and have some problem with retrieving messages of all my friends.

If I getting own messages or messages of one friend by his id all works good.

 public static function  buildGetRequest($userId = array('@me')) {   
            $request = array('method' => 'messages.get',
                'params' => array('userId' => $userId,
                    'groupId' => '@all',
                    'pageType' => 'first',                 
                    'messageType' => 'public_message'),
            );
 return new OrkutRequestData("messages", $request);
}

And than execute  request. It will return me messages. But if I do something like this:

 public static function  buildGetRequest($userId = array('@me')) {
     $requests;
        foreach($userId as $uid) {   
               $request = array('method' => 'messages.get',
                  'params' => array('userId' => array($uid),
                      'groupId' => '@all',
                      'pageType' => 'first',                 
                      'messageType' => 'public_message'),
              );
              $requests['messages_'.$uid] = new OrkutRequestData('messages_'.$uid, $request);
}
 return $requests;
}
And execute multiple request, than it will return me only one or two friends and error "This folder was initialized earlier" (or something like this);

Help me please, i need to finish project and this is my last issue.


                      


Robson Dantas

unread,
Aug 9, 2011, 8:48:07 PM8/9/11
to opensoci...@googlegroups.com
Hi!

This is a bug, which i have already reported to Google.

Let's wait till we get an answer on this.

Robson Dantas
@robsondantas



                      


--
You received this message because you are subscribed to the Google Groups "orkut Developer Forum" group.
To view this discussion on the web visit https://groups.google.com/d/msg/opensocial-orkut/-/vxz0MhAz6rcJ.
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.

Reply all
Reply to author
Forward
0 new messages