Twitter: send message from a PHP page

작성자  
   achor ( Hit: 10598 Vote: 877 )
홈페이지      http://empire.achor.net
File #1      twitter.zip (3.5 KB)   Download : 213

Twitter API를 활용하여 PHP curl로 Twitter 메시지를 작성, 전송할 수 있는 코드입니다.

사용법도 매우 간단하고, Twitter RSS 파싱과 함께 쓰면 독립적인 Twitter 페이지를 만들 수도 있겠지요.
저 역시도 Monday, October 29, 2007 에 만들어진 이 옛 소스를 활용하여
홈페이지에 글을 쓰면 자동으로 Twitter에 등록되도록 구성해 놓았지요.

- achor



http://woork.blogspot.com/2007/10/twitter-send-message-from-php-page.html

Are you a Twitter addicted? This post illustrates how to post a message from a custom PHP page using the Twitter API

This is a very simple tutorial (really just some line of code!) that explains how to post a message using Twitter API from a PHP page.

The tutorial includes a folder called twitter with two PHP file:

1. insertTwitterMsg.php (it's the application interface)
2. twitterAPI.php (it's the Twitter API with some changes)

Original script: what you have to modify?
The script is ready to use but first, in the file insertTwitterMsg.php you have to modify only two parameters: $twitter_username, with your Twitter username and $twitter_psw, with your Twitter password.

Don't touch the rest of the code!

In insertTwitterMsg.php you have a form that you can reuse in your web projects:

Save the folder with the tutorial in your localhost, remember to set the correct parameters and launch insertTwitterMsg.php with your browser. Now, you are ready to post messages on Twitter from your PHP page :)

본문 내용은 5,467일 전의 글로 현재의 관점과 다를 수 있습니다.

Post: https://achor.net/board/ae_scrap/25
Trackback: https://achor.net/tb/ae_scrap/25

카카오톡 공유 보내기 버튼 LINE it! 밴드공유 Naver Blog Share Button
Please log in first to leave a comment.



achor Empire
PHP fsockopen을 활용한 Twitter message 전송
Homepage나 Blog 등에 작성한 게시물을 Twitter로 자동 전송하고자 할 때 활용할 수 있는 소스입니다. 기존 Basic Auth 방식의 Twitter 인증이 2010년 6월 30일 자로 종료되면서 OAuth 방식의 인증을 사용하게끔 되었습니다만 간단하게 Twitter Timeline Update에만 쓰기엔 복잡한 면이 있지요 그리하여 fsockopen을 활용하여 Update만 구현한 소스입니다. status 140자 체크가 strl...
 2010-07-18 09:35:12    

achor Empire
홈페이지 글작성과 동시에 자동으로 Twitter에 전송되는 기능 이야기
가물가물 하지만 얼마 전 Twitter로부터 이제 공식적으로 oauth만을 지원한다는 메일을 받은 것 같긴 한데, 지난 7월, 포트 전송이 막혀서 fsocket 방식으로 바꿔 놓은 것이 이제 보니 또 막혀 있다. 징하다, Twitter. 걍 좀 두지. 귀찮게시리. -__-; 홈페이지 글작성과 동시에 자동으로 Twitter에 전송되는 기능 이야기. 그렇잖아도 바빠 죽겠는데 이것까지 손보려니 성가시다. 그렇지만 Twitter를 이해한다. 전 세...
 2010-09-14 23:26:29    



Tag

- 웹개발: 아처웹스 v7.4.0.1.250201 (2025-02-01 22:15:35)- 웹개발: 네이버 소셜앱 (2010-08-09 03:08:10)

- PHP: 서버 처리속도 개선 (2015-02-22 17:07:42)- 웹개발: 오랜만의 개발 (2012-02-26 01:55:36)

- 웹개발: 완연한 프로그래밍의 시절 (2025-02-09 04:33:25)- Twitter: Facebook은 영원할 것인가? (2011-06-06 12:43:49)

- Twitter: IndieWeb Twitter 댓글 연동 (2015-02-15 19:52:26)- 웹개발: 아처다이어리 App (2014-05-23 01:11:08)

- PHP: Smart Phone User Agent (2010-04-17 20:28:19)- PHP: PHP 5.3 Bugs (2010-03-03 02:54:26)


 35   2   1
번호
제목
작성일
조회수
35   한국어 모음 정렬 순서2025/03/0712
34   G Suite Legacy free 300유저 무료 전환2023/04/027442
33   갤럭시 S4 LTE-A 루팅 [1]2016/08/2110333
32   딥웹 .onion 설정 [1]2015/09/0510224
31   jQuery 조작2013/11/166688
30   jQuery 셀렉터2013/11/164470
29   jQuery 기본2013/11/124593
28   화면 분할 프로그램2012/12/065286
27   도메인 등록 비교2011/02/2510041
26   Open API 사이트 모음2011/02/0610229
25   loadMovie를 통한 swf resize2011/02/057428
24   무료 문자 프로그램 - eXtremeSMS2011/01/187449
23   PHP fsockopen을 활용한 Twitter message 전송2010/07/1818472
22   Windows 2008 R2 IIS계정별 ftp 설정2010/07/1113980
21   Smart Phone User Agent2010/04/1714350
20   Twitter: send message from a PHP page2010/03/2210598
19   WebKnight 설정2010/03/2126173
18   body scrollTop2010/03/098200
17   span inline-block2010/03/088471
16   Open Sumo Paint (Web Photoshop) [1]2010/03/0310198
1  2 

  당신의 추억

ID  

  그날의 추억

Date  

First Written: 12/01/2007 07:20:09
Last Modified: 03/07/2025 05:10:53
추천글closeopen