Facebook has a client library for PHP to interact with its API, but I found it very bloated and inefficient with many redundancies. So I set out to make my own. My primary aim was to keep it very simple – with just a few functions to retrieve any data made available by the API in a simple format.
In the end, I came up with a small class. The constructor takes two arguments, the Facebook application’s public API key, and the private key (just like the original library). However, there are only two other functions –
facebook::login(), which is similar to the original library’s
FacebookRestClient::require_login(), but takes no parameters, and