<html><head><script src="http://www.description.co.kr/js/jquery-1.8.3.min.js"></script></head><body><script>(function(d, s, id) {var js, fjs = d.getElementsByTagName(s)[0];if (d.getElementById(id)) return;js = d.createElement(s); js.id = id;js.src = "//connect.facebook.net/ko_KR/all.js#xfbml=1&appId=354047521446386";fjs.parentNode.insertBefore(js, fjs);}(document, 'script', 'facebook-jssdk'));</script><script>window.fbAsyncInit = function() {FB.init({appId : '354047521446386', // 앱 IDstatus : true, // 로그인 상태를 확인cookie : true, // 쿠키허용xfbml : true // parse XFBML});
FB.Event.subscribe('auth.login', function(response) {document.location.reload();});
};</script>
<button class="share-btn">test</button>
<script>document.querySelector('body').onclick = function(){
var params = {};params['message'] = 'message';params['name'] = 'name';params['description'] = 'description';params['link'] = 'http://description.co.kr';params['picture'] = 'http://www.description.co.kr/img/logo.png';params['caption'] = 'caption'; FB.api('/me/feed', 'post', params, function(response) { if (!response || response.error) { alert('Error occured'); } else { alert('Published to stream - you might want to delete it now!'); }});
};</script></body></html>
이렇게 실행하면 Error occured
이렇게 에러를 뿌려버립니다.
잘되는 소스코드가 있긴하나..
별 문제 없어보이는데 왜 안될까 싶네요..
만들어보신분 답변 부탁드립니다.
감사합니다.
게시글 목록
| 번호 | 제목 |
|---|---|
| 8724 | |
| 8715 | |
| 8709 | |
| 8707 | |
| 8704 | |
| 8697 | |
| 8688 | |
| 8687 | |
| 8685 | |
| 8681 | |
| 8678 | |
| 8676 | |
| 8667 | |
| 8662 | |
| 8652 | |
| 8650 | |
| 8648 | |
| 8642 | |
| 8641 | |
| 8636 | |
| 8628 | |
| 8622 | |
| 8618 | |
| 8616 | |
| 8612 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기