Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
symfony2 service to interact with Facebook Graph API
PHP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
DependencyInjection
Resources/config
Security/User/Provider
BrickstormSocialGraphBundle.php
README.md

README.md

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

      ...
Something went wrong with that request. Please try again.