Đã Đóng

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?

Kỹ năng: Quảng cáo trên Facebook, HTML, PHP

Xem thêm: 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

Về Bên Thuê:
( 0 nhận xét ) Montevideo, Uruguay

Mã Dự Án: #1642622

2 freelancer đang chào giá trung bình $30 cho công việc này

fm118

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

$30 USD trong 1 ngày
(1 Đánh Giá)
0.0
XlPxoT5kTE

Please check the PMB

$30 USD trong 1 ngày
(0 Đánh Giá)
0.0