When I'm sharing on Facebook page, getting following error :
(#100) Only owners of the URL have the ability to specify the picture, name, thumbnail or description params.
It was working fine 5-10 days ago. When searched I found following on Facebook developer site link :
"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."
Any help would be appreciated!
ShareLinkContent content = new ShareLinkContent.Builder()
.setContentUrl(Uri.parse(shareUrl))
.build();
new ShareApi(content).share(new FacebookCallback<Sharer.Result>() {
@Override
public void onSuccess(Sharer.Result result) {
shareCallback.onSuccess(result);
}
@Override
public void onCancel() {
shareCallback.onCancel();
}
@Override
public void onError(FacebookException error) {
shareCallback.onError(error);
}
});
Make sure the first pull-down menu says Share On A Page You Manage. If it doesn't, click on the arrow and select this option. Next, make sure the second pull-down menu directly below displays your Page (especially if you manage more than one). If it doesn't, click the pull- down arrow and select the correct page.
Select a sharing method. Tap Write a post if you want to share the page as a post on your own Timeline. Tap Send as Message if you want to send the page as a chat message to another user. Tap Invite Friends to Like This Page if you want to select and invite your friends to like the page.
From what I know this is a very recent change to the facebook api. It requires the page editors to add a metatag with the page id.
https://developers.facebook.com/docs/sharing/opengraph/object-properties?hc_location=ufi
On that page please look for fb:pages
Here's the description of fb:pages
One or more Facebook Page IDs that are associated with a URL in order to enable link editing and instant article publishing.
In short you need to add <meta property="fb:pages" content="PAGE_ID">
in order to edit the share content.
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