如何获得Facebook页面的描述和标题,用户在PHP?

I am using PHP function get_meta_tags to get several info from the different websites like description. When it comes to Facebook it doesn't show any type of description. It gives description for Facebook fan page but not for any users profile page.

$tags = get_meta_tags('https://www.facebook.com/zuck?fref=ts');

echo $tags['og:description'];

I am also facing problems for getting title of Facebook pages as well as users profile page using following script:

$str = file_get_contents('https://www.facebook.com/zuck?fref=ts');

if(strlen($str)>0){

    preg_match("/\<title\>(.*)\<\/title\>/",$str,$title);

    return $title[1];

}

Correct title as well as description:

Correct Response (Image Preview)

Facebook profile page title as well as description:

Wrong Response (Image Preview)

You need an Access Token in order to get details of a User profile.

Information about Access Tokens:

To get Faxcebook page details use below method

http://graph.facebook.com/pageid or http://graph.facebook.com/pageusername

Example http://graph.facebook.com/38282497425

The output will be in json format.then use any json decxoding methods .