Skip to content

Commit 7779df9

Browse files
authored
source instagram: ask for pages_show_list,pages_read_engagement scopes during oauth flow (#15802)
1 parent c655e3a commit 7779df9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

airbyte-oauth/src/main/java/io/airbyte/oauth/flows/facebook/InstagramOAuthFlow.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// Instagram Graph API require Facebook API User token
1313
public class InstagramOAuthFlow extends FacebookMarketingOAuthFlow {
1414

15-
private static final String SCOPES = "ads_management,instagram_basic,instagram_manage_insights";
15+
private static final String SCOPES = "ads_management,instagram_basic,instagram_manage_insights,pages_show_list,pages_read_engagement";
1616

1717
public InstagramOAuthFlow(final ConfigRepository configRepository, final HttpClient httpClient) {
1818
super(configRepository, httpClient);

airbyte-oauth/src/test/java/io/airbyte/oauth/flows/facebook/InstagramOAuthFlowTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ protected BaseOAuthFlow getOAuthFlow() {
2020

2121
@Override
2222
protected String getExpectedConsentUrl() {
23-
return "https://www.facebook.com/v12.0/dialog/oauth?client_id=test_client_id&redirect_uri=https%3A%2F%2Fairbyte.io&state=state&scope=ads_management%2Cinstagram_basic%2Cinstagram_manage_insights";
23+
return "https://www.facebook.com/v12.0/dialog/oauth?client_id=test_client_id&redirect_uri=https%3A%2F%2Fairbyte.io&state=state&scope=ads_management%2Cinstagram_basic%2Cinstagram_manage_insights%2Cpages_show_list%2Cpages_read_engagement";
2424
}
2525

2626
@Override

0 commit comments

Comments
 (0)