


WeChat public platform development (65) Weibo tree hole_PHP tutorial
WeChat public platform development WeChat public platform development model Enterprise WeChat public platform WeChat tree hole Weibo tree hole Renren network tree hole
Author: Fang times Studio
Address: http://www.cnblogs.com/txw1958/p/weixin-65-weibo-treehole.html
In the fairy tale "The Emperor Has Donkey Ears", it is said that a king had a pair of donkey ears, and everyone who gave him a haircut couldn't help but tell others, and he was beheaded. There was a barber who worked so hard to hide this secret, and finally he couldn't hold it in any longer. He told this secret to a big tree hole on the mountain. As a result, from then on, as long as the leaves on the tree are put to the mouth and blown, it will make a sound like "the king has donkey ears". Because of this fairy tale, the word "tree hole" gradually became a metaphor for "hidden secrets".
In the movie "In the Mood for Love", Tony Leung stood in front of the tree hole at Angkor Wat, expressed his feelings, and then sealed the tree hole with grass. From then on, no one knew what stories had happened in his heart, who he had cared about, whom he had missed, whom he had deceived, and whom he had hurt.
Steps to develop Weibo Tree Hole on WeChat public platform:
1. Apply for Sina Weibo application
The address http://open.weibo.com/development process is omitted, and you will get
after successful application.<span App Key</span>:<span 4***474</span><span <span ***</span> <span App Secret</span>:<span 4a7**07aef8d7586722cb5e1cc1**</span> <span 授权回调页</span>:<span https:</span></span><span //www.doucube.com/weibo/callback.php</span>
And add the Weibo account you want to use the app to the test account list
2. Configure Weibo program
Download weibo php SDK, download address http://code.google.com/p/libweibo/, modify WB_AKEY in config.php to be the App Key, WB_SKEY to be the App Secret, and WB_CALLBACK_URL to be the callback page address you just filled in , and then the program is uploaded to the PHP space
3. Obtain access_token
Get callback url
<span include_once</span>( 'config.php'<span ); </span><span include_once</span>( 'saetv2.ex.class.php'<span ); </span><span $o</span> = <span new</span> SaeTOAuthV2( WB_AKEY ,<span WB_SKEY ); </span><span $code_url</span> = <span $o</span>->getAuthorizeURL( WB_CALLBACK_URL );
Log in with your Weibo account, use the callback url, and get the code
<span>https://www.doucube.com/weibo/callback.php?code=60c67a3569d1af004ed579ca93a87760</span>
Use the program in the demo to obtain the access_token. The variable is stored in $_SESSION['token']['access_token'].
4. Post on Weibo
Then you can directly use the sdk to publish Weibo
<span include_once</span>('weibo/config.php'<span ); </span><span include_once</span>('weibo/saetv2.ex.class.php'<span ); </span><span $c</span> = <span new</span> SaeTClientV2(WB_AKEY, WB_SKEY, <span $accesstoken</span><span ); </span><span $weiboResut</span> = <span $c</span>->update(<span $content</span>."【通过树洞发布】");
5. Demonstration
Or log in directly to http://weibo.com/mmbgx to view the published content
Welcome to follow Fangbei Studio on WeChat to experience the functions we have developed and understand the latest trends in the industry

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Thanks to netizens Qing Qiechensi, HH_KK, Satomi Ishihara and Wu Yanzu of South China for submitting clues! According to news on September 2, there are recent rumors that "iPhone 16 may not support WeChat." In response to this, a reporter from Shell Finance called Apple's official hotline. Apple's technical consultant in China responded that whether iOS systems or Apple devices can continue to use WeChat, and WeChat The issue of whether it can continue to be listed and downloaded on the Apple App Store requires communication and discussion between Apple and Tencent to determine the future situation. Software App Store and WeChat Problem Description Software App Store technical consultant pointed out that developers may need to pay fees to put software on the Apple Store. After reaching a certain number of downloads, Apple will need to pay corresponding fees for subsequent downloads. Apple is actively communicating with Tencent,

DeepSeek: A powerful AI image generation tool! DeepSeek itself is not an image generation tool, but its powerful core technology provides underlying support for many AI painting tools. Want to know how to use DeepSeek to generate images indirectly? Please continue reading! Generate images with DeepSeek-based AI tools: The following steps will guide you to use these tools: Launch the AI Painting Tool: Search and open a DeepSeek-based AI Painting Tool (for example, search "Simple AI"). Select the drawing mode: select "AI Drawing" or similar function, and select the image type according to your needs, such as "Anime Avatar", "Landscape"

1. On the old device, click "Me" → "Settings" → "Chat" → "Chat History Migration and Backup" → "Migrate". 2. Select the target platform device to be migrated, select the chat records to be migrated, and click "Start". 3. Log in with the same WeChat account on the new device and scan the QR code to start chat record migration.

Rumors of WeChat supporting iPhone 16 were debunked. Thanks to netizens Xi Chuang Jiu Shi and HH_KK for submitting clues! According to news on September 2, there are rumors today that WeChat may not support iPhone 16. Once the iPhone is upgraded to the iOS 18.2 system, it will not be able to use WeChat. According to "Daily Economic News", it was learned from people familiar with the matter that this rumor is a rumor. Apple's response: According to Shell Finance, Apple's technical consultant in China responded that the issue of whether WeChat can continue to be used on iOS systems or Apple devices, and whether WeChat can continue to be listed and downloaded in the Apple App Store, needs to be resolved between Apple and Tencent. Only through communication and discussion can we determine the future situation. Currently, Apple is actively communicating with Tencent to confirm whether Tencent will continue to

1. Open the WeChat mini program and enter the corresponding mini program page. 2. Find the member-related entrance on the mini program page. Usually the member entrance is in the bottom navigation bar or personal center. 3. Click the membership portal to enter the membership application page. 4. On the membership application page, fill in relevant information, such as mobile phone number, name, etc. After completing the information, submit the application. 5. The mini program will review the membership application. After passing the review, the user can become a member of the WeChat mini program. 6. As a member, users will enjoy more membership rights, such as points, coupons, member-exclusive activities, etc.

1. Open the WeChat app, find the transfer message that needs to be returned, and click to enter. 2. In the transfer details interface, find and click the [Return] option. 3. In the pop-up window, click the [Return] button to return the transferred money.

Gate.io, a leading cryptocurrency trading platform founded in 2013, provides Chinese users with a complete official Chinese website. The website provides a wide range of services, including spot trading, futures trading and lending, and provides special features such as Chinese interface, rich resources and community support.

1. Avoid frequently publishing advertising content, such as continuous promotion of products or discounts. 2. Reasonably control the release frequency and avoid frequent updates, at least half an hour apart. 3. Avoid copying and pasting the same copy, and ensure that the published content is original or appropriately adapted. 4. Use marketing or sensitive words with caution, such as [order], [purchase], etc. 5. Present the copy in sections, with each section no longer than 100 words, and the length controlled to be within 6 lines and within 200 words.
