I’m getting an event using Facebook Graph API and PHP using the following code:
$id = '160307307413666';
$FBpage = file_get_contents('https://graph.facebook.com/'. $id);
$FBdata = json_decode($FBpage);
echo $FBdata->description;
The problem is when using json_decode($FBpage); i loose all the /n (new line) that i would like to render.
Any help would be appreciated
i assume you’re looking for