You create the array of Facebook post elements and include this line:
'link' => $data->url,
The problem is that there are times when a link is not wanted. For example, on many posts (like Groups), including a link actually reduces post reach. If not needed, the link hurts.
Including the link should be optional.