Today i'm using Facebook graph v2.11 to auto post to facebook but see error
Only owners of the URL have the ability to specify the picture, name, thumbnail or description params
My code
try {
$response = $fb->post('/me/feed', $linkData, $token);
} catch (Facebook\Exceptions\FacebookResponseException $e) {
trigger_error($e->getMessage());
return false;
} catch (Facebook\Exceptions\FacebookSDKException $e) {
trigger_error($e->getMessage());
return false;
}
Please help me, thank!
Setting the picture, name, caption, thumbnail and description manually is deprecated.
However, there is a recent change in this. From the docs:
"As of November 7, 2017, link customization is available however the link must be owned by the posting page and a page access token is required. To verify ownership, check the ownership_permissions{can_customize_link_posts} field on the URL node. See our Link Ownership Guide for more information. For versions 2.10 and lower, picture, name, thumbnail, and description are deprecated. caption is deprecated for all versions."
However, this is only available to pages via Domain Verification.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With