| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_WAIT |
appOauthKey, appOauthSecret, MAX_LOOKUP, oauthKey, oauthSecretconversations, DAY, DEFAULT_SPEAKER, engaged, HOUR, MAX_FILE_SIZE, MINUTE, RETRY| Constructor and Description |
|---|
FacebookMessaging() |
FacebookMessaging(boolean isEnabled) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkDirectMessages()
Check direct messages and reply.
|
void |
checkProfile()
Check profile for messages.
|
void |
input(java.lang.Object input,
Network network)
Process the direct message.
|
java.lang.String |
inputFacebookMessengerMessage(java.lang.String text,
java.lang.String targetUserName,
java.lang.String senderId,
net.sf.json.JSONObject message,
Network network)
Process the text sentence.
|
void |
inputSentence(java.lang.String text,
java.lang.String userId,
java.lang.String userName,
java.lang.String targetUserName,
java.lang.String id,
Network network)
Process the text sentence.
|
void |
output(Vertex output)
Output the status or direct message reply.
|
void |
sendMessage(Vertex source,
Vertex message,
Vertex conversationId)
Self API
Send a message to the user.
|
void |
sendMessage(Vertex source,
Vertex message,
Vertex conversationId,
Vertex command)
Self API
Send a message to the user.
|
authorizeAccount, authorizeComplete, awake, checkAutoPost, checkFriends, checkNewsFeed, checkRSS, checkWall, connect, connectAccount, createJSONAttachment, createJSONQuickReply, format, getAppOauthKey, getAppOauthSecret, getAutoFriend, getAutoFriendKeywords, getAutoPost, getAutoPostHours, getAutoPosts, getButtonType, getConnection, getFacebookMessenger, getFacebookMessengerAccessToken, getFriends, getGetStartedButton, getGreetingText, getLikeAllPosts, getLikeKeywords, getLikes, getMaxFeed, getMaxFriends, getMaxLike, getMaxPost, getMessagesProcessed, getNewsFeedKeywords, getOauthKey, getOauthSecret, getPage, getPageId, getPages, getPersistentMenu, getPostKeywords, getPostRSS, getPosts, getPostsProcessed, getProcessAllNewsFeed, getProcessAllPosts, getProcessNewsFeed, getProcessPost, getProfileName, getReplyToMessages, getRssKeywords, getStripButtonText, getTimeline, getToken, getTokenExpiry, getTrackMessageObjects, getUserName, getWelcomeMessage, initProperties, input, inputSentence, isPage, like, log, migrateProperties, outputPost, post, post, postComment, processComment, saveProperties, sendFacebookMessengerButtonMessage, sendFacebookMessengerMessage, sendMessage, setAppOauthKey, setAppOauthSecret, setAutoFriend, setAutoFriendKeywords, setAutoPost, setAutoPostHours, setButtonType, setConnection, setFacebookMessenger, setFacebookMessengerAccessToken, setGetStartedButton, setGreetingText, setLikeAllPosts, setLikeKeywords, setLikes, setMaxFeed, setMaxFriends, setMaxLike, setMaxPost, setMessagesProcessed, setNewsFeedKeywords, setOauthKey, setOauthSecret, setPage, setPageId, setPages, setPersistentMenu, setPostKeywords, setPostRSS, setPosts, setPostsProcessed, setProcessAllNewsFeed, setProcessAllPosts, setProcessNewsFeed, setProcessPost, setProfileName, setReplyToMessages, setRssKeywords, setStripButtonText, setToken, setTrackMessageObjects, setUserName, setWelcomeMessage, subscribeToMessenger, updateThreadSettingsaddListener, checkEngaged, checkSentence, discover, discoverSentence, getAction, getBot, getEmotionalState, getLanguageState, getListeners, getName, getPrimitive, getResponseListener, getShortTermMemory, initialize, input, isEnabled, log, log, log, notifyExceptionListeners, notifyResponseListener, pool, printInput, removeListener, saveProperties, setAction, setBot, setEmotionalState, setIsEnabled, setLanguageState, setName, setResponseListener, shutdown, toStringpublic FacebookMessaging()
public FacebookMessaging(boolean isEnabled)
public void checkProfile()
checkProfile in class Facebookpublic void checkDirectMessages()
public void input(java.lang.Object input,
Network network)
public void inputSentence(java.lang.String text,
java.lang.String userId,
java.lang.String userName,
java.lang.String targetUserName,
java.lang.String id,
Network network)
public java.lang.String inputFacebookMessengerMessage(java.lang.String text,
java.lang.String targetUserName,
java.lang.String senderId,
net.sf.json.JSONObject message,
Network network)
public void output(Vertex output)
public void sendMessage(Vertex source, Vertex message, Vertex conversationId)
sendMessage in class Facebook