Skip to content

Commit

Permalink
Remove Facebook login redirect (#450)
Browse files Browse the repository at this point in the history
* Back changes to template org_whatsapp_cloud_connect

* Fix variable name

* Back popup to create WAC channels
  • Loading branch information
Robi9 authored Sep 13, 2023
1 parent 935155e commit 36a3253
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
6 changes: 0 additions & 6 deletions templates/channels/types/whatsapp_cloud/claim.haml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@
.alert-error.my-4
{{ claim_error }}

-if unsupported_facebook_business_id
.alert-error.my-4
-blocktrans trimmed
One of the Facebook business manager you are trying to connect is not configured.
If you do not see the WhatsApp business number you want to connect, please reach out for support.

-block form
.mt-4
%form#claim-form(style="display:none;" method="POST" action="{{ claim_url }}")
Expand Down
5 changes: 0 additions & 5 deletions templates/orgs/org_whatsapp_cloud_connect.haml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
}
});


window.fbAsyncInit = function () {
// JavaScript SDK configuration and setup
FB.init({
Expand Down Expand Up @@ -81,10 +80,6 @@
$("#user-access-token").val(accessToken);
$("#claim-form").submit();
}
//Use this token to call the debug_token API and get the shared WABA's ID
} else {
console.log('User cancelled login or did not fully authorize, redirect to the dialog auth');
//location.replace("https://www.facebook.com/v14.0/dialog/oauth?client_id={{ facebook_app_id }}&redirect_uri=" + window.location.origin + window.location.pathname + "&scope=business_management,whatsapp_business_management,whatsapp_business_messaging&response_type=token")
}
}, {
scope: 'business_management,whatsapp_business_management,whatsapp_business_messaging',
Expand Down

0 comments on commit 36a3253

Please sign in to comment.