manage facebook / twitter interaction
It's a pity but it took me quite a while to understand how simple it was... Part of the reason was that there was no tutorial.if ($this->get('fos_facebook.api')->getUser() && !$u->getFacebookID()) { $em = $this->getDoctrine()->getEntityManager(); $fbManager = new FacebookManager($this->get('fos_facebook.api')); $fbManager->updateUser($u, $em); }
$fbManager = new FacebookManager($this->get('fos_facebook.api')); $fbManager->getFriends()
$fbManager = new FacebookManager($this->get('fos_facebook.api')); $fbManager->updateStatus($link, $message);
...