Facebook api, some posts don't have an url to link to
<p>I am getting some data in json format and putting it into a custom facebook feed on my website.</p>

<p>But I noticed some urls are not working, because it doesn't get a link to the post, while others do have a link.</p>

<p>What is the reason for that?</p>

<p>Example (I edited the real data):</p>

<pre><code>{
  "full_picture": "facebook.com/image.jpg",
  "story": "Lorem ipsum added 5 new photos.",
  "link": "facebook.com/loremipsum",
  "updated_time": "2016-04-21T08:11:56+0000",
  "id": "267007566742236_9112352353963611923"
},

{
  "message": "lorem ipsum",
  "updated_time": "2016-05-26T18:58:50+0000",
  "id": "267007566742236_90323523789831074"
},
</code></pre>

<p>Like you can see, one has a link, but the other doesn't. If I go to the facebook page and click on the date of the post, it opens in a new tab, so there should be an accesible url.</p>

<p>I get everything with file_get_contents:</p>

<pre><code>$json_object = file_get_contents("https://graph.facebook.com/v2.6/267032532566742236/feed?fields=full_picture%2Cmessage%2Cstory%2Clink%2Cupdated_time&amp;access_token=23532523523523%dsgsdg322352352235");
</code></pre>