new Page_Controller()
- Source:
Methods
getFacebookPageByLanguage(language) → {String}
Gets the facebook page id by a given language
Parameters:
Name | Type | Description |
---|---|---|
language |
String | The language string - Eg. "en" |
- Source:
Returns:
The facebook page id, if any
- Type
- String
getFacebookPageInfo(page_id, callback_data) → {PageConfig}
Gets the facebook page information and config by a given page id
Parameters:
Name | Type | Description |
---|---|---|
page_id |
String | The facebook page id |
callback_data |
Object | An object to be returned to pipe to response |
- Source:
Returns:
A bluebird promise response with a PageConfig object
- Type
- PageConfig
getFacebookPageLanguage(page_id, callback_data) → {PageConfig}
Gets the facebook page language and config by a given page id
Parameters:
Name | Type | Description |
---|---|---|
page_id |
String | The facebook page id |
callback_data |
Object | An object to be returned to pipe to response |
- Source:
Returns:
A bluebird promise response with a PageConfig object
- Type
- PageConfig
getFacebookPageToken(page_id, callback_data) → {PageConfig}
Gets the facebook page token and config by a given page id
Parameters:
Name | Type | Description |
---|---|---|
page_id |
String | The facebook page id |
callback_data |
Object | An object to be returned to pipe to response |
- Source:
Returns:
A bluebird promise response with a PageConfig object
- Type
- PageConfig
isValidPage(page_id) → {Boolean}
Verifies if a given page id is valid
Parameters:
Name | Type | Description |
---|---|---|
page_id |
String | The facebook page id |
- Source:
Returns:
A boolean response
- Type
- Boolean