It is currently Mon Oct 25, 2021 9:37 am

All times are UTC + 5:30 hours




Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: Tue Jul 09, 2013 6:46 pm 

Joined :
Tue Jul 09, 2013 6:38 pm

Posts : 1
Hi,

We have installed the Social Login extension on http://dev.liquidleds.com.au/ . But when we try to login using facebook, we are getting a blank page. Please help me to solve this issue.

With Regards,
Shiv


Report this post
Top
 Profile  
 
PostPosted: Wed Jul 10, 2013 2:11 pm 

Joined :
Tue Jul 05, 2011 3:40 pm

Posts : 50
Hi,

As you have posted your same issue in ticketing system, we have forwarded to technical team and make it to be resolved with high priority. Also, we will share the steps which we have done to resolve this problem.

Thanks,
Shalini R


Report this post
Top
 Profile  
 
PostPosted: Fri Jul 12, 2013 10:15 am 

Joined :
Tue Jul 09, 2013 6:38 pm

Posts : 1
Hi Shalini,

It is more than 2 days and still my issue is not resolved. I am waiting for your response. I need to implement your social login extension on our ~live server. Also, When I log in with Yahoo I am seeing a white page...
Please resolve the issue as soon as possible.

Regards,
Shiv Kumar


Report this post
Top
 Profile  
 
PostPosted: Fri Jul 12, 2013 10:21 am 

Joined :
Tue Jul 05, 2011 3:40 pm

Posts : 50
Hi Shiv,

Sorry for the inconvenience. We have checked your site and noticed that you have done some customization in the social login popup. So that, the registration option and other login options are not working properly. Our technical team is still working on it. You will get the update from them once they have resolved your problem.

Thanks,
Shalini R


Report this post
Top
 Profile  
 
PostPosted: Fri Jul 12, 2013 10:43 am 

Joined :
Tue Jul 09, 2013 6:38 pm

Posts : 1
Hi Shalini,

Thanks for your reply. I have made some modification on yesterday in social login extension. But login with FB, twitter and other account is not working from beginning. I have kept backup of your original files for which I have made some modifications. I have changed sociallogin.phtml and Sociallogin.php block file only. Their backup files are at same location with date in their names.
You can revert back changes made by me for debugging, but please kept backup of my customizations as well.

Regards,
Shiv


Report this post
Top
 Profile  
 
PostPosted: Fri Jul 12, 2013 10:46 am 

Joined :
Tue Jul 05, 2011 3:40 pm

Posts : 50
Hi Shiv,

Thank you for your response. We will convey the same to my technical team to check and do the needful for you. Also, I am requesting you to update the same in your ticket for technical team reference.

Thanks,
Shalini R


Report this post
Top
 Profile  
 
PostPosted: Mon Jan 26, 2015 10:51 am 

Joined :
Mon Jan 26, 2015 10:48 am

Posts : 0
I am having the same issue. I get a black page at this url http://splend.in/sociallogin/index/fblogin


Report this post
Top
 Profile  
 
PostPosted: Fri Feb 13, 2015 12:51 pm 
Apptha Team

Joined :
Wed May 22, 2013 7:37 pm

Responses Posted : 37
Hi,

Please consider the below steps for resolving the issue with Facebook login redirecting to blank page

Steps :

1. Goto the following file app\code\local\Apptha\Sociallogin\controllers\IndexController.php and find the following code




