Facebook_Helpers::get_user_connected()

Retrieve the connected user.


Return Return

(array|mixed)


Source Source

File: src/integrations/facebook/helpers/facebook-helpers.php

	private function get_user_connected() {

		$graph = get_option( self::OPTION_KEY );

		$response = array(
			'user_id' => 0,
			'picture' => false,
			'name'    => false,
		);

		if ( ! empty( $graph ) ) {
			$response = $this->transient_get_user_connected( $graph['user']['id'], $graph['user']['token'] );
		}

		return $response;
	}