This tutorial shows you how to fetch Facebook Friends if you have Facebook accessToken.
This sample expect you to have 2 tables ready “FacebookAcounts” and “Friends”. You can look from previous post for tutorial about creating tables.
Here is the the code for Scheduled task called getFriends