Fermé

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.

<?php

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

'method'=>"GET",

'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();

@$doc->loadHTML(utf8_decode($content));

$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

Voir plus : api facebook php album, help php, user agent, facebook header, album a, php album, chrome html, chrome cookie, chrome expert, chrome method, chrome facebook, posts facebook api, php html display, html header code, facebook posts content, facebook api code, user albums facebook php, php html array, php expert code, cookie php, facebook php header, user photos facebook, facebook user photos, cookie found, php expert help

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

N° du projet : #1642622

2 freelance ont fait une offre moyenne de 30 $ pour ce travail

fm118

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

30 $ USD en 1 jour
(1 Commentaire)
0.0
XlPxoT5kTE

Please check the PMB

30 $ USD en 1 jour
(0 Commentaires)
0.0