Facebook Graph API を使用して、現在ログインしているユーザーの友人の壁/フィードに投稿しています。そして、ウォールポストに3つのアクションリンクを表示したい.
これは、「発行」セクションの下に記載されている 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 つのアクション リンクを含めるには、どのような変更を加える必要がありますか?
私を案内してください....