Troubleshooting Facebook Integration in Self-Hosted Chat Woot

TLDR tanelorn4688 had issues with Facebook integration on a self-hosted chat woot. tejaswini guided them on how to change the GraphQL API version and mentioned an update in the global_config. The issue was resolved after matching the API versions and enabling additional services.

Photo of tanelorn4688
tanelorn4688
Mon, 09 Jan 2023 16:34:38 UTC

Hi there, I am having problem setting up the Facebook integration on a self hosted chat woot. The Facebook app has properly register the callback but when creating the inbox the windows is getting stuck on the Facebook dialog. The app was creating with v15 of the graphqlapi but I could see that the oauth api call is run through v14 ! Any help would be greatly appreciated.

Photo of sojan_official
sojan_official
Tue, 10 Jan 2023 13:38:30 UTC

tejaswini could you help ?

Photo of tejaswini
tejaswini
Tue, 10 Jan 2023 13:49:49 UTC

We have our version set to v14.0 but you can change it from `dashboard_controller.rb` from `'v14.0'` to `'v15.0'`..We will be adding this configuration in global_config

Photo of tanelorn4688
tanelorn4688
Tue, 10 Jan 2023 15:21:47 UTC

I have change the setting manually in the code but somehow the Facebook hook is not working.

Photo of tanelorn4688
tanelorn4688
Tue, 10 Jan 2023 15:36:07 UTC

The api version is correct during the call but it seem the facebook SDK is hanging ! In addition the appID is correct the the auth call.

Photo of tanelorn4688
tanelorn4688
Tue, 10 Jan 2023 19:54:57 UTC

tejaswini I was able to connect the Inbox. There is some step missing with the documentation.

Photo of tanelorn4688
tanelorn4688
Tue, 10 Jan 2023 19:55:56 UTC

Not sure how you want to get the feedback. 1. api version vs chatwoot api_version need to match 2. you need to have additional service enable with your app ie javascript SDK login otherwise it does not work.

Photo of tanelorn4688
tanelorn4688
Tue, 10 Jan 2023 19:56:17 UTC

I will now test if instagram is working

Photo of tejaswini
tejaswini
Wed, 11 Jan 2023 05:03:29 UTC

Javascript sdk login in mentioned in the document in a Facebook link. But noted your point let us make it visible. Thanks for pointing out. We will make this change

Photo of tanelorn4688
tanelorn4688
Wed, 11 Jan 2023 09:45:22 UTC

I think you have a screen capture to show the step. and if you make the graphql API version in ENV variable this will work for all usecase.