私はこれに対する解決策を得るのに苦労しています。php sdk を使用して多くのユーザーにタグを付けるつもりです。SDK は「致命的なエラー: Uncaught OAuthException: (#100) Invalid keys "tags" was found in param "tags". .
私のコントローラーにはこれがあります:
$tags = array();
foreach($to as $id){
$tag = array();
$tag['tag_uid'] = $id;
$tag['x'] = rand() % 100;
$tag['y'] = rand() % 100;
$tags[] = $tag;
}
$argsTag = array(
'tags'=> $tags
);
$photo_details['message'] = $message;
$photo_details['image'] = '@' . realpath($file_path);
$photo_details['tags'] = array($argsTag);
$upload_photo = $this->fb_obj->api("/me/photos", 'post', $photo_details);
$tags 変数と同様に $tag を使用してみました。
$tags を使用すると、無効なキー "0,1,2" が param "tags" で見つかりました。
$tag を使用して、3 人ではなく 1 人のユーザーのみにタグを付けました。