Error connecting to Facebook
-
Hello
I updated the plugin to V2 and after trying to connect to Facebook, it gives me an error in the end. At every try, I obtain the error “Something went wrong when connecting to Facebook! Please try again.” with no further information.Many thanks for your help.
The page I need help with: [log in to see the link]
-
Hey @joaofcm12
Thanks for contacting us about Facebook for WooCommerce! I am happy to help out ??
We have a snippet that will give us some additional error information, which may give us a better indication as to what might be happening here. Can you please add the following snippet to your site and attempt to connect to Facebook again? If you aren’t familiar with adding custom code to your site, here is some information as to how to do it. Personally, I like the free Code Snippets plugin method.
Here is the snippet:
add_filter( ‘wc_facebook_connection_proxy_url’, function() { return ‘https://wc-connect-test.skyverge.com/auth/facebook/’;} );
Once the snippet is in place and you have had a chance to try to connect to Facebook again, would you please send along any additional error messages that show?
Cheers,
Steve
SkyVergeHi Steve!
Thank you for your assistance.
It looks like the code snippet is not correct. I get this error message:
“Don’t Panic
The code snippet you are trying to save produced a fatal error on line 1:syntax error, unexpected ‘:’, expecting ‘;’
The previous version of the snippet is unchanged, and the rest of this site should be functioning normally as before.Please use the back button in your browser to return to the previous page and try to fix the code error. If you prefer, you can close this page and discard the changes you just made. No changes will be made to this site.”
best regards,
Joao CostaHey @joaofcm12
Here is the snippet again in Snippi, to make sure that the information is accurate. That being said, it may not be needed.
I took a look again at your site and noted the title of the site. We sometimes see this issue come up when there are non-ASCII characters in the page title. I took a look and noted that there are some non-ASCII characters in the title of the site. This data gets saved to Facebook in a field called wc_facebook_external_business_id and we will want to change this to see if it allows your connection to Facebook to complete successfully.
There is a method to change this within the site itself, so let’s start by trying out the steps to change this to see if it helps:
- Go to https://dalecrim.com/wp-admin/options.php
- Search for wc_facebook_external_business_id
- In the field next to it, change the data in that field to just the basic title of the page without any extra characters in place.
- Scroll to the bottom of this page and click Save Changes.
- In some cases, the data may not be saved due to larger databases and / or PHP settings, so after saving this, locate the wc_facebook_external_business_id field again and verify that the changes in place did save.
Once you have changed this, can you please try to connect to Facebook again and let me know if you get any further in the connection process?
Cheers,
Steve
SkyVergeHi @skyvergesteve
The snippet is in place and this is the message that was returned after the error:
“Something went wrong when connecting to Facebook!
Please try again – Could not retrieve installation IDs –GET https://graph.facebook.com/v7.0/fbe_business/fbe_installs?fbe_external_business_id=dalecrim-%F0%9F%8C%BF-faz-parte-do-crescimento-5f243e95ca141&access_token=EAAGvQJc4NAQBAM1U9fZBQOjyZBJeBvTLZAjj1YZC2WR9F0aQjuyahQZCY6CM4wHRQ2K6sFpQ830qnThkUH62eCYnuGH6NaJP3tGYq20fE8VieCbl410GjyeXOeahZBszIQFcuroGk70I0pDLNzXQFOgv7xTm6aJ91b7NGnZBwHGZAAZDZD
resulted in a400 Bad Request
response: {“error”:{“message”:”(#33) An FBE installation does not exist for the business with ID dalecrim-\ud83c\udf3f-faz-parte-do-crescimento-5f243e95ca141 or you do not have permission to see it”,”type”:”OAuthException”,”code”:33,”fbtrace_id”:”A95wdpbgrb1DEdG2RqhFUO-“}}”Regarding the website name, I was never able to change it the way you said. It never registered the “save changes”
I changed the name back to normal characters on the personalize/site identity.Best regards,
Joao Costa-
This reply was modified 4 years, 4 months ago by
joaofcm12.
Hey @joaofcm12
Thanks for providing the updated error message!
Facebook recently updated their settings to toggle “Manage your business” permission to Off by default. This needs to be set to On. Can you please go to your Facebook settings and select Business Integrations > WooCommerce Extension V2 and toggle the Manage your business setting to the On position?
https://cloud.skyver.ge/o0umOywP
Once this is toggled to On, can you please try to connect again?
Cheers,
Steve
SkyVergeI did that and was not successful.
Do you know another way to change the wc_facebook_external_business_id?
I was never able to do that.This message still appears every time I try to set up:
“Something went wrong when connecting to Facebook!
Please try again – Could not retrieve installation IDs –GET https://graph.facebook.com/v7.0/fbe_business/fbe_installs?fbe_external_business_id=dalecrim-%F0%9F%8C%BF-faz-parte-do-crescimento-5f243e95ca141&access_token=EAAGvQJc4NAQBAAjk5X0pDChuZB8anM9KF9J8oGaZCfQ4UFpdrGBk3s5qZAZCKKiZB2B3UdmEpF53RoJoQYHaYgujL3vF8NA0dpDhbZBkL9wZB11ONAvvrgu9W2XJ7RHaEnBuO8vmUCnaX13BAeznXMgZAzZAlTKe6F5Aku179V1uZA9AZDZD
resulted in a400 Bad Request
response: {“error”:{“message”:”(#33) An FBE installation does not exist for the business with ID dalecrim-\ud83c\udf3f-faz-parte-do-crescimento-5f243e95ca141 or you do not have permission to see it”,”type”:”OAuthException”,”code”:33,”fbtrace_id”:”A8pDGxt7aAmUQD40Oid1Ptq”}}”Best regards,
Joao CostaHey @joaofcm12
Regarding changing the wc_facebook_external_business_id data, this can sometimes happen on this page when there is a large number of entries. Are you familiar with working with the database for WordPress? If so, it can also be found / changed there as well. Can you please let me know if you know how to edit the database? I can then hep you find the data there to change the value.
Cheers,
Steve
SkyVerge@skyvergesteve
Yes, I know how to edit the database with phpMyAdmin.
I just don’t know where the data is to change it.
Best regards,
Joao Costa@skyvergesteve I found it!
And I think I got it done now!
I’ll try to do product sync and then I’ll update you if it worked.Thank you for your support!
Best regards,
Joao CostaHey @joaofcm12
To change the value on PHPMyAdmin:
– Please search for the option: wc_facebook_external_business_id in your WordPress database.
– Remove any non-standard ASCII characters from this setting (e.g. use plaintext characters only) but keep the suffix ID.Would you please let me know if you are able to change the wc_facebook_external_business_id in the database and if this gets you connected to Facebook?
Cheers,
Steve
SkyVergeHey @joaofcm12
It has been a while since we heard from you, so I’m going to mark this topic as resolved. If you’re still experiencing issues please take a look at our documentation for more information and create a new thread if you have further questions.Cheers,
Steve
SkyVergeSorry for the late update.
Yes, it worked!
Thank you for all the support!Best regards,
Joao CostaHey @joaofcm12
Hey @pacuia ,
Excellent, glad to hear that you were able to get connected!
If you run into any other questions or issues, please feel free to create a follow up — we’re happy to help out. ??
Cheers,
Steve
SkyVerge
- The topic ‘Error connecting to Facebook’ is closed to new replies.