background preloader

Facebook

Facebook Twitter

User. GET /me HTTP/1.1 Host: graph.facebook.com /* make the API call */ $response = $facebook->api( "/me" ); /* handle the result */ /* make the API call */ FB.api( "/me", function (response) { if (response && !

User

How-To: Subscribing to data changes using the Real-time Updates API - Développeurs Facebook. A common question we get from developers is how to keep information of Users or Pages using their apps up to date.

How-To: Subscribing to data changes using the Real-time Updates API - Développeurs Facebook

We wanted to share some of the best practices that can improve the reliability and performance of apps you write on Facebook. We often see developers querying the Graph API each time a User logs in to their apps to fetch information and update their records. This presents several issues and has a huge hit on performance. Instead, we encourage you to use the Real-time Updates API that we designed especially for this purpose, allowing developers to subscribe to changes in data in Facebook. Rather than polling Facebook’s servers, your app can then cache data and receive updates whenever the data changes. Login. Facebook. Facebook Graph API - likes returns me an empty set.