A
A
almenovr2020-04-19 10:00:00
PHP
almenovr, 2020-04-19 10:00:00

Why does a browser update message pop up when I try to parse a facebook page?

header('Content-type: text/html; charset-utf-8');
$url = 'https://www.facebook.com/groups/1139901032734300';
$file = file_get_contents($url);
print_r($file);


5e9bf6dd26e35942553398.png

How to solve this issue?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2020-04-19
@KingstonKMS

User-Agent must be added

X
xmoonlight, 2020-04-19
@xmoonlight

1. Learn to watch your browser's traffic exchange.
2. Learn to use multi_curl() (documentation available on php.net) and repeat browser requests 1-to-1.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question