Facebook gives a JSON stream like this:
"actions": [
{
"name": "Comment",
"link": "http://www.facebook.com/100000335233539/posts/193845507303289"
},
{
"name": "Like",
"link": "http://www.facebook.com/100000335233539/posts/193845507303289"
},
{
"name": "Read entire article",
"link": "http://www.domain.tld/article/"
}
],
I want to get the first of the three objects with:
$link = ($feeditem['actions']['link']);
But I always get only the last entry. How can I get the first one?
This does the trick:
$actions[0]['link']
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