Class FacebookService
java.lang.Object
com.bytedesk.social.meta.facebook.FacebookService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate final FacebookConfigprivate final org.springframework.web.client.RestTemplate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidProcess incoming webhook event from FacebookvoidsendMessage(String recipientId, String message) Send message to Facebook userbooleanverifyWebhook(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
-