Package com.bytedesk.social.facebook
Class FacebookService
java.lang.Object
com.bytedesk.social.facebook.FacebookService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
private final FacebookConfig
private final org.springframework.web.client.RestTemplate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Process incoming webhook event from Facebookvoid
sendMessage
(String recipientId, String message) Send message to Facebook userboolean
verifyWebhook
(String mode, String verifyToken, String challenge) Verify webhook token
-
Field Details
-
facebookConfig
-
restTemplate
private final org.springframework.web.client.RestTemplate restTemplate -
FACEBOOK_API_BASE_URL
- See Also:
-
-
Constructor Details
-
FacebookService
public FacebookService()
-
-
Method Details
-
sendMessage
Send message to Facebook user -
processWebhookEvent
Process incoming webhook event from Facebook -
verifyWebhook
Verify webhook token
-