Skip to content

Commit a1e5905

Browse files
authored
Merge pull request #40 from justwatch/fix/correctPageBackedEndpoint
use the correct endpoint to get the instagram accounts
2 parents 7279b15 + 45e5111 commit a1e5905

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

marketing/v22/page.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ func (ps *PageService) GetPageBackedInstagramAccounts(ctx context.Context, pageI
3939
// Entity in the GraphAPI: IGUser.
4040
ConnectedPageBackedInstagramAccount struct {
4141
Data []InstagramUser `json:"data"`
42-
} `json:"connected_page_backed_instagram_account"`
42+
} `json:"instagram_accounts"`
4343
}{}
44-
err = ps.c.GetJSON(ctx, fb.NewRoute(Version, "/%s", pageID).Fields("connected_page_backed_instagram_account{id,username}").String(), &fpiga)
44+
err = ps.c.GetJSON(ctx, fb.NewRoute(Version, "/%s", pageID).Fields("instagram_accounts{id,username}").String(), &fpiga)
4545
if err != nil {
4646
return nil, err
4747
}

0 commit comments

Comments
 (0)