I'm using php sdk (default graph version 2.9)
"facebook/graph-sdk": "5.5.0", "facebook/php-ads-sdk": "2.8.2"
I'm trying to create an ad creative without creating the image first and using it's hash.
$creative = $this->_fb_account->createAdCreative($all_fields, [
'name' => 'my first ad creative',
'title' => 'my title',
'body' => 'my body',
'image_file' => '/path/to/my_file.png',
'object_type' => AdCreativeObjectTypeValues::DOMAIN,
'object_url' => 'http://example.com',
]);
I get the following error:
#errorUserTitle: "Invalid image file" #errorUserMessage: "The image_file field does not specify a POST file name."
I can't find anything about this in the docs. Here is a related stackoverflow question which also did not fix the problem.