Facebook Login does nothing
Rate this topic: 




1.00 out of 6 based on 1 vote(s)






- GK User
- Sun Jan 18, 2015 7:27 pm
- Reply with quote
- Report this post
I've read many discussions about this, but nothing is working.
http://libraenterprises.com/news2/index ... =blankpage
If you click on the login with facebook, it does nothing.
Help please!
shane
http://libraenterprises.com/news2/index ... =blankpage
If you click on the login with facebook, it does nothing.
Help please!
shane
-
- Junior Boarder
- teitbite
- Sun Jan 18, 2015 8:59 pm
- Reply with quote
- Report this post
Could you please provide me with a URL to your website and back-end access via PM (click the “Private Message” text underneath my avatar) so that I may analyze it? It is a lot easier for us to diagnose issues when we have a live site to examine.
-
- Moderator
- GK User
- Mon Jan 19, 2015 2:42 pm
- Reply with quote
- Report this post
I am also experiencing this.
http://www.hydromarket.co.uk
I believe it involved adding this code to the relevant place within the site but I can't see a relevant section within the log in or facebook components.
Obviously in the code we must use our personal API.
<!DOCTYPE html>
<html>
<head>
<title>Facebook Login JavaScript Example</title>
<meta charset="UTF-8">
</head>
<body>
<script>
// This is called with the results from from FB.getLoginStatus().
function statusChangeCallback(response) {
console.log('statusChangeCallback');
console.log(response);
// The response object is returned with a status field that lets the
// app know the current login status of the person.
// Full docs on the response object can be found in the documentation
// for FB.getLoginStatus().
if (response.status === 'connected') {
// Logged into your app and Facebook.
testAPI();
} else if (response.status === 'not_authorized') {
// The person is logged into Facebook, but not your app.
document.getElementById('status').innerHTML = 'Please log ' +
'into this app.';
} else {
// The person is not logged into Facebook, so we're not sure if
// they are logged into this app or not.
document.getElementById('status').innerHTML = 'Please log ' +
'into Facebook.';
}
}
// This function is called when someone finishes with the Login
// Button. See the onlogin handler attached to it in the sample
// code below.
function checkLoginState() {
FB.getLoginStatus(function(response) {
statusChangeCallback(response);
});
}
window.fbAsyncInit = function() {
FB.init({
appId : '{your-app-id}',
cookie : true, // enable cookies to allow the server to access
// the session
xfbml : true, // parse social plugins on this page
version : 'v2.1' // use version 2.1
});
// Now that we've initialized the JavaScript SDK, we call
// FB.getLoginStatus(). This function gets the state of the
// person visiting this page and can return one of three states to
// the callback you provide. They can be:
//
// 1. Logged into your app ('connected')
// 2. Logged into Facebook, but not your app ('not_authorized')
// 3. Not logged into Facebook and can't tell if they are logged into
// your app or not.
//
// These three cases are handled in the callback function.
FB.getLoginStatus(function(response) {
statusChangeCallback(response);
});
};
// Load the SDK asynchronously
(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'));
// Here we run a very simple test of the Graph API after login is
// successful. See statusChangeCallback() for when this call is made.
function testAPI() {
console.log('Welcome! Fetching your information.... ');
FB.api('/me', function(response) {
console.log('Successful login for: ' + response.name);
document.getElementById('status').innerHTML =
'Thanks for logging in, ' + response.name + '!';
});
}
</script>
<!--
Below we include the Login Button social plugin. This button uses
the JavaScript SDK to present a graphical Login button that triggers
the FB.login() function when clicked.
-->
<fb:login-button scope="public_profile,email" onlogin="checkLoginState();">
</fb:login-button>
<div id="status">
</div>
</body>
</html>
http://www.hydromarket.co.uk
I believe it involved adding this code to the relevant place within the site but I can't see a relevant section within the log in or facebook components.
Obviously in the code we must use our personal API.
<!DOCTYPE html>
<html>
<head>
<title>Facebook Login JavaScript Example</title>
<meta charset="UTF-8">
</head>
<body>
<script>
// This is called with the results from from FB.getLoginStatus().
function statusChangeCallback(response) {
console.log('statusChangeCallback');
console.log(response);
// The response object is returned with a status field that lets the
// app know the current login status of the person.
// Full docs on the response object can be found in the documentation
// for FB.getLoginStatus().
if (response.status === 'connected') {
// Logged into your app and Facebook.
testAPI();
} else if (response.status === 'not_authorized') {
// The person is logged into Facebook, but not your app.
document.getElementById('status').innerHTML = 'Please log ' +
'into this app.';
} else {
// The person is not logged into Facebook, so we're not sure if
// they are logged into this app or not.
document.getElementById('status').innerHTML = 'Please log ' +
'into Facebook.';
}
}
// This function is called when someone finishes with the Login
// Button. See the onlogin handler attached to it in the sample
// code below.
function checkLoginState() {
FB.getLoginStatus(function(response) {
statusChangeCallback(response);
});
}
window.fbAsyncInit = function() {
FB.init({
appId : '{your-app-id}',
cookie : true, // enable cookies to allow the server to access
// the session
xfbml : true, // parse social plugins on this page
version : 'v2.1' // use version 2.1
});
// Now that we've initialized the JavaScript SDK, we call
// FB.getLoginStatus(). This function gets the state of the
// person visiting this page and can return one of three states to
// the callback you provide. They can be:
//
// 1. Logged into your app ('connected')
// 2. Logged into Facebook, but not your app ('not_authorized')
// 3. Not logged into Facebook and can't tell if they are logged into
// your app or not.
//
// These three cases are handled in the callback function.
FB.getLoginStatus(function(response) {
statusChangeCallback(response);
});
};
// Load the SDK asynchronously
(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'));
// Here we run a very simple test of the Graph API after login is
// successful. See statusChangeCallback() for when this call is made.
function testAPI() {
console.log('Welcome! Fetching your information.... ');
FB.api('/me', function(response) {
console.log('Successful login for: ' + response.name);
document.getElementById('status').innerHTML =
'Thanks for logging in, ' + response.name + '!';
});
}
</script>
<!--
Below we include the Login Button social plugin. This button uses
the JavaScript SDK to present a graphical Login button that triggers
the FB.login() function when clicked.
-->
<fb:login-button scope="public_profile,email" onlogin="checkLoginState();">
</fb:login-button>
<div id="status">
</div>
</body>
</html>
-
- Senior Boarder
- teitbite
- Wed Jan 21, 2015 9:20 am
- Reply with quote
- Report this post
Hi
I have send Your access to programmers @libraent, please send me an access to ftp as well. In case they will ask for it.
I have send Your access to programmers @libraent, please send me an access to ftp as well. In case they will ask for it.
-
- Moderator
- teitbite
- Wed Jan 21, 2015 6:08 pm
- Reply with quote
- Report this post
Hi
Programmers told me that they were able to login without a problem, so I checked it to and looks like it's working now. Is it working for You as well ?
Programmers told me that they were able to login without a problem, so I checked it to and looks like it's working now. Is it working for You as well ?
-
- Moderator
- GK User
- Wed Jan 21, 2015 7:06 pm
- Reply with quote
- Report this post
Username and password do not match or you do not have an account yet.
I still get this locally..
I still get this locally..

-
- Senior Boarder
- GK User
- Wed Jan 21, 2015 7:07 pm
- Reply with quote
- Report this post
Just tried here in chrome and IE:
http://libraenterprises.com/news2/index ... =blankpage
still nothing.
http://libraenterprises.com/news2/index ... =blankpage
still nothing.
-
- Junior Boarder
- GK User
- Wed Jan 21, 2015 7:12 pm
- Reply with quote
- Report this post
Did you activate to public upon the facebook.com/developers and follow the gavick facebook login tutorial Libreant? Sorry for asking if you have 
My site is showing 4 logins 2 days ago but nothing for today, maybe facebook developers graphs run 48 hours behind? I know that I logged in that day via an article page but upon refresh was auto logged out, seems many problems with this feature..
Regards, Jay.

My site is showing 4 logins 2 days ago but nothing for today, maybe facebook developers graphs run 48 hours behind? I know that I logged in that day via an article page but upon refresh was auto logged out, seems many problems with this feature..
Regards, Jay.
-
- Senior Boarder
- teitbite
- Wed Jan 21, 2015 7:25 pm
- Reply with quote
- Report this post
Hi
Ok. It's not working for me now as well. Very odd issue. I can see me and one of the programmers users being created. I've send it again to they for checkout along with Your ftp access. Hopefully they will find the issue now.
Ok. It's not working for me now as well. Very odd issue. I can see me and one of the programmers users being created. I've send it again to they for checkout along with Your ftp access. Hopefully they will find the issue now.
-
- Moderator
- GK User
- Wed Jan 21, 2015 7:41 pm
- Reply with quote
- Report this post
I hope so.. I saw 4 logins from an article page that was me, I just spoke with my Brother, he seems to think maybe the facebook cookie that stores the authentication is at fault but I have no clue on the issue and neither does he, he just remembers a client having the same problem with a Gavick template.
I hope we can solve this as I love working with your templates
I hope we can solve this as I love working with your templates

-
- Senior Boarder
- teitbite
- Wed Jan 21, 2015 8:45 pm
- Reply with quote
- Report this post
Hi
@upnorthsound I was working with @libraent website and programmers has noticed what problem was that.
When You login in this url:
http://libraenterprises.com/news2/index ... =blankpage
Login with facebook is not working, but using this url it does:
http://www.libraenterprises.com/news2/i ... =blankpage
Can You see the difference? I didn't, but programmers did. One link has "www" and other don't. Which means that facebook app is not configured properly and You need to change it on facebook page directly. Or add a piece of the code to .htaccess file to make it always use www. Here You will find what code: http://stackoverflow.com/questions/4916 ... eneric-way
@upnorthsound I was working with @libraent website and programmers has noticed what problem was that.
When You login in this url:
http://libraenterprises.com/news2/index ... =blankpage
Login with facebook is not working, but using this url it does:
http://www.libraenterprises.com/news2/i ... =blankpage
Can You see the difference? I didn't, but programmers did. One link has "www" and other don't. Which means that facebook app is not configured properly and You need to change it on facebook page directly. Or add a piece of the code to .htaccess file to make it always use www. Here You will find what code: http://stackoverflow.com/questions/4916 ... eneric-way
-
- Moderator
- GK User
- Wed Jan 21, 2015 8:52 pm
- Reply with quote
- Report this post
WOW! Ok, thank you so much! I will look into the htaccess fix. Thank you for your time!
-
- Junior Boarder
- GK User
- Wed Jan 21, 2015 9:12 pm
- Reply with quote
- Report this post
I just tried on both links and was able to log-in, did you change the HTC? - I was given the 'you can not access this part of the site is private' but the log-in worked both times..
-
- Senior Boarder
- GK User
- Thu Jan 22, 2015 3:23 am
- Reply with quote
- Report this post
FYI - I went into the Facebook app and under settings - app domains, list both with www. and without it. Now it can be either!
-
- Junior Boarder
- GK User
- Thu Jan 22, 2015 4:47 pm
- Reply with quote
- Report this post
I have added this but I still seem to be having trouble with the username and password do not match or you do not have an account yet but i'm sure the coders will solve it soon..
-
- Senior Boarder
- teitbite
- Fri Jan 23, 2015 9:18 pm
- Reply with quote
- Report this post
Hi
Ok. Looks like in Your case it's just an outdated code. Please install the plugin attached. I cannot do this myself, becuase I forgot to ask You for joomla panel access
Ok. Looks like in Your case it's just an outdated code. Please install the plugin attached. I cannot do this myself, becuase I forgot to ask You for joomla panel access

-
- Moderator
- GK User
- Sun Jan 25, 2015 12:44 am
- Reply with quote
- Report this post
That worked a dream! May I suggest that for all J2.5 shops you add this as you seem to be getting a lot of headache over this, I assume it's to do with a new token change from FB?
Regards, Jay.
Regards, Jay.
-
- Senior Boarder
- teitbite
- Mon Jan 26, 2015 9:49 pm
- Reply with quote
- Report this post
Hi
I have informed programmers about this. Soon all packages should be updated.
I have informed programmers about this. Soon all packages should be updated.
-
- Moderator
18 posts
• Page 1 of 1