我想使用官方FB php lib上传带有no_story的图片。
代码如下所示:
$payload = [
'message' => 'Hello world!',
'source' =>new \CURLFile($path, 'image/jpeg','test.jpg'),
'no_story' => true
];
$post = (
new FacebookRequest(
$mySession, 'POST', '/me/photos', $payload
))->execute()->getGraphObject()->asArray();
每次我尝试上传时,都会收到FacebookServerException
消息An unknown error has occurred
消息。
一旦我从有效负载中删除'no_story' => true
,它就会开始工作。
我做错了什么?
更准确地说,服务器响应为"{"error":{"message":"An unknown error has occurred.","type":"OAuthException","code":1}}"