If this error occurs, you must use phpsdkv2, which is http://code.google.com/p/libweibo/downloads/list 
With this error, you must be using php sdk v2, php sdk is: http://code.google.com/p/libweibo/downloads/list
It is not recommended for old versions, so we will use the first two!
The first SDK is mainly used for online website testing and local testing!
Second SDK: for SAE (full name Sina App Engine (http://sae.sina.com.cn), is the first public cloud computing platform launched by Sina R & D center!
The error "error: redirect_uri_mismatch" is solved because the new version changes greatly:
1. create an application on the Weibo open platform and get the app key and app secret. edit the advanced information of the application and set the "app callback page ".
2. modify the SDK and config. in the php file, change WB_KEY to the app key of the weibo application, change WE_SKEY to the app secret of the weibo application, and change WB_CALLBACK_URL to the app callback page address in the weibo application advanced information, the two values must be consistent. Otherwise, an error: redirect_uri_mismatch will be reported during authentication.