Skip to content

Instantly share code, notes, and snippets.

@lostreception
lostreception / Facebook.php
Last active December 18, 2015 04:49
File 1 = Facebook.php inside hybridauth/Hybrid/Providers File 2 = SQL statement to add the needed colums to wsluserscontacts.php File 3 = wsl/admin/components/contacts/index.php [FULL FILE] File 4 = wsl/includes/services/wsl.authentication.php File 5 = wsl/includes/settings/wsl.database.php
//Partial File find and replace in the actual file
/**
* load the user contacts
*/
function getUserContacts()
{
try{
$response = $this->api->api('/me/friends?fields=id,name,email,birthday,gender');
}
catch( FacebookApiException $e ){