woocommerce / facebook-for-woocommerce

A first-party extension plugin built for WooCommerce. Development is managed by Ventures.
https://woocommerce.com/products/facebook/
GNU General Public License v2.0
211 stars 138 forks source link

Wrong Domain Connecting from Facebook #2795

Open puntope opened 2 months ago

puntope commented 2 months ago

🔎 Isolate the bug

✍️ Describe the bug

ZD Ticket: 8680867-zd-a8c Slack Conversation: p1725461469529279-slack-CK365S85V

We discover that for this user, when connecting from Facebook the domain points to:

connect.woocommerce.com/integrations/check-dependencies/facebook

Producing a Bad Request

Screenshot 2024-09-05 at 12 18 02

This domain is not correct and should be:

api.woocommerce.com/integrations/check-dependencies/facebook

✔️ Expected behavior

domain should be:

api.woocommerce.com/integrations/check-dependencies/facebook

🗃 Logs

aijazmahdavi commented 2 weeks ago

what's the solution?

layoutd commented 2 weeks ago

Hi @aijazmahdavi, thanks for following up.

The issue concerns a configuration setting in the WooCommerce Integration app on Facebook. We've updated the setting, but the authorization process doesn't seem to reflect this change yet. We've reached out to Meta to ask for clarification.

In the meantime, this workaround should do the trick:

  1. When you click on the "Continue" button in the "Connect WooCommerce Integration" modal (launched from the Facebook Business > Connected apps > WooCommerce Integration section): Image

  2. A new window opens with the url https://connect.woocommerce.com/app-store-login/facebook/?redirect_uri=… Image

  3. Copy that whole URL and modify it like this: https://connect.woocommerce.com/app-store-login/facebook/?redirect_uri=… → Change connect.woocommerce.com to api.woocommerce.com/integrations https://api.woocommerce.com/integrations/app-store-login/facebook/?redirect_uri=…

  4. Then paste it into a new tab/window (in the same browser session), you should see the correct form: Image

  5. After submitting your store URL, you'll see the Approval form (you need to be logged in to your store admin): Image

  6. IMPORTANT After you click "Approve", the window will go to a white screen. You can close it and go back to the original tab/window with Facebook Business (where you started the Connect WooCommerce Integration process from step 1) and you'll see new options to "Make the most out of your connection" Image

marktokarchuk commented 2 weeks ago

Hello! All works until step 6. Instead of this: " After you click "Approve", the window will go to a white screen" i've got a screen with this text "You do not have permission to finish App Store login."

layoutd commented 2 weeks ago

Hi @marktokarchuk, sorry you're still having problems. Can you send a screenshot? Are you logged in to both the Facebook account and the WooCommerce admin account in the browser you're using for the connection process? What is the URL of the error page? Thanks

aijazmahdavi commented 2 weeks ago

Hi, I am facing the same issue.

Step6: IMPORTANT After you click "Approve", the window will go to a white screen. You can close it and go back to the original tab/window with Facebook Business (where you started the Connect WooCommerce Integration process from step 1) and you'll see new options to "Make the most out of your connection"

Here is what happens I tried new tab and new window after white screen I close the tab/window and come back to meta business page and click see features but it pops same dialogue box for integration, I reloaded the page still same.

Image

layoutd commented 2 weeks ago

Thanks for the reply @aijazmahdavi, we'll push for Meta to clarify what needs to happen for this process to successfully finish.

cosycorners commented 2 weeks ago

I also get stuck on step 6 ...

aijazmahdavi commented 2 weeks ago

Thanks @layoutd so shall I wait or there is trick for doing it.

layoutd commented 2 weeks ago

Please hang tight until we get some sort of clarification. Hope to have something for you soon!

mankinchan commented 2 weeks ago

I am also stuck on step 6, rather I don't see it all. I click approve on step 5 and the window closes, leaving me back at step 1.