0
I tried to post on facebook wall using below code-페이스 북의 벽에 게시 자바 스크립트
function facebook_login() {
FB.login(function (response) {
if (response.authResponse) {
FB.api('/me/feed', 'post', { message: 'Hello, world!' }, function(status) {
if (!status || status.error) {
console.log('Error occured');
} else {
console.log('Post ID: ' + status.id);
}
});
FB.api('/me', function(response) {
var user_profile = JSON.stringify(response);
});
}
},{scope: 'email,publish_actions,user_birthday,offline_access'});
}
를 통해
But It throw me this error:
code: 200
message: "(#200) The user hasn't authorized the application to perform this action"
type: "OAuthException"
I do not understand what I did wrong.
"publish_actions"권한을 얻으려면 검토를 위해 앱을 보내야합니까? – mizan3008
앱에서 역할이있는 사용자가 아닌 모든 사용자에 대해 작동하려면 '예'를 선택하고 '예'를 선택하십시오. – luschn