Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
1.8k views
in Plugins by

At first, I am programming with python and haven't even basic knowledge with PHP. Can you help me with Facebook login button which worked out of the box when I used builtin plugin. After few days I installed Open Login v3 to make broader pallete of social logins, but since then I'm issuing problems.

Well I think that login is very good, but my knowledge is poor, and when I tried to revert login procedure with basic plugin, my Facebook button for login vanished !?

I am wondering what I've done bad? Login script with div is still in code printout, but I got no clue is that everything:

<div id="fb-root"></div>
  <script>
  window.fbAsyncInit = function() {
  FB.init({
  appId : 'xxxxxx',
  xfbml : true,
  version : 'v2.2'
  });
  };
   
  (function(d, s, id){
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) {return;}
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js";
  fjs.parentNode.insertBefore(js, fjs);
  }(document, 'script', 'facebook-jssdk'));
  </script>

I would appreciate any help. Thanks.

Q2A version: 1.6.3

1 Answer

+1 vote
by
selected by
 
Best answer

If you want to use Open Login plugin , it is recommended that you remove from the qa-plugins folder (delete it) the original facebook login plugin, as per the installation instructions.

On the contrary, if you want to use the default facebook login plugin, you have to remove the open-login plugin 

by
Thx, but now I've got "Uncaught Error: invalid version specified" (sdk.js)

Please see : http://pitalica.com.hr/stoje/
by
Ok, check out your source code...
I can see (view source on my browser) that the facebook <script> .. </script> section is *duplicated*
(see the original facebook-login plugin, in the qa-facebook-login.php)
by
Thank you, I keep on pushing "Custom HTML at top of every page: " in Admin-Layout settings. Disabled it and everything is just fine :)
by
...Oh! But I have another problem with my other site www.veroboard.eu where button appears but cannot log in.

from the browser console:
"The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "http". Protocols must match."
by
I see another error : "App Not Set Up: The developers of this app have not set it up properly for Facebook Login."
by
Firefox console reports: "fbstatic-a.akamaihd.net : server does not support RFC 5746, see CVE-2009-3555" !?
by
Sorry, I do not see that message-
Pls, on your facebook app, set status and review to ON
I think you're still in development mode

ps
If you do not mind, I think it would be better to separate this issue from the original one of this question, it's completely different...
...