public function fbloginAction() {
// if(!class_exists('Facebook')){
require 'sociallogin/facebook/facebook.php';
// }
require 'sociallogin/config/fbconfig.php';
//create facebook object
$facebook = new FacebookApptha(array(
'appId' => APP_ID,
'secret' => APP_SECRET,
'cookie' => false,
));
//getting facebook user details
$user = $facebook->getUser();

if ($user) {
try {
// Proceed knowing you have a logged in user who's authenticated.
$user_profile = $facebook->api('/me');
$firstname = $user_profile['first_name'];
$email = $user_profile['email'];
$lastname = $user_profile['last_name'];
$facebook_user_id = $user_profile['id'];

$emailpart = explode("@", $email);
$fbimage = $emailpart[0];

$url = "http://graph.facebook.com/$user/picture?type=large";

$fb_image = file_get_contents($url);
$fb_image_name = $fbimage.'-'.$user.'.jpg';
$fileName =Mage::getBaseDir("media") . "/catalog/customer/resz_".$fbimage.'-'.$user.'.jpg';
$file = fopen($fileName, 'w+');
fputs($file, $fb_image);
fclose($file);

$large_url = "http://graph.facebook.com/$user/picture?height=9999&width=9999";
$fb_large_image = file_get_contents($large_url);

$largefileName =Mage::getBaseDir("media") . "/catalog/customer/".$fbimage.'-'.$user.'.jpg';
$largefile = fopen($largefileName, 'w+');
fputs($largefile, $fb_large_image);
fclose($largefile);

$thumb_url = "http://graph.facebook.com/$user/picture?height=75&width=100";
$fb_thumb_image = file_get_contents($thumb_url);

$thumbfileName =Mage::getBaseDir("media") . "/catalog/customer/thumbs/".$fbimage.'-'.$user.'.jpg';
$thumbfile = fopen($thumbfileName, 'w+');
fputs($thumbfile, $fb_thumb_image);
fclose($thumbfile);
if ($email == '') {
//error message
Mage::getSingleton('customer/session')->addError($this->__('Facebook Login connection failed'));
$url = Mage::helper('customer')->getAccountUrl();
return $this->_redirectUrl($url);
} else {
$this->customerAction($firstname, $lastname, $email,$fb_image_name, 'Facebook', $facebook_user_id);
}
} catch (FacebookApiException $e) {
error_log($e);
$user = null;
}
}
}



replace the above code with the below code



public function fbloginAction() {
if($this->getRequest()->getParam('email')) {
$email = $this->getRequest()->getParam('email');
$firstName = $this->getRequest()->getParam('fname');
$lastName = $this->getRequest()->getParam('lname');
$data = $this->getRequest()->getParam('fb');
$this->customerAction($firstName, $lastName, $email, 'Facebook',$data);
} else {
Mage::getSingleton('customer/session')->addError($this->__('Facebook Login connection failed'));
}
$url = Mage::helper('customer')->getAccountUrl();
return $this->_redirectUrl($url);

}





2. Goto the following file app\design\frontend\default\yourtheme\template\sociallogin\sociallogin.phtml and find the below code



function fblogin() {
FB.login(function(response) {
FB.getLoginStatus(function(response) {
if (response.status === 'connected') {
document.getElementById('progress_image_facebooklogin').style.display = "block";
login();
}
});
}, {scope: 'email'});
return false;
}





replace the above code with the below code


function login() {
FB.api('/me', function(response) {
window.location.href = '<?php echo $siteBaseUrl; ?>sociallogin/index/fblogin?fb=1&email='+response.email+'&fname='+response.first_name+'&lname='+response.last_name;
});
}


Report this post
Top
 Profile  
 
PostPosted: Wed Jul 15, 2015 9:49 am 

Joined :
Thu Mar 12, 2015 10:30 pm

Posts : 2
Apptha, is this the solution (for Blank Page on login) applicable for Facebook API 2.4 as well?

In addition, when I try to Sign Up using Facebook, I receive a "Facebook Login Connection Failed" error message.


Report this post
Top
 Profile  
 
PostPosted: Tue Jul 21, 2015 10:30 am 
Apptha Team

Joined :
Wed Jul 24, 2013 5:06 pm

Responses Posted : 60
Hi,

In order to check the issue and assist you kindly contact our support team at assist@apptha.com so that our team assist you accordingly.


Report this post
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC + 5:30 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron