キャンセルされた

Facebook javascript sdk for login function not works in browser based Cordova project

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]';

});

}

}

スキル: Android, Facebook API, Javascript, Mobile App Development, PhoneGap

さらに表示: script src https fbstatic a akamaihd net rsrc php v2 yp r yp3qqdhvr9d js data bootloader hash liyyk async 1 onload window _btldr, script src https fbstatic a akamaihd net rsrc php v2 y6 r a85j_wv6zoe js data bootloader hash vsvmz crossorigin anonymous script, script src https fbstatic a akamaihd net rsrc php v2 y4 r y3fdjfezevf js data bootloader hash u 4p8 async 1 onload window _btldr, phonegap facebook login tutorial, cordova facebook integration, facebook javascript sdk mobile web, script src https fbstatic a akamaihd net rsrc php v2 yo r hehg7hgykh_ js data bootloader hash zarct crossorigin anonymous script, facebook ios sdk login, facebook javascript sdk oscommerce, facebook asking email connect, phonegap facebook javascript sdk, facebook javascript sdk fan gate, facebook javascript sdk gate, facebook javascript sdk tutorial gate, facebook rails api connect, facebook google twitter connect boonex, facebook classic asp connect, facebook external script connect button, facebook android sdk login, facebook graph wordpress connect

採用者について:
( 11件のレビュー ) Milano, Italy

プロジェクトID: #17177312

4人のフリーランサーが、このジョブに平均€24で入札しています

edison4mobile

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 p もっと

€23 EUR 1日以内
(54件のレビュー)
6.6
sabanadd

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

€29 EUR 1日以内
(2件のレビュー)
2.2
Atkum

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 cou もっと

€34 EUR 1日以内
(0件のレビュー)
0.0
shivamj952

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.

€8 EUR 1日以内
(0件のレビュー)
0.0