Simple example using graph API