Open SudeshRani opened 4 years ago
@SudeshRani have you able to open the popup and are you getting the access token?
LoginManager.logInWithPermissions(["email","public_profile" ]).then( function (result) { alert('result--'+JSON.stringify(result)) AccessToken.getCurrentAccessToken().then( (data) => { console.log(data.accessToken.toString()) const {accessToken} = data fetch('https://graph.facebook.com/me?fields=id,name,email,first_name,picture,last_name,gender,birthday&access_token=' + accessToken) .then((response) => response.json()) .then((json) => {
alert('the facebook data is ' + JSON.stringify(json));
})
.catch(() => {
})
}
)
} , function (error) {
alert('Login fail with error: ' + error)
} )
I am using this method for accessing the permission and for getting the access token but i am receiving the error: server_error: [code] 1675030 [message]: error performing query . I am not getting any token .
I am using the same code LoginManager and i can get the access key. Check if you have added the correct hash key.
I am facing the same issue , any help???
LoginManager.logInWithPermissions(["email","public_profile" ]).then( function (result) { alert('result--'+JSON.stringify(result)) AccessToken.getCurrentAccessToken().then( (data) => { console.log(data.accessToken.toString()) const {accessToken} = data fetch('https://graph.facebook.com/me?fields=id,name,email,first_name,picture,last_name,gender,birthday&access_token=' + accessToken) .then((response) => response.json()) .then((json) => {
alert('the facebook data is ' + JSON.stringify(json)); }) .catch(() => { }) }
)
} , function (error) {
alert('Login fail with error: ' + error)
} )
I am using this method for accessing the permission and for getting the access token but i am receiving the error: server_error: [code] 1675030 [message]: error performing query . I am not getting any token .
You must setLoginBehavior("web_only")
on android devices before calling LoginManager.logInWithPermissions
if (Platform.OS === "android") {
LoginManager.setLoginBehavior("web_only")
}
...
LoginManager.setLoginBehavior("web_only")
no need anymore if you set hash key following a document configure.
For an application that already uploads to PlayStore follow this: https://github.com/facebook/react-native-fbsdk/issues/633#issuecomment-554335094
I have the same error.. how is this the solve issu.?
when i try to login with facebook it gives me an error: server_error: [code] 1675030 [message]: error performing query. Please help