Class InstagramService

java.lang.Object
com.bytedesk.social.instagram.InstagramService

@Service public class InstagramService extends Object
  • Field Details

    • instagramConfig

      private final InstagramConfig instagramConfig
    • restTemplate

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

      private final com.fasterxml.jackson.databind.ObjectMapper objectMapper
    • INSTAGRAM_API_BASE_URL

      private static final String INSTAGRAM_API_BASE_URL
      See Also:
  • Constructor Details

    • InstagramService

      public InstagramService()
  • Method Details

    • sendMessage

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

      public void processWebhookEvent(InstagramWebhookEvent event)
      Process incoming webhook event from Instagram
    • verifyWebhook

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

      public void processWebhookEvent(String rawBody)
      Process incoming webhook event from Instagram (raw JSON string)
    • processInstagramMessage

      private void processInstagramMessage(com.fasterxml.jackson.databind.JsonNode messaging, String pageId)
    • processStoryMention

      private void processStoryMention(com.fasterxml.jackson.databind.JsonNode value)
    • setBusinessProfile

      public boolean setBusinessProfile()
      设置Instagram Business Profile