Why when I try to put the page crashes facebook message about upgrading the browser?

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 problem?
April 19th 20 at 12:48
1 answer
April 19th 20 at 12:50
User-Agent must add
could you tell me how to do it? - annalise.Deck commented on April 19th 20 at 12:53
@alex, Google is full of answers - leann41 commented on April 19th 20 at 12:56
@alex, you have ispolzavat curl - lazaro_Huel commented on April 19th 20 at 12:59
@stephen_McGlynn, got it, thanks - annalise.Deck commented on April 19th 20 at 13:02
ahaha what a question that the answer is just diamonds :) - emma.Jones commented on April 19th 20 at 13:05
@Brendon, what's wrong? - annalise.Deck commented on April 19th 20 at 13:08
there is nothing
Pars on - emma.Jones commented on April 19th 20 at 13:11
@stephen_McGlynn, do not have to use CURL to send the headers. Can the third argument to send the context. Anyway, for such things there's an API. Even if something "illegal" you need to take, you can also through the API... probably (did not check on fb). - modesta_Joh commented on April 19th 20 at 13:14

Find more questions by tags PHPFacebook