<commit_before>ZF2-Facebook-SKD-Module
=======================

Zend Framework 2 Facebook SDK Module


Still working on it. Should be public by the end of the week.<commit_msg>Updating user guide<commit_after>ZF2-Facebook-SKD-Module
=======================

Zend Framework 2 Facebook SDK Module

Include the module in your config/application.config.php


Usage:
-----------------------

use Facebook\Controller\Facebook;
use Facebook\Controller\FacebookApiException;
use \Exception;



And in your class:
-----------------------

public $facebook;

public function  __construct() {
		
	$this->facebook = new Facebook(array(
		'appId'  => 'yourAppId',
		'secret' => 'yourSecret'
	));

}


Use it in your action function:
-----------------------

try {
    $user = $this->facebook->getUser();
} catch (Exception $e) {
	print_r($e);
}
{'fraction_non_alphanumeric': 0.23104693140794225, 'fraction_numerical': 0.0048134777376654635, 'mean_word_length': 3.0193236714975846, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 9, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3325938', 'n_tokens_mistral': 259, 'n_tokens_neox': 235, 'n_words': 70}