Gets a page access token that can be used to e.g. get insights for a page.
getPageToken(page, token)
Arguments
page: A page ID or page name.
token: the token (with scope 'manage_pages') of a user that has admin access to the page
Returns
the page access token string
Examples
## Not run:## Get a normal access token with manage_pages scopetoken = fbOAuth(app_id, app_secret, scope="manage_pages")# for a pagepage_token = getPageToken(page, token)## Get page insightsgetInsights(page, token=page_token, metric ="page_impressions")## End(Not run)