新しいIonicアプリでログインプロセスをサポートするために、Wizcorp PhoneGapのfacebookプラグイン(https://github.com/Wizcorp/phonegap-facebook-plugin)を統合しようとしています。Wizcorp phonegap facebookプラグインに関する問題
Facebookでのログインは、新しいユーザーにとってうまくいくようです。問題は、ユーザーがサインオフしてエラーを返すときにエラーが発生することです。
Facebook error: Session was closed and not closed normally
ここでは何が間違っていますか?我々は、エラーを取得する - 私たちは、以下のコードを実装しようとすると、
しかし:我々は、このリンクをチェックした
function fbLogin() {
facebookConnectPlugin.login(['email'], function (response) {
alert("Login Successfull");
alert(JSON.stringify(response));
}, function (error) {
alert("Login ERROR");
alert(JSON.stringify(error));
})
}
function getDetails() {
facebookConnectPlugin.getLoginStatus(function (response) {
if (response.status === 'connected') {
alert("You're connected!");
var userID = response.authResponse.userID;
facebookConnectPlugin.api('/' + response.authResponse.userID + '?fields=id,name,picture.width(400).height(400)', [], function (result) {
alert(JSON.stringify(result));
})
} else if (response.status === 'not_authorized') {
alert("Not Autherized!");
} else {
alert("You're not loggin into Facebook!");
}
});
}
function fbLogout() {
facebookConnectPlugin.logout(function (response) {
alert("Logout success");
alert(JSON.stringify(response));
}, function (error) {
alert("Logout ERROR");
alert(JSON.stringify(error));
})
}
:ここ
は、私たちが今使っているコードですTyeperror cordova.getActivity is not a function
PackageInfo info = cordova.getActivity().getPackageManager().getPackageInfo("com.goapes.golearn", PackageManager.GET_SIGNATURES);
上記のリンクは、Facebook Appダッシュボードに別のハッシュキーが必要であることを示しています。このハッシュを入手する別の方法はありますか?
こんにちはShanaka - プラグインは有望に見えますが、私たちはこれに対して別の解決策を見つけました。 –