Facebook javascript sdk for login function not works in browser based Cordova project
€8-30 EUR
已取消
已发布将近 6 年前
€8-30 EUR
货到付款
Recently, I'm using cordova/inappbrowser to convert my web into android app. In my web project I used a javascript sdk for facebook login, it works well in all browser but in Cordova/inappbrowser project when I click "login with facebook" it opens a white fixed page. Who can help me to deal with this problem?
//--------------------------- [login to view URL] (Cordova www folder) -----------------------------------------------
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/[login to view URL]" />
</head>
<body>
<div>
<script type="text/javascript" charset="utf-8">
[login to view URL]('[login to view URL]', '_self ', 'location=no');
</script>
</div>
</body>
</html>
//--------------------------- [login to view URL] ([login to view URL]) -----------------------------------------------
[login to view URL] = function() {
[login to view URL]({
appId : 'my project id',
cookie : true,
xfbml : true,
version : 'v3.0'
});
[login to view URL](function(response) {
if ([login to view URL] === 'connected') {
$[login to view URL]();
[login to view URL]('connected');
} else {
[login to view URL]('not connected');
}
});
};
(function(d, s, id) {
var js, fjs = [login to view URL](s)[0];
if ([login to view URL](id)) return;
js = [login to view URL](s); [login to view URL] = id;
[login to view URL] = "[login to view URL]";
[login to view URL](js, fjs);
}(document, 'script', 'facebook-jssdk'));
$[login to view URL] = function() {
[login to view URL]('/me', { locale: 'it_IT', fields: 'id,name,first_name,last_name,email,picture' }, function(response) {
var faceuserdata = {};
faceuserdata["faceid"] = [login to view URL];
faceuserdata["faceming"] = response.first_name;
faceuserdata["facexing"] = response.last_name;
faceuserdata["faceemail"] = [login to view URL];
$[login to view URL]("consumatore/[login to view URL]", faceuserdata).then(function(response) {
eval([login to view URL]);
});
});
}
$[login to view URL] = function() {
[login to view URL](function(response) {
[login to view URL](response);
if ([login to view URL] === 'connected') {
$[login to view URL]();
$[login to view URL]();
[login to view URL]('connected');
} else {
[login to view URL]('not connected');
}
}, {scope: 'public_profile,email'});
}
$[login to view URL] = function(){
if($[login to view URL]){
window.location.href='consumatore/[login to view URL]';
}else{
[login to view URL](function(response) {
window.location.href='consumatore/[login to view URL]';
});
}
}
Hello Sir, how are you?
I have been working with hybrid apps (ionic and cordova and reactjs) for many years.
I read your description carefully and understand your requirements fully.
I am really interested in your project.
I am 100% sure i can satisfy your requirements perfectly.
Nice and familiar interface will greatly make you happy and I hope long term relationship with you
Thank you.
Hi,
I have a working sample of Facebook login using Facebook sdk. I can share the code. Please let me know if you would like a sample apk to test.
Regards,
Saba Nadeem
I have 6 year experience Freelancer,up work,Fiverr & 99design market place I have seen your project that i can to do easily because I have many experience to Graphic Design,Webdesign,Web Develop & programming .So I could create it for you as soon as that easy but how this have done ,,,,please discuses before start job,,,,
Hello.. thanks for watching my message. I can fix your this issue in hour. I have of experience in facing this kind of issue. please ping me just with your suitable time.
Warm Regards
Shivam Jaiswal.