Facebook 로그인을 사용하는 Worklight 기반 앱이 있습니다. 나는이 모든 것이 괜찮 미리 볼 때 (I은 로그인 버튼과 페이스 북 로그인 대화 상자가 표시됩니다를 클릭 할 수 있습니다),하지만 난 안드로이드 에뮬레이터 또는 장치에서 실행할 때 얻을 로그 캣에서 다음과 같은 오류 :IBM Worklight - 실제 장치에서 실행하도록 앱 페이스 북 설정
05-28 09:17:35.391: I/Web Console (751): URL has not been configured
> to allow application.: One or more of the provided URL is not set app
> permissions. URL must match the URL of the web page or the page URL or
> domain is a subdomain of the domain of application. at
> https://www.facebook.com/connect/ping?client_id=321009794697186&response_type=token%2Csigned_request%2Ccode&domain=&origin=2&redirect_uri=http%3A%2F%2Fstatic.ak.facebook.com%2Fconnect%2Fxd_arbiter.php%3Fversion%3D24%23cb%3Df1eae8b44c%26origin%3Dfile%253A%252F%252F%252Ff3688c0c94%26domain%3D%26relation%3Dparent&sdk=joey:1
이 앱 내 페이스 북 구성입니다 :
window.fbAsyncInit = function() { FB.init({
appId : 'xxxxx', // App ID // channelUrl : 'http://stormy-sands-2143.herokuapp.com/channel.html', // Channel File
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true, // parse XFBML
oauth: true });
};
// Load the SDK asynchronously (function(d){
var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "http://connect.facebook.net/en_US/all.js";
d.getElementsByTagName('head')[0].appendChild(js); }(document));
이있는 facebook.com 응용 프로그램 내 페이스 북 구성 :
내가이 장치에서 실행하는 구성해야합니까?
이 정보가 도움이됩니까? http://stackoverflow.com/questions/13079285/login-with-facebook-with-my-ibm-worklight-web-application –
나는 이것을 시도했지만 작동하지 않습니다. 어떤 방법 으로든? – user2265231
함수의 시작 부분이 주석 처리 된 이유는 무엇입니까? // SDK를 비동기 적으로로드하십시오 (function (d) { –