Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook graph v2.11: Only owners of the URL have the ability to specify the picture, name, thumbnail or description params

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!

like image 398
binkute Avatar asked Nov 17 '17 10:11

binkute


1 Answers

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.

like image 192
Bangdel Avatar answered Nov 02 '22 23:11

Bangdel