fetchPrivateConversations() public method

Fetches all private conversations from Facebook
public fetchPrivateConversations ( ) : array | Illuminate\View\View
return array | Illuminate\View\View
Exemplo n.º 1
0
 /**
  * Handles all private conversations from Facebook
  * @return void
  */
 public function collectPrivateConversations()
 {
     $newest = $this->message->getNewestMessageDate();
     $conversations = $this->facebookContent->fetchPrivateConversations();
     foreach ($conversations->data as $key => $conversation) {
         if (changeFbDateFormat($conversation->updated_time) > $newest) {
             $this->collectPrivateMessages($conversation, $newest);
         }
     }
 }