Twitter: send message from a PHP page

작성자  
   achor ( Hit: 10296 Vote: 868 )
홈페이지      http://empire.achor.net
File #1      twitter.zip (3.5 KB)   Download : 212
분류      PHP

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,302일 전의 글로 현재의 관점과 다를 수 있습니다.

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

Share 밴드공유 Naver Blog Share Button



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

- Twitter: 노회찬 대표와 점심식사를... (2010-03-20 00:48:51)- PHP: 소셜 로그인 (2016-09-11 03:54:15)

- Twitter: 개인적인 디지털 채널 전략 (2010-11-16 00:48:22)- Twitter: PHP fsockopen을 활용한 Twitter message 전송 (2010-07-18 09:35:12)

- 웹개발: 이 글의 본질은 (2014-10-20 01:34:57)- Twitter: 홈페이지 글작성과 동시에 자동으로 Twitter에 전송되는 기능 이야기 (2010-09-14 23:26:28)

- 웹개발: 아처제국 미러사이트 (2014-12-30 01:24:09)- PHP: CKFinder를 활용한 웹앨범 제작 방법 (2011-05-24 19:10:17)

- PHP: PHP 7.0.7 업데이트 (2016-08-04 16:34:26)- 웹개발: IndieWeb Facebook 댓글 연동 (2015-02-08 23:41:52)



 34   2   1
번호
분류
제목
작성일
조회수
34인터넷   도메인 등록 비교2011/02/259811
33플래시   loadMovie를 통한 swf resize2011/02/057188
32Display   화면 분할 프로그램2012/12/065055
31웹서버   WebKnight 설정2010/03/2125923
30웹서버   딥웹 .onion 설정 [1]2015/09/059901
29웹서버   G Suite Legacy free 300유저 무료 전환2023/04/026624
28웹표준   span inline-block2010/03/088196
27웹표준   body scrollTop2010/03/097953
26웹표준   jQuery 기본2013/11/124308
25웹표준   jQuery 셀렉터2013/11/164205
24웹표준   jQuery 조작2013/11/166418
23Graphic   Open Sumo Paint (Web Photoshop) [1]2010/03/039928
22Windows   Windows Server 2008에서의 디스크정리2009/03/198597
21Windows   Windows7 부팅USB 제작2009/07/208235
20Windows   Windows XP에서 네트워크 수준 인증(NLA) 활성화2009/09/2311136
19Windows   Windows 2008 R2 IIS계정별 ftp 설정2010/07/1113753
18PHP   Using FastCGI to Host PHP Applications on IIS 7.02009/03/0227461
17PHP   한글 Charset 파악 코드2009/09/1710958
16PHP   Twitter: send message from a PHP page2010/03/2210296
15PHP   PHP fsockopen을 활용한 Twitter message 전송2010/07/1814909
1  2 

  당신의 추억

ID  

  그날의 추억

Date  

  Poll
Only one, 주식 or 코인?

주식
코인

| Vote | Result |
  Tags

Tag  

First Written: 12/01/2007 07:20:09
Last Modified: 08/23/2021 11:46:44
추천글closeopen