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? - alex commented on April 19th 20 at 12:53
@alex, Google is full of answers - dannie commented on April 19th 20 at 12:56
@alex, you have ispolzavat curl - stephen_McGlynn commented on April 19th 20 at 12:59
@stephen_McGlynn, got it, thanks - alex commented on April 19th 20 at 13:02
ahaha what a question that the answer is just diamonds :) - Brendon commented on April 19th 20 at 13:05
@Brendon, what's wrong? - alex commented on April 19th 20 at 13:08
there is nothing
Pars on - Brendon 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). - Rhea_Reynolds19 commented on April 19th 20 at 13:14

Find more questions by tags FacebookPHP