I'm using phonegap facebook connect plugin (https://github.com/Wizcorp/phonegap-facebook-plugin) for Facebook Authentication in app. It was working till today morning. Now suddenly it stops working and gives error as below for different devices iOS & Android:
For Android:
You are not logged in. You are not logged in. Please log in and try again.
For iOS:
Given URL is not allowed by the application configuration: One or more of the given URL is not allowed by the App’s settings. To use this URL you must add a valid native platform in your App’s settings
I'm using following code in config.xml
:
<gap:plugin name="com.phonegap.plugins.facebookconnect" version="0.9.0">
<param name="APP_ID" value="99885XXXXXXXXX" />
<param name="APP_NAME" value="Test App" />
</gap:plugin>
facebook call:
function fbLogin() {
facebookConnectPlugin.login(
["public_profile", "email"],
function (response) {
var OAuthToken = response.authResponse.accessToken;
var OAuthAccessToken = response.authResponse.userID;
if (response.authResponse) {
facebookConnectPlugin.api('/me', null,
function (me_response) {
alert("Success: " + me_response);
facebookConnectPlugin.logout(function (response) {}, function (response) {});
});
}
},
function (response) {
alert("Error: " + me_response);
}
);
}
Don't know what is the issue here.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…