Package com.bytedesk.social.instagram
Class InstagramService
java.lang.Object
com.bytedesk.social.instagram.InstagramService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
private final InstagramConfig
private final com.fasterxml.jackson.databind.ObjectMapper
private final org.springframework.web.client.RestTemplate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
processInstagramMessage
(com.fasterxml.jackson.databind.JsonNode messaging, String pageId) private void
processStoryMention
(com.fasterxml.jackson.databind.JsonNode value) void
Process incoming webhook event from Instagramvoid
processWebhookEvent
(String rawBody) Process incoming webhook event from Instagram (raw JSON string)void
sendMessage
(String recipientId, String message) Send message to Instagram userboolean
设置Instagram Business Profileboolean
verifyWebhook
(String mode, String verifyToken, String challenge) Verify webhook token
-
Field Details
-
instagramConfig
-
restTemplate
private final org.springframework.web.client.RestTemplate restTemplate -
objectMapper
private final com.fasterxml.jackson.databind.ObjectMapper objectMapper -
INSTAGRAM_API_BASE_URL
- See Also:
-
-
Constructor Details
-
InstagramService
public InstagramService()
-
-
Method Details
-
sendMessage
Send message to Instagram user -
processWebhookEvent
Process incoming webhook event from Instagram -
verifyWebhook
Verify webhook token -
processWebhookEvent
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
-