Skip to content

labranchearmee/SocialGraphBundle

Repository files navigation

manage facebook / twitter interaction

Facebook

Mise à jour de FOSUser avec les données de FOSFacebook

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);
      }

Récupération des amis

      $fbManager = new FacebookManager($this->get('fos_facebook.api'));
      $fbManager->getFriends()

Post a stream

      $fbManager = new FacebookManager($this->get('fos_facebook.api'));
      $fbManager->updateStatus($link, $message);

Twitter

Post a tweet

      ...

About

symfony2 service to interact with Facebook Graph API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages