diff --git a/src/main/java/com/madeuhome/service/web/webinstagram/impl/WebInstagramServiceImpl.java b/src/main/java/com/madeuhome/service/web/webinstagram/impl/WebInstagramServiceImpl.java index 79f4d85..549a254 100644 --- a/src/main/java/com/madeuhome/service/web/webinstagram/impl/WebInstagramServiceImpl.java +++ b/src/main/java/com/madeuhome/service/web/webinstagram/impl/WebInstagramServiceImpl.java @@ -36,7 +36,7 @@ public class WebInstagramServiceImpl implements WebInstagramService { HashMap paramMap) throws Exception { log.debug("WebInstagramServiceImpl selectListWebInstagram START"); HashMap map = new HashMap(); - String apiUrl = "https://graph.instagram.com/" + clientId + "/media?fields=id,caption,media_url,permalink,media_type,thumbnail_url&access_token=" + accessToken; + String apiUrl = "https://graph.facebook.com/" + clientId + "/media?fields=id,caption,media_url,permalink,media_type,thumbnail_url&access_token=" + accessToken; try{ RestTemplate restTemplate = new RestTemplate(); Map response = restTemplate.getForObject(apiUrl, Map.class); diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 434b475..40400f0 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -50,4 +50,4 @@ senderPhoneNumber: 025474711 # Instagram 설정 instagram: client-id: 17841468400622116 - accesstoken: IGAAMzYDUuoLJBZAFNCckI5TlJrd1Y4NE9VYjFSbXJPSWhwZA28tWmhlanN3ZAlpPSGg2MUxIdGFsYnR3dWw5MUhDeGNZAZAE84ZAHFGdGREb0VORUNsWFB4RWZAEWGxfUnJNNXVLVlhUcHhHNm0xQUxyV0FTX0JDQVZAYTTBzU3RGQ3NpawZDZD \ No newline at end of file + accesstoken: EAAbtjekAF1EBQaZAZAmZCW8TyAA176J5yD6tFSj4MaZACgROAxGsvvT0cSvPxqLOHR4Bd8EeHSvWAqHZB8nHxurf3s3z0vtXt8sQ4zZBHpEJcnNTWSOvfch7hXv4uOQcfliBZCL6dDhMukAtgmXRHlfJasKDc5cZBcI7AuqNr1BZB0jUAwPC8uMUiIQ8dFjpRbnVyRwZDZD \ No newline at end of file