Class FacebookService

java.lang.Object
com.bytedesk.social.facebook.FacebookService

@Service public class FacebookService extends Object
  • Field Details

    • facebookConfig

      private final FacebookConfig facebookConfig
    • restTemplate

      private final org.springframework.web.client.RestTemplate restTemplate
    • FACEBOOK_API_BASE_URL

      private static final String FACEBOOK_API_BASE_URL
      See Also:
  • Constructor Details

    • FacebookService

      public FacebookService()
  • Method Details

    • sendMessage

      public void sendMessage(String recipientId, String message)
      Send message to Facebook user
    • processWebhookEvent

      public void processWebhookEvent(FacebookWebhookEvent event)
      Process incoming webhook event from Facebook
    • verifyWebhook

      public boolean verifyWebhook(String mode, String verifyToken, String challenge)
      Verify webhook token