Skip to content

Commit

Permalink
Add business_management permission for instagram and facebook (#489)
Browse files Browse the repository at this point in the history
  • Loading branch information
Robi9 authored Jun 13, 2024
1 parent f88cc2e commit ffc1e9b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion templates/channels/types/facebookapp/claim.haml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
:javascript
$(document).ready(function(){
$(".connect-facebook").click(function(evt){
location.replace("https://www.facebook.com/v12.0/dialog/oauth?client_id={{ facebook_app_id }}&redirect_uri=" + window.location.origin + window.location.pathname + "&scope=pages_messaging,pages_show_list,pages_manage_metadata,pages_read_engagement&response_type=token")
location.replace("https://www.facebook.com/v12.0/dialog/oauth?client_id={{ facebook_app_id }}&redirect_uri=" + window.location.origin + window.location.pathname + "&scope=pages_messaging,pages_show_list,pages_manage_metadata,pages_read_engagement,business_management&response_type=token")

});

Expand Down
2 changes: 1 addition & 1 deletion templates/channels/types/facebookapp/refresh_token.haml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
}

},
{scope: 'pages_messaging,pages_show_list,pages_manage_metadata,pages_read_engagement'});
{scope: 'pages_messaging,pages_show_list,pages_manage_metadata,pages_read_engagement,business_management'});

})
});
2 changes: 1 addition & 1 deletion templates/channels/types/instagram/claim.haml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
:javascript
$(document).ready(function(){
$(".connect-facebook").click(function(evt){
location.replace("https://www.facebook.com/v12.0/dialog/oauth?client_id={{ facebook_app_id }}&redirect_uri=" + window.location.origin + window.location.pathname + "&scope=instagram_basic,instagram_manage_messages,pages_manage_metadata,pages_messaging,pages_read_engagement,pages_show_list&response_type=token")
location.replace("https://www.facebook.com/v12.0/dialog/oauth?client_id={{ facebook_app_id }}&redirect_uri=" + window.location.origin + window.location.pathname + "&scope=instagram_basic,instagram_manage_messages,pages_manage_metadata,pages_messaging,pages_read_engagement,pages_show_list,business_management&response_type=token")
});

var hash = window.location.hash.substring(1)
Expand Down
2 changes: 1 addition & 1 deletion templates/channels/types/instagram/refresh_token.haml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@
}

},
{scope: 'instagram_basic,instagram_manage_messages,pages_manage_metadata,pages_messaging,pages_read_engagement,pages_show_list'});
{scope: 'instagram_basic,instagram_manage_messages,pages_manage_metadata,pages_messaging,pages_read_engagement,pages_show_list,business_management'});
})
});

0 comments on commit ffc1e9b

Please sign in to comment.