data as $post ) { $linkIDNum = substr($post->id, 13); $fblink = 'https://www.facebook.com/PerfectHarmonyChorus/posts/' . $linkIDNum .'/'; $posts .= '

'; $posts .= '' . $name . '
'; $posts .= '' . $post->created_time . '

'; $posts .= '

'; // $posts .= '

' . $post->story . '

'; $post->message = str_replace("\n", "
", $post->message); $post->message = preg_replace('/http[s]?:\/\/[^\s,\)]*/i', '$0', $post->message); // $post->message = preg_replace('/((?<=\s|^)www\.[^\s,\)]*)|(goo\.[^\s,\)]*)/i','$0', $post->message); $post->message = preg_replace('/\w+@([\w-\.]*)(\.\w{2,6})/i', '$0', $post->message); $post->message = preg_replace('/(?<=\s|^|\>)#(\w*)\b/', '$0', $post->message); if (is_array($post->to->data) || is_object($post->to->data)) { foreach ($post->to->data as $hyperlink ) { $post->message = str_replace($hyperlink->name, '' . $hyperlink->name . "", $post->message); } } $posts .= '

' . $post->message . '

'; // $posts .= '

'; $posts .= '

' . $post->description . '

'; $posts .= '

'; // $posts .= '

View in Facebook

'; $posts .= '
Back to top
'; $posts .= '
'; $posts .= '
'; $posts .= '


'; } echo $posts; ?>