public function createPhoto($event, $source, $message = null)
	{
		// Set POST request parameters.
		$data = array();
		$data[basename($source)] = '@' . realpath($source);

		if ($message)
		{
			$data['message'] = $message;
		}

		return $this->createConnection($event, 'photos', $data, array('Content-Type' => 'multipart/form-data'));
	}
public function createPhoto($event, $source, $message = null)
	{
		// Set POST request parameters.
		$data = array();
		$data[basename($source)] = '@' . realpath($source);

		if ($message)
		{
			$data['message'] = $message;
		}

		return $this->createConnection($event, 'photos', $data, array('Content-Type' => 'multipart/form-data'));
	}
public function createPhoto ( $ event , $ source , $ message = null ) { // Set POST request parameters. $ data = array ( ) ; $ data [ basename ( $ source ) ] = '@' . realpath ( $ source ) ; if ( $ message ) { $ data [ 'message' ] = $ message ; } return $ this -> createConnection ( $ event , 'photos' , $ data , array ( 'Content-Type' => 'multipart/form-data' ) ) ; }
Method to post a photo on event's wall. Requires authentication and publish_stream permission.

@param   string  $event    The event id.
@param   string  $source   Path to photo.
@param   string  $message  Photo description.

@return  mixed   The decoded JSON response or false if the client is not authenticated.

@since   1.0
Method to post a photo on event s wall . Requires authentication and publish_stream permission .