public class FacebookPage extends BaseSource<FacebookPage>
BaseSource.AuthParams, BaseSource.ResourceParamsauth, config, log, parameters, resources, type| Constructor and Description |
|---|
FacebookPage(DataSiftConfig config) |
| Modifier and Type | Method and Description |
|---|---|
FacebookPage |
addOAutToken(String oAuthAccessToken,
String name,
long expires)
Adds a facebook OAuth token that will be used to fetch data from the configured pages
|
FacebookPage |
addPage(String id,
String url,
String title)
Adds information about a single facebook page
|
FacebookPage |
enableComments(boolean enabled)
set to true, if you want to receive interactions that carry comments related to the posts published on the
monitored page.
|
FacebookPage |
enableLikes(boolean enabled)
set to true, if you want to receive likes interactions.
|
FacebookPage |
enablePageLikes(boolean enabled) |
FacebookPage |
enablePostsByOthers(boolean enabled)
set to true, if you want to receive interactions related to posts created on the monitored page by the users
who interact with that page, but do not administer it.
|
FacebookPage |
setParams(boolean enableLikes,
boolean enableComments,
boolean enablePostsByOthers) |
getAuthAsJSON, getParametersAsJSON, getResourcesAsJSON, hasAuth, hasParams, hasResources, newAuthParams, newResourceParams, setParametersField, typepublic FacebookPage(DataSiftConfig config)
public FacebookPage setParams(boolean enableLikes, boolean enableComments, boolean enablePostsByOthers)
public FacebookPage enableLikes(boolean enabled)
public FacebookPage enablePageLikes(boolean enabled)
public FacebookPage enablePostsByOthers(boolean enabled)
public FacebookPage enableComments(boolean enabled)
public FacebookPage addPage(String id, String url, String title)
id - the id of the facebook pageurl - the facebook page's URLtitle - the page's titlepublic FacebookPage addOAutToken(String oAuthAccessToken, String name, long expires)
oAuthAccessToken - an oauth access tokenname - a human friendly name for this auth tokenexpires - identity resource expiry date/time as a UTC timestamp, i.e. when the token expiresCopyright © 2015. All Rights Reserved.