Home > Backend Development > PHP Tutorial > 也来见见SAE+PHP SDK 新浪微博的Demo(PHP版)

也来见见SAE+PHP SDK 新浪微博的Demo(PHP版)

WBOY
Release: 2016-06-13 12:52:41
Original
847 people have browsed it

也来看看SAE+PHP SDK 新浪微博的Demo(PHP版)

1,下载微博的PHPSDK 

http://code.google.com/p/libweibo/downloads/list

选择的是V2版的,

2,创建一个微博的站内应用

此处将回调地址(站内应用地址)设置好,实际地址就填SAE的应用地址

3,创建一个SAE的应用,进入应用页面,点击代码管理,上传代码,选中刚下载的PHPsdk

4,编辑,点击编辑代码,打开config.php文件

修改,这个在微博的应用里都有

define( "WB_AKEY" , 'xxxxxxxxxx' );
define( "WB_SKEY" , 'xxxxxxxxxx' );
define( "WB_CALLBACK_URL" , 'http://localhost/callback.php' );

回调页这个需要改成与微博应用地址栏一样就OK了,这个是就 可以访问了


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template