Public platform development (65) Weibo tree holes. Public platform development public platform development model enterprise public platform tree holes Weibo tree holes Renren net tree holes author: Fang times studio address: www.cnblogs.com public platform development model enterprise public platform tree holes Weibo tree holes Renren net tree holes
Author: Fang times Studio
Address: http://www.cnblogs.com/txw1958/p/weixin-65-weibo-treehole.html
In the fairy tale "The emperor has a donkey's ears", a king has a pair of Donkey's Ears. every man who gives him a haircut cannot help but tell others, so that he is beheaded. There was a barber who had hidden the secret so hard that he could not help it. The secret was revealed to a big tree hole in the mountains. As a result, as long as the leaves on the tree are put on their lips, the "King has ears" will sound. Because of this fairy tale, the word "tree cave" gradually has a metaphor of "hiding secrets.
In the movie flowers and years, Liang Chaowei stood in front of the tree cave in Angkor Wat, told his mind, and then blocked the tree cave with grass. From then on, no one knows what happened to him in his heart, who he cares about, who he cares about, who he deceives, and who he hurts.
To develop a Weibo tree hole on a public platform:
1. apply for Sina Weibo applications
Address http://open.weibo.com/development process is omitted, after the application is successful get
:::
And add the Weibo account of the application to the test account list.
2. configure the Weibo program
Download weibo php SDK, http://code.google.com/p/libweibo/, modify WB_AKEY in config. php to App Key, WB_SKEY for App Secret, WB_CALLBACK_URL for the callback page address just filled in, then the program uploads to PHP space
3. get access_token
Get callback url
( 'config.php'( 'saetv2.ex.class.php' = SaeTOAuthV2( WB_AKEY , = ->getAuthorizeURL( WB_CALLBACK_URL );
Log on with your Weibo account and use the callback url to obtain the code
https://www.doucube.com/weibo/callback.php?code=60c67a3569d1af004ed579ca93a87760
Then, use the program in the demo to get the access_token. the variable is saved in $ _ SESSION ['token'] ['Access _ token.
4. publish Weibo
Then you can use the sdk to publish Weibo.
('Weibo/config. php' ('Weibo/saetv2.ex. class. php' = SaeTClientV2 (WB_AKEY, WB_SKEY, =-> update (. "[published through tree holes ]");
5. Demo
Or directly log on to the http://weibo.com/mmbgx to view the published content
WelcomeFang times StudioTo experience the features we have developed and learn the latest developments in the industry
Author: Fang times studio address: http://www.cnblogs.com /...