최근에 트위트 관련 API 가 변경된거 같다.
[참고] http://nsinc.tistory.com/59
var href = "https://twitter.com/intent/tweet?text="+encodeURIComponent(msg)+"&lang=ko&url="+encodeURIComponent(url);
이렇게 해 줘야 한다. ㅋ.ㅋ

if (sns == "twitter"){
    //sns_ts.location.href = "/twitter/redirect.php?s=d&title="+title+"&message="+message;
    //window.open("/twitter/redirect.php?t=d&title="+title+"&message="+message+"","twitter");
    window.open('',"twitterpop");
    document.SNSGO.t.value = "d";
    //document.SNSGO.title.value = title;
    document.SNSGO.message.value = message;
    document.SNSGO.action = "/twitter/redirect.php";
    document.SNSGO.target = "twitterpop";
    document.SNSGO.submit();               
}else if (sns == "facebook"){
    //window.open("/facebook/index.php?f=d&title="+title+"&message="+message+"","facebook");
    window.open('',"facebookpop");
    document.SNSGO.f.value = "d";
    document.SNSGO.title.value = title;
    document.SNSGO.message.value = message;
    document.SNSGO.action = "/facebook/index.php";
    document.SNSGO.target = "facebookpop";
    document.SNSGO.submit();   
}else if (sns == "me2day"){
    //window.open("/me2day/php/index.php?s=d&title="+title+"&message="+message+"","me2day");
    window.open('',"me2daypop");
    document.SNSGO.s.value = "d";
    document.SNSGO.title.value = title;
    document.SNSGO.message.value = message;
    document.SNSGO.action = "/me2day/php/index.php";
    document.SNSGO.target = "me2daypop";
    document.SNSGO.submit();   
}
/*
1. sns 는  twitter  , facebook  , me2day
2. menu   
loveletter
concert
story 
menu에 따라서 등록 글이 다릅니다. 아래 참조 해주세요.
3. url 는  도메인/index.html+url
아래 링크 항목에 적용
Posted by gt1000

블로그 이미지
gt1000

태그목록

공지사항

어제
오늘

달력

 « |  » 2025.2
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

글 보관함