Page_API::set_page_access_by_id( string $local_id, string $access_token, string $expiration )
Set an page Access Data with the provided id.
Contents
Parameters
- $local_id
-
(string) (Required) The local id of the Facebook Page to save.
- $access_token
-
(string) (Required) The Facebook Page access token.
- $expiration
-
(string) (Required) The expiration in seconds as provided by the server.
Source
File: src/Tribe/Meetings/Facebook/Page_API.php
public function set_page_access_by_id( $local_id, $access_token, $expiration ) {
$page_data = $this->get_page_by_id( $local_id );
$page_data['access_token'] = esc_attr( $access_token );
$page_data['expiration'] = esc_attr( $expiration );
$this->set_page_by_id( $page_data );
}
Changelog
| Version | Description |
|---|---|
| 1.7.0 | Introduced. |