• Resolved mattf10

    (@mattf10)


    Same problem as here: https://www.ads-software.com/support/topic/token-exchange-failed-facebook-shop-setup/

    Trying to connect shop for the first time, I get through the entire process, then when redirecting back to my shop site, I get ‘token exchange failed’. I made sure that ‘Instagram’ was not selected.

    Can you check there isn’t something wrong on your end?

    Screen shot of error: https://snipboard.io/ZyM0Q4.jpg

    Here is WC status report:

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://arbc.co.uk
    Site address (URL): https://arbc.co.uk
    WC Version: 6.2.0
    REST API Version: ? 6.2.0
    WC Blocks Version: ? 6.7.3
    Action Scheduler Version: ? 3.4.0
    WC Admin Version: ? 3.1.0
    Log Directory Writable: ?
    WP Version: 5.9
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_GB
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: nginx/1.15.8
    PHP Version: 7.4.27
    PHP Post Max Size: 64 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.58.0
    OpenSSL/1.1.1
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.3.34-MariaDB-1:10.3.34+maria~bionic-log
    Max Upload Size: 64 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 6.2.0
    WC Database Prefix: wp_
    Total Database Size: 58.76MB
    Database Data Size: 38.83MB
    Database Index Size: 19.93MB
    wp_woocommerce_sessions: Data: 1.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_order_items: Data: 0.27MB + Index: 0.11MB + Engine InnoDB
    wp_woocommerce_order_itemmeta: Data: 4.52MB + Index: 2.95MB + Engine InnoDB
    wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_shipping_zone_locations: Data: 0.08MB + Index: 0.08MB + Engine InnoDB
    wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_actions: Data: 0.14MB + Index: 0.16MB + Engine InnoDB
    wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_logs: Data: 0.11MB + Index: 0.13MB + Engine InnoDB
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_comments: Data: 1.52MB + Index: 1.16MB + Engine InnoDB
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_options: Data: 6.17MB + Index: 0.13MB + Engine InnoDB
    wp_postmeta: Data: 10.48MB + Index: 11.83MB + Engine InnoDB
    wp_posts: Data: 1.48MB + Index: 0.70MB + Engine InnoDB
    wp_tdrd_log_details: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_tdrd_redirection: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_usermeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_customer_lookup: Data: 0.25MB + Index: 0.20MB + Engine InnoDB
    wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_product_lookup: Data: 0.19MB + Index: 0.22MB + Engine InnoDB
    wp_wc_order_stats: Data: 0.28MB + Index: 0.28MB + Engine InnoDB
    wp_wc_order_tax_lookup: Data: 0.11MB + Index: 0.11MB + Engine InnoDB
    wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wfblockediplog: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wfconfig: Data: 1.30MB + Index: 0.00MB + Engine InnoDB
    wp_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wffilemods: Data: 4.52MB + Index: 0.00MB + Engine InnoDB
    wp_wfhits: Data: 2.02MB + Index: 0.08MB + Engine InnoDB
    wp_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wfissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wfknownfilelist: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
    wp_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wflogins: Data: 0.39MB + Index: 0.16MB + Engine InnoDB
    wp_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfnotifications: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    wp_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wfstatus: Data: 0.14MB + Index: 0.09MB + Engine InnoDB
    wp_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_shipping_table_rates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_yoast_indexable: Data: 1.16MB + Index: 0.33MB + Engine InnoDB
    wp_yoast_indexable_hierarchy: Data: 0.06MB + Index: 0.05MB + Engine InnoDB
    wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_yoast_seo_links: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    accordions: 1
    acf-field: 21
    acf-field-group: 6
    attachment: 626
    nav_menu_item: 13
    page: 12
    popup: 2
    popup_theme: 8
    post: 4
    product: 27
    product_variation: 28
    quadro_mods: 15
    review: 121
    revision: 96
    shop_order: 2687
    shop_order_refund: 17
    sp_easy_accordion: 3
    wp_global_styles: 1
    wpcf7_contact_form: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (25) ###
    
    Advanced Custom Fields PRO: by Delicious Brains – 5.11.4
    ARBC How Did You Hear Report: by Port 80 Services – 1.0
    ARBC Stock Reports: by Port 80 Services – 1.0
    Artisan Advanced Styles: by Artisan Themes – 1.0.4
    Autoptimize: by Frank Goossens (futtta) – 2.9.5.1
    Beautiful and responsive cookie consent: by Beautiful Cookie Banner – 2.7.1
    Classic Widgets: by WordPress Contributors – 0.3
    Contact Form 7: by Takayuki Miyoshi – 5.5.5
    Custom Order Numbers for WooCommerce: by Tyche Softwares – 1.3.4
    Easy Accordion: by ShapedPlugin – 2.1.8
    Facebook for WooCommerce: by Facebook – 2.6.9
    Flexible Shipping: by WP Desk – 4.11.2
    MC4WP: Mailchimp for WordPress: by ibericode – 4.8.6
    Popup Maker: by Popup Maker – 1.16.4
    Responsive Lightbox & Gallery: by dFactory – 2.3.4
    Tiered Price Table for WooCommerce: by Kolya Lukin – 4.4.0
    WebP Converter for Media: by Mateusz Gbiorczyk – 4.2.0
    WooCommerce Stripe Gateway: by WooCommerce – 6.1.0
    WooCommerce PayPal Payments: by WooCommerce – 1.6.5
    WooCommerce Print Invoices/Packing Lists: by SkyVerge – 3.11.4
    WooCommerce Product Add-ons: by WooCommerce – 4.6.0 (update to version 4.7.0 is available)
    WooCommerce Table Rate Shipping: by WooCommerce – 3.0.36
    WooCommerce: by Automattic – 6.2.0
    Wordfence Security: by Wordfence – 7.5.8
    Yoast SEO: by Team Yoast – 18.1
    
    ### Inactive Plugins (0) ###
    
    ### Must Use Plugins (2) ###
    
    ARBC: by Port 80 Services – 1.0
    Auto-Update Themes and Specific Plugins: by Matt Frisch – 1.4
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: GBP (£)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to WooCommerce.com: ?
    
    ### WC Pages ###
    
    Shop base: #40 - /order-restoration-kit/
    Basket: #41 - /basket/
    Checkout: #42 - /checkout/
    My account: #43 - /my-account/
    Terms and conditions: #385 - /terms-conditions/
    
    ### Theme ###
    
    Name: ARBC
    Version: 1.0.0
    Author URL: https://port80.services/
    Child Theme: ?
    Parent Theme Name: Modules
    Parent Theme Version: 1.8.6
    Parent Theme Author URL: https://artisanthemes.io/
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: modules/woocommerce/content-product.php
    modules-child/woocommerce/emails/customer-completed-order.php
    modules-child/woocommerce/emails/customer-invoice.php
    modules-child/woocommerce/emails/customer-processing-order.php
    modules-child/woocommerce/loop/loop-start.php
    modules-child/woocommerce/single-product/product-image.php
    modules-child/single-product.php
    modules-child/woocommerce/taxonomy-product-cat.php
    
    ### WooCommerce PayPal Payments ###
    
    Onboarded: ?
    Shop country code: GB
    WooCommerce currency supported: ?
    PayPal card processing available in country: ?
    Pay Later messaging available in country: ?
    Webhook status: –
    Vault enabled: ?
    Logging enabled: ?
    Reference Transactions: –
    Used PayPal Checkout plugin: ?
    
    ### Action Scheduler ###
    
    Complete: 410
    Oldest: 2022-01-16 23:47:33 +0000
    Newest: 2022-02-16 15:12:45 +0000
    
    ### Status report information ###
    
    Generated at: 2022-02-16 15:17:30 +00:00
    
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Thu P. a11n

    (@thup90)

    Hi there,

    I checked and didn’t find anything on our end about this error. Did you try to complete the setup process without any disruption? See this section for more information:

    https://woocommerce.com/document/facebook-for-woocommerce/troubleshooting-connection-errors/#other-errors

    To better understand what’s happening, I’d like to take a look at your site’s logs.

    First, check to make sure that logs are enabled via Marketing > Facebook

    To find the generated logs:

    1. Go to WooCommerce > Status > Logs
    2. In the top right corner, open the drop-down and select the Facebook for WooCommerce log that you need, then click view to load it. Here’s what that looks like: https://d.pr/i/tCljQd
    3. Copy/paste the relevant part of the log into your response so we can take a look.

    Let us know how it goes. We’re here to help further.

    Same issue.. and same wordpress environment.
    log is as below:
    02-17-2022 @ 12:33:14 – Failed to connect to Facebook. Facebook API returned error code: {\”error\”:{\”message\”:\”This authorization code has been used.\”,\”type\”:\”OAuthException\”,\”code\”:100,\”error_subcode\”:36009,\”fbtrace_id\”:\”AIn0xsPG5V7xh5ixF61DASS\”}}

    Plugin Support abwaita a11n

    (@abwaita)

    Hi @bmw123,

    It seems that your issue is a bit different, and more related to this -https://www.ads-software.com/support/topic/whoops-looks-like-something-went-wrong-2/

    Could you try to follow this recommendation to disconnect the app, and then start the set up all over again? Here’s the setup guide – https://woocommerce.com/document/facebook-for-woocommerce/#getting-started

    NOTE: We’d like to keep the threads separate not to hijack the OPs post, so to post a reply, I recommend creating a new thread here and linking it to this thread – https://www.ads-software.com/support/plugin/facebook-for-woocommerce/#new-topic-0

    Thanks!

    Thread Starter mattf10

    (@mattf10)

    Hi – there was an error message in the logs about the catalog:

    Unable to detect valid feed configuration: No catalog ID

    I created a new catalogue and after that, the connection worked.

    @mattf10 how did you create a new catalogue?

    Hello

    I am facing same issue “ Token exchange failed “.
    and also find this code “wc_facebook_external_business_id” wp-admin/options.php this location but i didn’t get this code and then i will check in database in options table i got this code and it is valid code.so please give me the other solution.

    and also i am try with other way remove business application in facebook but still i am facing same issue.

    my error log :-

    02-21-2022 @ 13:25:28 – Failed to connect to Facebook. Reason: {
    “message”: “This authorization code has been used.”,
    “type”: “OAuthException”,
    “code”: 100,
    “error_subcode”: 36009,
    “fbtrace_id”: “ASu4umtqRYGtV9drwD3sIaK”
    }

    Plugin Support Brad P. a11n

    (@snaacks)

    Hi @pradiponline

    It looks like your issue is similar to the one @bmw123 mentioned above and is a little bit different than the original poster. @abwaita offered some great suggestions for this above:

    It seems that your issue is a bit different, and more related to this -https://www.ads-software.com/support/topic/whoops-looks-like-something-went-wrong-2/

    Could you try to follow this recommendation to disconnect the app, and then start the set up all over again? Here’s the setup guide – https://woocommerce.com/document/facebook-for-woocommerce/#getting-started

    I’d recommend checking out their post and following these steps to start. If you find the issue persists please open up a new thread to let us know and we’ll be happy to help further.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Token Exchange Failed’ is closed to new replies.