Home > Backend Development > PHP Tutorial > facebook api请问

facebook api请问

WBOY
Release: 2016-06-13 10:08:37
Original
895 people have browsed it

facebook api请教
目的:update   status
方法:
HTTP发送
$request[]   =   "POST   http://api.facebook.com/restserver.php?method=Status.set&api_key=762ec91e7987aaeaee7e2cdfdfcb3c30&call_id=$call_id&sig=$s&v=1.0&status=44   HTTP/1.1 ";
$request[]   =   "Host:   www.facebook.com ";
$request[]   =   "Content-Type:   application/x-www-form-urlencoded ";
$request[]   =   "User-Agent:   Mozila ";
$request[]   =   "Authorization:   Basic   {$authCredentials} ";
$request[]   =   "Connection:   Close ";。。。。。

为翻墙,直接将内容放在POST中发送。翻墙等略,上面是我发送的形式,TWITTER用此形式成功。
问题:400,Method   Not   Implemented   Invalid   method   in   request

官网的API已经看过了,不过我想用REST的形式,如上,请问有没有经验的前辈告诉我,HTTP发送的形式应该是怎样???

------解决方案--------------------
400,Method Not Implemented Invalid method in request 
--------------------------------
不完整的方法,看一下你的接口的方法参数是什么,对得上号吗?

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