이 코드를 사용하고 있지만 빈 데이터 배열을 반환합니다. 내 access_token에 모든 권한이 있습니다.
PAGE_ID을 (를) 알고 있습니다. 이제이 페이지에서 이벤트를 가져와야합니다.
감사Facebook에서 페이지 이벤트를 가져 오는 방법은 무엇입니까?
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : APP_ID, // App ID
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
// Additional initialization code here
};
// Load the SDK Asynchronously
(function(d){
var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js";
ref.parentNode.insertBefore(js, ref);
}(document));
var interval = setInterval(function() {
if (typeof FB != 'undefined') {
clearInterval(interval);
FB.api('/' + PAGE_ID +'/events?access_token=' + ACCESS_TOKEN, function(response) {
//do something with response
});
}
}, 20);
</script>
아무도이 페이지에서 작동하지 않는 이유를 알고 있습니까? https://www.facebook.com/pages/La-CALLE-Jam-Sessions/404870736262643?id=404870736262643&sk=events – surfealokesea