WeChat Public platform Development (65) Micro-bo tree hole _php Tutorial

Source: Internet
Author: User
Public platform Development public platform development Model Enterprise public platform tree hole Micro bo tree cave Renren Tree Cave
Author:Square Double Studio
Address: http://www.cnblogs.com/txw1958/p/weixin-65-weibo-treehole.html

Fairy tale "The emperor has a donkey ears", said a king has a pair of donkey ears, each to his hair cut the person will be tempted to tell others, thus be beheaded. There is a barber to hide this secret very hard, and finally in the fast-choking. He told the secret to a big tree hole on the hill. As a result, the leaves of this tree will be uttered as soon as they are on the mouth, and the "King has the ears of the donkey" sound. Because of this fairy tale, the word "tree hole" gradually has a "hidden secret" metaphor.

In the movie "The Mood for Love", Tony Leung stood in front of the hole in Angkor Wat, telling his mind and then sealing the tree hole with grass. From then on, no one knew what had happened to him in his heart, who he had cared about, who he had been, who he had lied to and who he had hurt.

Steps to develop a micro-bo tree hole on a public platform:

1. Apply for Sina Weibo application

Address http://open.weibo.com/development process is omitted, after the successful application to get

< span="">< span="">< span="">:::< span="">< span="">< span="">< span="">< span="">

and add the app's Weibo account to the test account list.

2. Configure the micro-blogging program

Download Weibo php SDK, download address http://code.google.com/p/libweibo/, modify Wb_akey in config.php to app Key,wb_skey for app Secret,wb_ Callback_url is the address of the callback page just filled in, and then the program uploads to PHP space

3. Get Access_token

Get callback URL

< span="">(' config.php< span="">< span="">' ('  < span="">  < span=""> saetv2.ex.class.php ')  < span="">SaeTOAuthV2 (wb_akey,-< span="">< span=""> < span=""> >getauthorizeurl (Wb_callback_url);

Log in with your Weibo account and use the callback URL to get code

https://www.doucube.com/weibo/callback.php?code=60c67a3569d1af004ed579ca93a87760

Then use the program in the demo to get Access_token, which is stored in $_session[' token ' [' Access_token '].

4. Publish Weibo

Then you can publish the microblog directly using the SDK.

< span="">< span="">< span="">(' weibo/config.php ' (' weibo/saetv2.ex.class.php  < span="">  ') < span="">< span="">< span="">< span="">< span="">< span="">- >update (< span="">. " "Published through the Tree Hole");

5. Demo

or log in directly to HTTP://WEIBO.COM/MMBGX to see what's published.

Welcome to the Double studio, experience the features we have developed and learn about the latest developments in the industry.

http://www.bkjia.com/PHPjc/440103.html www.bkjia.com true http://www.bkjia.com/PHPjc/440103.html techarticle Public platform Development public platform development Model Enterprise public platform tree hole Micro bo Tree Cave Renren Tree cave author: Fang Times studio Address: http://www.cnblogs.com/

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.