我正在使用Facebook Graph API在當前登錄用戶的朋友牆/飼料上發表帖子。 我希望它能夠在牆貼中顯示三個動作鏈接。屬性必須是字典! - Facebook圖形API
這是因爲這裏記錄下「出版」一節中的POST請求:https://graph.facebook.com/10000000006549/feed
但其捐贈: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請求到由我跟隨錯誤:
{
"error": {
"type": "OAuthException",
"message": "(#100) properties must be a dictionary"
}
爲什麼我得到這個OA例外?我應該做些什麼改變才能在牆貼上有3個動作鏈接?
請指引我....