1
mp3 첨부 파일이있는 활성 사용자 벽에 게시하려고합니다. 그것은 페이스 북의 테스트 콘솔 (아래 참조)에서 잘 작동하지만, 모바일 앱에서 호출하면 메시지 만 게시됩니다. 무엇을 나는 여기에 놓치고 :(Facebook JS - FB.api()는 메시지 첨부 만 미디어 첨부 파일에 게시하지 않습니다.
페이스 북의 시험 콘솔 : 여기
http://developers.facebook.com/docs/reference/rest/stream.publish/ 내 JS입니다 ... 첨부 파일에 벽
로그인
FB.login(
function(response) {
if (response.authResponse) {
alert('logged in');
} else {
alert('not logged in');
}
},{ scope: "email,user_likes,publish_stream,offline_access" } //added offline_access to see if that was the problem
);
포스트
var attachment = {
'message': 'testing',
'attachment': {'media': [{
'type': 'mp3',
'src': 'http://www.looptvandfilm.com/blog/Radiohead%20-%20In%20Rainbows/01%20-%20Radiohead%20-%2015%20Step.MP3',
'title': 'Test Title',
'artist': 'My Artist',
'album': 'My Album' }]}
};
FB.api('/me/feed', 'post', attachment, function(response) {
if (!response || response.error) {
alert(response.error.message);
} else {
alert('Post ID: ' + response.id);
}
});
코드가 고정되었습니다. 고마워, 정말 고마워. '원본'과 '첨부 파일'을 사용하는 것의 차이점은 무엇입니까? – Allover
어떻게 사운드 제목, 아티스트, 설명을 넣을 수 있습니까? – Allover
열린 그래프 호환 mp3 용 html 웹 페이지를 만듭니다. 정보는 http://ogp.me를 참조하십시오. – DMCS