Facebook Album Parse HTML PHP

I searched about the problem and i found two similar posts but there is no a solution. I'm not a php expert, so i ask your help.


$opts = array('http'=>array(


'header'=>"User-agent: Chrome/[url removed, login to view]\r\n" //.

//"Cookie: " . $_SERVER['HTTP_COOKIE']."\r\n"



$content=(file_get_contents("[url removed, login to view]", false, stream_context_create($opts)));

$doc = new DOMDocument();


$element = $doc->getElementById('pagelet_timeline_main_column');

echo ($doc->saveHTML());


You will see the last echo only prints the "pagelet_timeline_main_column" div code and not the his content. I actually know how to use facebook api, so that is no my intention i want to display the albums on my site.

Does anyone knows how to parse it correctly?

Compétences : Marketing sur Facebook, HTML, PHP

en voir plus : pagelet_timeline_main_column, api facebook php album, m.facebook com, help php, user agent, parse, parse html, parse and, html php, facebook header, album a, php album, chrome html, chrome cookie, parse array php, chrome expert, chrome method, html parse php, chrome facebook, posts facebook api, php parse array, parse array, parse php, php html display, php parse site

Concernant l'employeur :
( 0 commentaires ) Montevideo, Uruguay

Nº du projet : #1642622

2 freelance font une offre moyenne de $30 pour ce travail


I'm a PHP expert. If you want my help, I will do my best to solve the problem

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(1 Évaluation)

Please check the PMB

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)