我正在使用 Facebook Graph API 在当前登录的用户朋友的墙/提要上发帖。我希望它在墙上的帖子中显示三个操作链接。
这是“发布”部分下记录的 POST 请求:http://developers.facebook.com/docs/reference/api/
我已将 CURLOPT_POSTFIELDS 设置如下
(
[access_token] => 161318CRR8l0EBFXGhd-00.131037840000000862225914|R5i30nmZr6yKICbHayaDzZ02f_Y
[message] => This is a test message.
[picture] => http://www.mydoain.com/mylogo.jpg
[link] => http://www.mydoain.com/check.php
[actions] => {name:"View Demo",link:"http://www.mydomain.com/demo",name:"View Features",link:"http://www.mydomain.com/features"}
[name] => Click to Visit
[caption] =>
[properties] => properties: [
{
name: "Demo",
text: "View Demo",
href: "http://www.mydomain.com/demo",
},
{
name: "Features",
text: "View Features",
href: "http://www.mydomain.com/features",
},
]
[description] =>
[source] =>
)
并且发出 POST 请求:https://graph.facebook.com/10000000006549/feed
但它给了我以下错误:
{
"error": {
"type": "OAuthException",
"message": "(#100) properties must be a dictionary"
}
为什么我会收到此 OAuth 异常?我应该进行哪些更改才能在墙贴中有 3 个操作链接?
请指导我......