0
hello.js
으로 로그인 할 수 있고 사용자 데이터 (/me
)와 앨범 (/me/albums
)을 얻을 수 있지만 /share
엔드 포인트의 데이터가 없습니다.hello.js와 데이터를 공유하려면 어떻게해야합니까?
예 :
User data is:
Object {first_name: "Lucy"} (edited to save space)
Share data is:
Object {data: Array[0]}
그래서 내가 성공적으로
hello.js
에 로그인 할 수 있지만, 공유 데이터에 액세스 할 수 없습니다 수 있었다 :
hello.init({
facebook : 'SECRET'
}, {scope: 'friends,photos' });
hello.on('auth.login', function(auth){
hello(auth.network).api('/me').then(function(r){
console.log("User data is: ");
console.log(r);
});
hello(auth.network).api('/me/share').then(function(r){
console.log("Share data is: ");
console.log(r);
},function(e){
console.log("ERROR: "+e);
});
});
이 발생합니다. 내 코드에서 누락 된 것이 있습니까? 사용 권한을 어딘가에 업데이트해야합니까? 당신에게
- 당신의 이름, 사용자 ID, 사용자 이름, 프로필 사진, 성별, 네트워크 : 공개 프로필을 요청하는 경우에만 사용할 수있는 다음을 만드는
FB says 국가를 개인화 할 수 있습니다.
그래서 사용자의 상태를 볼 수있는 권한을 요청해야합니다. 그러나 명확히하기 위해 hello.js
permissions docs에는 아무 것도없는 것 같습니다.