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 0acfcf9..3ae1b61 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -50,4 +50,4 @@ senderPhoneNumber: 025474711 # Instagram 설정 instagram: client-id: 17841400162629727 - accesstoken: IGAAMzYDUuoLJBZAFRLMUV4V3ZA5RTdIQzNvUmdYQXd6RGpMaGgxbTFQWUJlcmpKZAGlFM29CX20tOE9iSGg4Y1hwdVVHcUVXeS1RQ3dMWVluOEdTdTY4UUh2aFVVR0tGTGhGLVMwWDdkakFtbWJtbnFhQkprMmQxcGsxQjJGZA3pUTQZDZD + accesstoken: EAAbtjekAF1EBQaZAZAmZCW8TyAA176J5yD6tFSj4MaZACgROAxGsvvT0cSvPxqLOHR4Bd8EeHSvWAqHZB8nHxurf3s3z0vtXt8sQ4zZBHpEJcnNTWSOvfch7hXv4uOQcfliBZCL6dDhMukAtgmXRHlfJasKDc5cZBcI7AuqNr1BZB0jUAwPC8uMUiIQ8dFjpRbnVyRwZDZD