flickering
flickering copied to clipboard
Session issue
Sorry a tad new to this, I installed Flickering via composer and everything was going well until I tried:
Flickering::handshake($apiKey, $apiSecret);
$photos = Flickering::getResultsOf('people.getPhotos', array('user_id' => '31667913@N06'));
var_dump($photos);
I then got:
PHP Fatal error: Uncaught exception 'RuntimeException' with message 'Failed to start the session because headers have already been sent by "/Applications/wordpress-4.0-1/apps/wordpress/htdocs/wp-admin/menu-header.php" at line 132.' ...
I am using flickering from within a WordPress plugin structure, just wondering if there is a way around having to start this symfony session? (or if there is something else wrong?)
as a note that the following:
Flickering::handshake($apiKey, $apiSecret);
does not produce any errors.
Thanks
complete test file:
<?php namespace agg\flickr;
use Flickering\Facades\Flickering;
$apiKey = <redact>;
$apiSecret = <redact>;
function fetch()
{
Flickering::handshake($apiKey, $apiSecret);
$photos = Flickering::getResultsOf('people.getPhotos', array('user_id' => '31667913@N06'));
var_dump($photos);
}