Skip to Content Skip to Menu

🕒 Save Time and Effort with CB Editor Assistant: Effortlessly create and refine content in Joomla 3, 4, & 5.
🎁 Limited Offer: Enjoy a 5-day FREE trial and save up to 30% afterward!

CB Facebook Connect and SSL

11 years 6 months ago - 11 years 6 months ago #230255 by teampartyww
CB Facebook Connect and SSL was created by teampartyww
Team,

I have the CB Connect - Facebook plugin working completely under standard HTTP, no problems at all. But when I visit my site via HTTPS @ www.example.com , then click login, the new window pops up, communicates with facebook, then just dies at the following page:

www.example.com/index.php?option=com_comprofiler&task=pluginclass&plugin=cb.facebookconnect&action=facebook&func=accesstoken&format=raw&code= [TOKEN_HERE]#_=_

I see the following error in the browser error console:
Timestamp: 7/8/13 10:56:41 AM
Error: Error: Permission denied to access property 'oAuthSuccess'
Source File: www.example.com/index.php?option=com_comprofiler&task=pluginclass&plugin=cb.facebookconnect&action=facebook&func=accesstoken&format=raw&code= [TOKEN_HERE]#_=_
Line: 1

I have replaced www.example.com where my actual domain would be (they all use the www subdomain, and $live_site in config is set to blank), the [TOKEN_HERE] is the super long auth token. Again keep in mind all the same steps happen when I am not SSL, but the popup closes and the authentication happens like it is supposed to. I am assume this has something to do with the fact that the com_profiler page being postedback to is not SSL but I am not sure.

Thanks,
Tom Cooper
Last edit: 11 years 6 months ago by teampartyww.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48700
  • Thanks: 8317
  • Karma: 1447
11 years 6 months ago #230263 by krileon
Replied by krileon on topic CB Facebook Connect and SSL
Edit configuration.php and ensure live_site is blank. CB Connect is tested working with SSL. Also ensure your URL within your Facebook Application has https and not http.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

11 years 6 months ago #230300 by teampartyww
Replied by teampartyww on topic CB Facebook Connect and SSL
Krileon,

Thank you for the quick response, please note from my original question, $live_site is blank. Since this has to do with the facebook connection (not the canvas page) how do I set the URL within facebook to SSL?

It might help if you could take a few seconds and describe the steps for me the plugin takes to authenticate with facebook, if I have to I will manually modify the page to use HTTPs from within the plugin.

Thanks,
.tc

Please Log in or Create an account to join the conversation.

11 years 6 months ago #230301 by teampartyww
Replied by teampartyww on topic CB Facebook Connect and SSL
You can visit the site and test this live if it provides any insight: HTTPS @ www.worldwideinterweb.com

You can test the facebook login button on the bottom left.

Please Log in or Create an account to join the conversation.

11 years 6 months ago #230329 by teampartyww
Replied by teampartyww on topic CB Facebook Connect and SSL
Any update? The facebook APP is set to HTTPs in all fields, and when the login happens via SSL, I am still just hanging up at the same point listed above.

Thanks,
.tc

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48700
  • Thanks: 8317
  • Karma: 1447
11 years 6 months ago - 11 years 6 months ago #230365 by krileon
Replied by krileon on topic CB Facebook Connect and SSL
If live_site is blank then you may have an issue in htaccess if you're using it. Your site certainly is not SSL ready. You have a ton of mixed content (non-HTTPS) on your site (press F12 in your browser to open dev console then review the header and you'll see none of the URLs are loaded with HTTPS). Nor does it validate. You also have mass of JS errors, which you can find in the error console of your browser. Check htaccess and ensure you're not forcing http to https (quick test is to disable SEF and rename htaccess so it's disabled then see if works fine). If using 3rd party SEF extension then it could be rewriting the URL from HTTPS.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Last edit: 11 years 6 months ago by krileon.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum