페이스 북 로그인으로이 이상한 문제가 생겨서 (페이스 북 사진을 업로드 할 수 있도록) 내 계정, 모든 PC, 심지어는 시크릿에서 잘 작동합니다. 하지만 다른 누군가가 로그인을 시도하면 "Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains."
라고 말합니다. 공유 버튼이있어서 로그인이 필요하고 모든 사람에게 유용합니다. 공유를위한 오류가 없습니다. Valid OAuth redirect URIs
내 웹 사이트 URL로 설정합니다. 코드입니다 : 나는 그것을 사용할 수 있으며 다른 사람들이 주어진 URL을 가져옵니다 만 올 어떻게facebook api 로그인 이상한 문제
$('#getFbImg').click(function() {
FB.getLoginStatus(function(response) {
if (response.status === 'connected') {
var uid = response.authResponse.userID;
var accessToken = response.authResponse.accessToken;
getPermissions();
getUserAlbums();
getUserUploads();
}
else if (response.status === 'not_authorized') {
// the user is logged in to Facebook,
// but has not authenticated your app
}
else {
// the user isn't logged in to Facebook.
FB.login(function(response) {
if (response.authResponse) {
var uid = response.authResponse.userID;
var accessToken = response.authResponse.accessToken;
getPermissions();
getUserAlbums();
getUserUploads();
} else {
console.log('User cancelled login or did not fully authorize.');
}
}, {scope: 'public_profile,user_photos,user_likes'});
}
});
});
는 응용 프로그램 구성 : 주어진 URL 중 하나 이상의 앱의 설정에 의해 허용되지 않습니다에 의해 허용되지 않습니다. URL은 웹 사이트 URL 또는 Canvas URL과 일치해야하며, 도메인은 앱 도메인 중 하나의 하위 도메인이어야합니다. 오류
내 스크립트에서 URL을 사용하고 있지 않다. 어떻게 설정해야합니까? – Alexandros
내 앱 구성에서 – Tobi
내 앱 구성에 '유효한 OAuth 리디렉션 URI'에 1 개의 URL 만 있고 '앱 도메인'에 동일한 URL 만 있습니다. – Alexandros