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);
}
});