File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -52,8 +52,7 @@ export default defineNuxtConfig({
52
52
clientSecret : ""
53
53
} ,
54
54
instagram : {
55
- accessToken : "" ,
56
- userId : ""
55
+ accessToken : ""
57
56
}
58
57
} ,
59
58
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export class InstagramFeed {
21
21
22
22
async getFeed ( fields : InstagramFields [ ] ) {
23
23
const query = new URLSearchParams ( { fields : fields . join ( ) , access_token : this . accessToken } ) ;
24
- const response = await $fetch < { data : InstagramPost [ ] } > ( `${ this . api } /${ this . userId } /media?${ query } ` ) . catch ( ( e ) => {
24
+ const response = await $fetch < { data : InstagramPost [ ] } > ( `${ this . api } /me /media?${ query } ` ) . catch ( ( e ) => {
25
25
console . warn ( e ) ;
26
26
throw createError ( { statusCode : ErrorCode . INTERNAL_SERVER_ERROR , message : "Failed to fetch instagram feed" } ) ;
27
27
} ) ;
You can’t perform that action at this time.
0 commit comments