I shared a image as facebook post using below code:
$linkkk=https://example.com/edited/image.png.
$shareUrl='https://www.facebook.com/dialog/feed?app_id=***********&display=popup&caption=testing&link='.$linkkk;
But when I clicked on the image post I shared on facebook it shows the image in new tab. But, I want to redirect it to new(custom) url when someone clicks on post.
How it can be done?
Any help on this is appreciated. Thanks in advance.