Skip to content

Commit

Permalink
Source Instagram: Deleted read_insights scope from OAuth (#12344)
Browse files Browse the repository at this point in the history
* Deleted read_insights scope from oauth

* Deleted read_insights scope from test
  • Loading branch information
lazebnyi authored and suhomud committed May 23, 2022
1 parent 22ad682 commit 69d85f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// Instagram Graph API require Facebook API User token
public class InstagramOAuthFlow extends FacebookMarketingOAuthFlow {

private static final String SCOPES = "ads_management,instagram_basic,instagram_manage_insights,read_insights";
private static final String SCOPES = "ads_management,instagram_basic,instagram_manage_insights";

public InstagramOAuthFlow(final ConfigRepository configRepository, final HttpClient httpClient) {
super(configRepository, httpClient);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ protected BaseOAuthFlow getOAuthFlow() {

@Override
protected String getExpectedConsentUrl() {
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%2Cread_insights";
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";
}

@Override
Expand Down

0 comments on commit 69d85f2

Please sign in to comment.