코드는 괜찮은 것처럼 보이지만 FB 팝업을 불러와 내 사이트를 공유하지 않는 이유가 무엇인지 전혀 알지 못합니다. 여기 Facebook에서 내 웹 페이지 링크를 공유 할 수없는 이유는 무엇입니까?
는 JS 부분function streamPublish(name, description, hrefTitle, hrefLink, userPrompt){
FB.ui(
{
method: 'stream.publish',
message: '',
attachment: {
name: name,
caption: '',
description: (description),
href: hrefLink
},
action_links: [
{ text: hrefTitle, href: hrefLink }
],
user_prompt_message: userPrompt
},
function(response) {
});
}
function showStream(){
FB.api('/me', function(response) {
//console.log(response.id);
streamPublish(response.name, 'Connect with Abhishek Raj Simon on his new website http://abhisheksimion.cjb.net', 'hrefTitle', 'http://abhisheksimion.cjb.net', "Share abhisheksimion.cjb.net");
});
}
HTML입니다
<a id="fbanchor" href="#" onclick="showStream(); return false;">Like it, Share it!</a>
누군가가, 어디에서 잘못려고하고 지적 할 수 있습니까? 브래킷을 닫으면 더해야한다고는 fqlQuery()
기능을 닫습니다,
Error: showStream is not defined Source File: http://users.cjb.net/abhisheksimion/ Line: 1
내가 스크립트 태그에 생각, 라인 128 : 당신은 내가 자바 스크립트 오류가 진행 웹 사이트 http://abhisheksimion.cjb.net
호기심, FBML 사용을 고려 했습니까? 공유를 지원하며, 사이트에 opengraph 메타 태그를 추가하면 Facebook에서 사용자가 신경 쓰이는 정보를 올바르게 구문 분석하고 표시합니다. – Alan
@Alan : 고마워, 내가 볼게 :) – abi1964
@ Alan : FB는 FBML을 비하하는 과정에있다. http://developers.facebook.com/docs/reference/fbml/ 다른 대안을 보시오. – abi1964