Facebook_Helpers::get_user_page_access_token( $page_id )

Get the user page access tokens.


Return Return

(string)


Source Source

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

	public function get_user_page_access_token( $page_id ) {

		$options_pages = get_option( '_uncannyowl_facebook_pages_settings' );

		if ( ! empty( $options_pages ) ) {
			foreach ( $options_pages as $page ) {
				if ( $page['value'] === $page_id ) {
					return $page['page_access_token'];
				}
			}
		}

		return '';
	}