kevinzg / facebook-scraper

Scrape Facebook public pages without an API key
MIT License
2.4k stars 628 forks source link

No comment reactions/reactors #679

Closed Ianneee closed 2 years ago

Ianneee commented 2 years ago

I'm using "comments" : "generator" to extracting comments from a single post. Some comments have replies and it say have generators also, but i don't understand how to extract that replies.

This is a comment extracted from the post id: 4909142392441238

{
    "comment_id": "4920605991294878",
    "comment_url": XXXXX,
    "commenter_id": "1408839046",
    "commenter_url": XXXX,
    "commenter_name": XXXX,
    "commenter_meta": null,
    "comment_text": "Si ma non mi sembra dica niente a favore delle vostre tesi anti vaccino",
    "comment_time": "2022-01-17 15:46:59",
    "comment_image": null,
    "comment_reactors": [],
    "comment_reactions": null,
    "comment_reaction_count": null,
    "replies": "<generator object PostExtractor.extract_comment_replies at 0x7f84ca260660>"
}

There's some XXXX to intentionally hide.

This is the part of code i'm using to doing this. I've notice also i don't have any reaction for the comments.

        comments = []

        for post in facebook_scraper.get_posts(
            post_urls=posts_id,
            credentials=self.credentials,
            options={
                "comments" : "generator",
                "allow_extra_requests": True,
                "comment_reactors": True,
                "reactions": True,
            },
        ):

            for comment in post["comments_full"]:
                comments.append(comment)
                time.sleep(sleep_time)
Ianneee commented 2 years ago

Sorry the problem was so obvious, i've just solved adding this under the for loop for the comment.

for reply in comment["replies"]:
    comments.append(reply)

I leave it here if anyone need for the future.

neon-ninja commented 2 years ago

Reactors/reactions for this comment extract fine for me:

{'comment_id': '4920605991294878',
 'comment_image': 'https://scontent.xx.fbcdn.net/m1/v/t6/An_UvxJXg9tdnLU3Y5qjPi0200MLilhzPXUgxzGjQzUMaNcmjdZA6anyrngvkdub33NZzZhd51fpCAEzNHFhko5aKRFP5fS1w_lKwYrzcNLupv27.png?ccb=10-5&oh=00_AT8DBA5zly4oN3xDcKvM3ju2brOfBqjPbc4q5b5l1gemHQ&oe=62149AF9&_nc_sid=55e238',
 'comment_reaction_count': 212,
 'comment_reactions': {'haha': 2, 'like': 196, 'love': 14},
 'comment_reactors': [{'link': 'https://facebook.com/profile.php?id=100009670724353&fref=pb',
                       'name': 'Mosè Sorbo',
                       'type': 'like'}],
 'comment_text': 'Si ma non mi sembra dica niente a favore delle vostre tesi '
                 'anti vaccino',
 'comment_time': datetime.datetime(2022, 1, 18, 10, 35, 51),
 'comment_url': XXX,
 'commenter_id': '1408839046',
 'commenter_meta': None,
 'commenter_name': XXX,
 'commenter_url': XXX,
 'replies': <generator object PostExtractor.extract_comment_replies at 0x7f1094136c10>}

Do you get any errors or warning when trying to extract comment reactors / reactions for this comment?

Ianneee commented 2 years ago

I receive this errors only when starting to extract the information on the single post using "post_urls" in get_posts:

[4909142392441238] Extract method extract_video didn't return anything
[4909142392441238] Extract method extract_video_thumbnail didn't return anything
[4909142392441238] Extract method extract_video_meta didn't return anything
[4909142392441238] Extract method extract_factcheck didn't return anything
4909142392441238 is a share of 438347264539549
data-ft attribute not found
XXXX.local/lib/python3.8/site-packages/dateparser/date_parser.py:35: PytzUsageWarning: The localize method is no longer necessary, as this time zone supports the fold attribute (PEP 495). For more details on migrating to a PEP 495-compliant implementation, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html
  date_obj = stz.localize(date_obj)
[4909142392441238] Extract method extract_listing didn't return anything
[4909142392441238] Exception while extracting reactions: KeyError('reactors')

I'm trying with this options now:

 options={
                "comments" : True,
                "comments" : "generator",
                "allow_extra_requests": True,
                "comment_reactors": True,
                "reactions": True,
            },
neon-ninja commented 2 years ago

Actually, I've just noticed an issue there with comment reaction counts, those are the reaction counts for the post, not the comment. https://github.com/kevinzg/facebook-scraper/commit/8397f43afe5423b98b7b4eea1ef7e1e0c2d484f3 should fix this, so it should return this:

{'comment_id': '4920605991294878',
 'comment_image': 'https://scontent.xx.fbcdn.net/m1/v/t6/An_UvxJXg9tdnLU3Y5qjPi0200MLilhzPXUgxzGjQzUMaNcmjdZA6anyrngvkdub33NZzZhd51fpCAEzNHFhko5aKRFP5fS1w_lKwYrzcNLupv27.png?ccb=10-5&oh=00_AT8DBA5zly4oN3xDcKvM3ju2brOfBqjPbc4q5b5l1gemHQ&oe=62149AF9&_nc_sid=55e238',
 'comment_reaction_count': 1,
 'comment_reactions': {'like': 1},
 'comment_reactors': [{'link': 'https://facebook.com/profile.php?id=100009670724353&fref=pb',
                       'name': 'Mosè Sorbo',
                       'type': 'like'}],
 'comment_text': 'Si ma non mi sembra dica niente a favore delle vostre tesi '
                 'anti vaccino',
 'comment_time': datetime.datetime(2022, 1, 18, 12, 7, 26),
 'comment_url': 'https://facebook.com/4920605991294878',
 'commenter_id': '1408839046',
 'commenter_meta': None,
 'commenter_name': 'Marco Invernizzi',
 'commenter_url': 'https://facebook.com/marco.invernizzi2?fref=nf&rc=p&refid=52&__tn__=R',
 'replies': <generator object PostExtractor.extract_comment_replies at 0x7f60c99caf20>}

So you don't see Fetching https://m.facebook.com/ufi/reaction/profile/browser/?ft_ent_identifier=4920605991294878 in your log? Maybe the a[href^="/ufi/reaction/profile/browser/?ft_ent_identifier="] i selector isn't matching for you. Can you try:

with open("4909142392441238.html", "w") as f:
    f.write(_scraper.get("4909142392441238").text)

and upload the resulting HTML

Ianneee commented 2 years ago

Sorry but what i post was partial, this is all the log when i extract the comments from the post.

Requesting page from: https://m.facebook.com/4909142392441238
Got exact timestamp from publish_time: 2022-01-17 20:13:32
[4909142392441238] Extract method extract_video didn't return anything
[4909142392441238] Extract method extract_video_thumbnail didn't return anything
[4909142392441238] Extract method extract_video_meta didn't return anything
[4909142392441238] Extract method extract_factcheck didn't return anything
4909142392441238 is a share of 438347264539549
data-ft attribute not found
/home/ian/.local/lib/python3.8/site-packages/dateparser/date_parser.py:35: PytzUsageWarning: The localize method is no longer necessary, as this time zone supports the fold attribute (PEP 495). For more details on migrating to a PEP 495-compliant implementation, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html
  date_obj = stz.localize(date_obj)
[4909142392441238] Extract method extract_listing didn't return anything
[4909142392441238] Exception while extracting reactions: KeyError('reactors')
Fetching /comment/replies/?ctoken=4909142392441238_4909339462421531&count=1&curr&pc=1&isinline&initcomp&ft_ent_identifier=4909142392441238&eav=AfZj3PAPPvV8yppGVGr20u9sUefH7T3amykj0Zk1BDbRl9pXhc5FT2I9dl2JxdSWwm8&av=100077971196215&gfid=AQCeePNQnXhljM3gdYc&refid=52
Fetching /comment/replies/?ctoken=4909142392441238_4920605991294878&count=3&curr&pc=1&isinline&initcomp&ft_ent_identifier=4909142392441238&eav=AfbsnLtD9nLn57xU6CqAa6f-CgvwkoXrcabyn7zMjK2YczFU88Vk65ZS8YwMDc50W-Y&av=100077971196215&gfid=AQAgBeyuNh3y0lOuzgw&refid=52
Fetching up to 1000000000.0 comments

This is the html file you asked: https://mega.nz/file/FkN10a6J#o2FOPQxDrgLibuFVmNeIf0lHsi3NlAcv-68wOf-hReo but i see there isn't any reaction in it.

I've checked what's the source in comment.find for reactor and seems fine, but returns an empty result:

<html><div class="_2a_i" data-store="{&quot;token&quot;:&quot;4909142392441238_4909339462421531&quot;}" id="4909339462421531" data-uniqueid="4909339462421531" data-gt="{&quot;tn&quot;:&quot;R&quot;}" data-sigil="comment"><div class="_2a_j" data-sigil="feed_story_ring100048720643404"><div class="_2b00"><a data-click="{&quot;event&quot;:&quot;click_post_avatar_image&quot;,&quot;target_id&quot;:4909142392441238}" href="/luigieanna.dirubbo.9?fref=nf&amp;rc=p&amp;refid=52"><img src="https://scontent-fco2-1.xx.fbcdn.net/v/t1.6435-1/119056907_180388453595175_4248216453747141607_n.jpg?stp=cp0_dst-jpg_e15_q65_s40x40&amp;_nc_cat=101&amp;ccb=1-5&amp;_nc_sid=dbb9e7&amp;efg=eyJpIjoidCJ9&amp;_nc_ohc=nWHK9MZWr-YAX_dut5D&amp;_nc_ht=scontent-fco2-1.xx&amp;oh=00_AT_l1Ue6YmtQ2rU9FWJhB_oPBf2t09_a-rGEoJO38l4eLw&amp;oe=6236FAE6" width="36" height="36" class="_1-yc profpic img" alt="LuigieAnna Di Rubbo, profile picture"/></a><div class="_2b03"/></div></div><div class="_2b04"><div class="_14v5 _3yuv"><div class="_2b06"><div class="_2b05"><a href="/luigieanna.dirubbo.9?fref=nf&amp;rc=p&amp;refid=52">LuigieAnna Di Rubbo</a></div><div data-commentid="4909142392441238_4909339462421531" data-sigil="comment-body">Grande prof Zangrillo  lei avrebbe dovuto guidare questa nave che purtroppo  da due anni fa acqua da tutte le parti</div></div><a class="_14v8 _4edm" href="/ufi/reaction/profile/browser/?ft_ent_identifier=4909142392441238_4909339462421531&amp;av=100077971196215&amp;refid=52" id="u_0_y_dx"><span class="_14v9"><span class="_4edl"><img src="https://scontent.xx.fbcdn.net/m1/v/t6/An_UvxJXg9tdnLU3Y5qjPi0200MLilhzPXUgxzGjQzUMaNcmjdZA6anyrngvkdub33NZzZhd51fpCAEzNHFhko5aKRFP5fS1w_lKwYrzcNLupv27.png?ccb=10-5&amp;oh=00_AT8DBA5zly4oN3xDcKvM3ju2brOfBqjPbc4q5b5l1gemHQ&amp;oe=62149AF9&amp;_nc_sid=55e238" width="16" height="16" class="img"/></span></span><span class="_14va">2</span></a></div><div class="_2b08 _4ghu" data-sigil="ufi-inline-comment-actions"><abbr class="_4ghv _2b0a">1 mo</abbr><a class="touchable _2b0a" data-store="{&quot;feedbackTarget&quot;:&quot;4909142392441238_4909339462421531&quot;,&quot;isComment&quot;:true,&quot;kaiOSReactions&quot;:false,&quot;reaction&quot;:0}" href="/a/comment.php?parent_redirect_comment_token=4909142392441238_4909339462421531&amp;reaction_comment_id=4909339462421531&amp;viewer_reaction=0&amp;snowflake&amp;ft_ent_identifier=4909142392441238&amp;gfid=AQCMzLvqJyykiaMnGmQ&amp;fs=8&amp;refid=52" id="u_0_z_7q" data-sigil="touchable like-reaction-flyout">Like</a><a href="/comment/replies/?ctoken=4909142392441238_4909339462421531&amp;actor_id=100077971196215&amp;ft_ent_identifier=4909142392441238&amp;gfid=AQDXkSFN5ddxKNf6xU4&amp;refid=52#comment_form_380062975349225_4909142392441238_reply_4909142392441238_4909339462421531" class="_2b0a" id="u_0_10_Qw" data-sigil="touchable">Reply</a><a class="_1l26 _2b0a" href="#" data-store="{&quot;reportIsModalDialog&quot;:true,&quot;hideCommentURI&quot;:&quot;\/ufi\/hide\/?hide_comment_id=4909339462421531&amp;hide_comment_fbid=4909339462421531&amp;nfx_story_location=permalink&amp;spamDisplayMode=none&amp;ft_ent_identifier=4909142392441238&amp;gfid=AQARAVN5ekAKX0C_0Qs&quot;,&quot;reportCommentURI&quot;:&quot;\/trust\/afro\/dialog?context=\u00257B\u002522session_id\u002522\u00253A\u0025229c21e049-e777-45c9-af7d-217119bfa8c4\u002522\u00252C\u002522support_type\u002522\u00253A\u002522chevron\u002522\u00252C\u002522type\u002522\u00253A2\u00252C\u002522story_location\u002522\u00253A\u002522permalink\u002522\u00252C\u002522entry_point\u002522\u00253A\u002522comment\u002522\u00252C\u002522reportable_ent_token\u002522\u00253A\u002522RW50R2VuZXJpY0NvbW1lbnQ6NDkwOTE0MjM5MjQ0MTIzOF80OTA5MzM5NDYyNDIxNTMx\u002522\u00257D&amp;gfid=AQDAo_17Z_ltcOsKVk4&quot;,&quot;commentID&quot;:4909339462421531}" data-sigil="comment-flyout-context comment-metadata">More</a></div><div class="_2a_m"><div id="comment_replies_more_1:4909142392441238_4909339462421531:1"><div class="_2b1h async_elem" data-reply-to="4909142392441238_4909339462421531" data-sigil="replies-see-more"><a href="/comment/replies/?ctoken=4909142392441238_4909339462421531&amp;count=1&amp;curr&amp;pc=1&amp;isinline&amp;initcomp&amp;ft_ent_identifier=4909142392441238&amp;eav=AfaKwX0G2lZdk4-DBld2ZTSWm-DnDVcSAGxB_Lhk9bL4IWS-vUshcUwMwWOm9gpoOIM&amp;av=100077971196215&amp;gfid=AQCNbe-ZV-Tac6Et8ik&amp;refid=52"><div class="_2b1j"/><span class="_4ayk">1 reply</span><span class="img _55ym _55yn _55yo _2b0b" role="progressbar" aria-valuetext="Loading..." aria-valuemin="0" aria-valuemax="100" aria-busy="true"/></a></div></div><div class="_2b1i async_elem" id="comment_replies_inline_composer_placeholder_4909142392441238_4909339462421531"><span class="img _55ym _55yn _55yo _2b0b" role="progressbar" aria-valuetext="Loading..." aria-valuemin="0" aria-valuemax="100" aria-busy="true"/></div></div></div></div></html>
Ianneee commented 2 years ago

I'm trying also with a less specific css selector: a[href*="/ufi/reaction/profile/browser/"] but still can't have reactions; the search for the regex with in get_jsmod returns None

{
    "comment_id": "4920605991294878",
    "comment_url": "https://facebook.com/4920605991294878",
    "commenter_id": "1408839046",
    "commenter_url": "https://facebook.com/marco.invernizzi2?fref=nf&rc=p&refid=52",
    "commenter_name": "Marco Invernizzi",
    "commenter_meta": null,
    "comment_text": "Si ma non mi sembra dica niente a favore delle vostre tesi anti vaccino",
    "comment_time": "2022-01-18 19:20:03",
    "comment_image": null,
    "comment_reactors": [],
    "comment_reactions": null,
    "comment_reaction_count": null,
    "replies": "<generator object PostExtractor.extract_comment_replies at 0x7f5f645ca580>"
}

But the log is a bit different now

Requesting page from: https://m.facebook.com/4909142392441238
Got exact timestamp from publish_time: 2022-01-17 20:13:32
[4909142392441238] Extract method extract_video didn't return anything
[4909142392441238] Extract method extract_video_thumbnail didn't return anything
[4909142392441238] Extract method extract_video_meta didn't return anything
[4909142392441238] Extract method extract_factcheck didn't return anything
4909142392441238 is a share of 438347264539549
data-ft attribute not found
/home/ian/.local/lib/python3.8/site-packages/dateparser/date_parser.py:35: PytzUsageWarning: The localize method is no longer necessary, as this time zone supports the fold attribute (PEP 495). For more details on migrating to a PEP 495-compliant implementation, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html
  date_obj = stz.localize(date_obj)
[4909142392441238] Extract method extract_listing didn't return anything
Fetching https://m.facebook.com/ufi/reaction/profile/browser/?ft_ent_identifier=4909142392441238
[4909142392441238] Exception while extracting reactions: KeyError('reactors')
Fetching https://m.facebook.com/ufi/reaction/profile/browser/?ft_ent_identifier=4909339462421531
Fetching /comment/replies/?ctoken=4909142392441238_4909339462421531&count=1&curr&pc=1&isinline&initcomp&ft_ent_identifier=4909142392441238&eav=AfYZCYcy9yJ2pLHXullneD0uaenITVu3patoNu3RloYNu-gs3FWn-NhgxlnVVLjj7bw&av=100077971196215&gfid=AQBKJLuF_R4Ecq5lL10&refid=52
Fetching https://m.facebook.com/ufi/reaction/profile/browser/?ft_ent_identifier=4909506335738177
Fetching https://m.facebook.com/ufi/reaction/profile/browser/?ft_ent_identifier=4912165982138879
Fetching https://m.facebook.com/ufi/reaction/profile/browser/?ft_ent_identifier=4917069648315179
Fetching https://m.facebook.com/ufi/reaction/profile/browser/?ft_ent_identifier=4920605991294878
Fetching /comment/replies/?ctoken=4909142392441238_4920605991294878&count=3&curr&pc=1&isinline&initcomp&ft_ent_identifier=4909142392441238&eav=AfbnKgiQFBJKM62CCsaMZBe9c8w9waIrTTKdvXMKjyjs490_tIuQznaF1eaqWBi3wEY&av=100077971196215&gfid=AQCelgUqSV4W_KVxCVY&refid=52
Fetching https://m.facebook.com/ufi/reaction/profile/browser/?ft_ent_identifier=4981691851852958
Fetching https://m.facebook.com/ufi/reaction/profile/browser/?ft_ent_identifier=4981729058515904
Fetching https://m.facebook.com/ufi/reaction/profile/browser/?ft_ent_identifier=4983581124997364
Fetching https://m.facebook.com/ufi/reaction/profile/browser/?ft_ent_identifier=5024564660899010
Fetching up to 1000000000.0 comments
neon-ninja commented 2 years ago

I see, judging by that HTML you uploaded, you have img elements instead of i elements. https://github.com/kevinzg/facebook-scraper/commit/b1ae87e67c470514233dae0c5ea001d20893f40c should fix this for you. As for why you're not able to extract anything from https://m.facebook.com/ufi/reaction/profile/browser/?ft_ent_identifier=4920605991294878 - please try:

with open("4920605991294878.html", "w") as f:
    f.write(_scraper.get("https://m.facebook.com/ufi/reaction/profile/browser/?ft_ent_identifier=4920605991294878").text)

and upload the resulting HTML.

Ianneee commented 2 years ago

I'm trying but is not working, it returns content not found. This is the source it receive from 'https://m.facebook.com/ufi/reaction/profile/browser/?ft_ent_identifier=4920605991294878'

<!DOCTYPE html><html lang="en"><head><title>Content Not Found</title><meta name="viewport" content="user-scalable=no,initial-scale=1,maximum-scale=1" /><link href="https://static.xx.fbcdn.net/rsrc.php/yD/r/d4ZIVX-5C-b.ico" rel="shortcut icon" /><meta name="referrer" content="default" id="meta_referrer" /><link type="text/css" rel="stylesheet" href="https://static.xx.fbcdn.net/rsrc.php/v3/y_/l/0,cross/x-ZbfBt2AC1.css?_nc_x=Ij3Wp8lg5Kz" data-bootloader-hash="YZqrmA2" /><link type="text/css" rel="stylesheet" href="https://static.xx.fbcdn.net/rsrc.php/v3/ya/l/0,cross/v110lv8SgeO.css?_nc_x=Ij3Wp8lg5Kz" data-bootloader-hash="zRLUamR" /><link type="text/css" rel="stylesheet" href="https://static.xx.fbcdn.net/rsrc.php/v3/yk/l/0,cross/ggSbUqBk3Vq.css?_nc_x=Ij3Wp8lg5Kz" data-bootloader-hash="suPnEpq" /><link type="text/css" rel="stylesheet" href="https://static.xx.fbcdn.net/rsrc.php/v3/yL/l/0,cross/BrwZmRHPfrW.css?_nc_x=Ij3Wp8lg5Kz" data-bootloader-hash="q9UvON0" /><script id="u_0_9_zR" nonce="aDDjjAW0">function envFlush(a){function b(b){for(var c in a)b[c]=a[c]}window.requireLazy?window.requireLazy(["Env"],b):(window.Env=window.Env||{},b(window.Env))}envFlush({"timeslice_heartbeat_config":{"pollIntervalMs":33,"idleGapThresholdMs":60,"ignoredTimesliceNames":{"requestAnimationFrame":true,"Event listenHandler mousemove":true,"Event listenHandler mouseover":true,"Event listenHandler mouseout":true,"Event listenHandler scroll":true},"isHeartbeatEnabled":true,"isArtilleryOn":false},"shouldLogCounters":true,"timeslice_categories":{"react_render":true,"reflow":true},"sample_continuation_stacktraces":true,"dom_mutation_flag":true});</script><script nonce="aDDjjAW0">document.domain = 'facebook.com';/^#~?!(?:\/?[\w\.-])+\/?(?:\?|$)/.test(location.hash)&&location.replace(location.hash.substr(location.hash.indexOf("!")+1));</script><script nonce="aDDjjAW0">__DEV__=0;</script><script id="u_0_a_K1" src="https://static.xx.fbcdn.net/rsrc.php/v3/yq/r/c6l2TWh5Z-l.js?_nc_x=Ij3Wp8lg5Kz" data-bootloader-hash="L8NPcws" nonce="aDDjjAW0"></script><script id="u_0_7_ZR" nonce="aDDjjAW0">CavalryLogger=window.CavalryLogger||function(a){this.lid=a,this.transition=!1,this.metric_collected=!1,this.is_detailed_profiler=!1,this.instrumentation_started=!1,this.pagelet_metrics={},this.events={},this.ongoing_watch={},this.values={t_cstart:window._cstart},this.piggy_values={},this.bootloader_metrics={},this.resource_to_pagelet_mapping={},this.initializeInstrumentation&&this.initializeInstrumentation()},CavalryLogger.prototype.setIsDetailedProfiler=function(a){this.is_detailed_profiler=a;return this},CavalryLogger.prototype.setTTIEvent=function(a){this.tti_event=a;return this},CavalryLogger.prototype.setValue=function(a,b,c,d){d=d?this.piggy_values:this.values;(typeof d[a]==="undefined"||c)&&(d[a]=b);return this},CavalryLogger.prototype.getLastTtiValue=function(){return this.lastTtiValue},CavalryLogger.prototype.setTimeStamp=CavalryLogger.prototype.setTimeStamp||function(a,b,c,d){this.mark(a);var e=this.values.t_cstart||this.values.t_start;e=d?e+d:CavalryLogger.now();this.setValue(a,e,b,c);this.tti_event&&a==this.tti_event&&(this.lastTtiValue=e,this.setTimeStamp("t_tti",b));return this},CavalryLogger.prototype.mark=typeof console==="object"&&console.timeStamp?function(a){console.timeStamp(a)}:function(){},CavalryLogger.prototype.addPiggyback=function(a,b){this.piggy_values[a]=b;return this},CavalryLogger.instances={},CavalryLogger.id=0,CavalryLogger.getInstance=function(a){typeof a==="undefined"&&(a=CavalryLogger.id);CavalryLogger.instances[a]||(CavalryLogger.instances[a]=new CavalryLogger(a));return CavalryLogger.instances[a]},CavalryLogger.setPageID=function(a){if(CavalryLogger.id===0){var b=CavalryLogger.getInstance();CavalryLogger.instances[a]=b;CavalryLogger.instances[a].lid=a;delete CavalryLogger.instances[0]}CavalryLogger.id=a},CavalryLogger.now=function(){return window.performance&&performance.timing&&performance.timing.navigationStart&&performance.now?performance.now()+performance.timing.navigationStart:new Date().getTime()},CavalryLogger.prototype.measureResources=function(){},CavalryLogger.prototype.profileEarlyResources=function(){},CavalryLogger.getBootloaderMetricsFromAllLoggers=function(){},CavalryLogger.start_js=function(){},CavalryLogger.start_js_script=function(){},CavalryLogger.done_js=function(){};CavalryLogger.getInstance().setTTIEvent("t_domcontent");CavalryLogger.prototype.measureResources=function(a,b){if(!this.log_resources)return;var c="bootload/"+a.name;if(this.bootloader_metrics[c]!==void 0||this.ongoing_watch[c]!==void 0)return;var d=CavalryLogger.now();this.ongoing_watch[c]=d;"start_"+c in this.bootloader_metrics||(this.bootloader_metrics["start_"+c]=d);b&&!("tag_"+c in this.bootloader_metrics)&&(this.bootloader_metrics["tag_"+c]=b);if(a.type==="js"){c="js_exec/"+a.name;this.ongoing_watch[c]=d}},CavalryLogger.prototype.stopWatch=function(a){if(this.ongoing_watch[a]){var b=CavalryLogger.now(),c=b-this.ongoing_watch[a];this.bootloader_metrics[a]=c;var d=this.piggy_values;a.indexOf("bootload")===0&&(d.t_resource_download||(d.t_resource_download=0),d.resources_downloaded||(d.resources_downloaded=0),d.t_resource_download+=c,d.resources_downloaded+=1,d["tag_"+a]=="_EF_"&&(d.t_pagelet_cssload_early_resources=b));delete this.ongoing_watch[a]}return this},CavalryLogger.getBootloaderMetricsFromAllLoggers=function(){var a={};Object.values(window.CavalryLogger.instances).forEach(function(b){b.bootloader_metrics&&Object.assign(a,b.bootloader_metrics)});return a},CavalryLogger.start_js=function(a){for(var b=0;b<a.length;++b)CavalryLogger.getInstance().stopWatch("js_exec/"+a[b])},CavalryLogger.start_js_script=function(a){if(!a||!a.dataset)return;CavalryLogger.start_js([a.dataset.bootloaderHash||a.dataset.bootloaderHashClient])},CavalryLogger.done_js=function(a){for(var b=0;b<a.length;++b)CavalryLogger.getInstance().stopWatch("bootload/"+a[b])},CavalryLogger.prototype.profileEarlyResources=function(a){for(var b=0;b<a.length;b++)this.measureResources({name:a[b][0],type:a[b][1]?"js":""},"_EF_")};CavalryLogger.getInstance().log_resources=true;CavalryLogger.getInstance().setIsDetailedProfiler(true);window.CavalryLogger&&CavalryLogger.getInstance().setTimeStamp("t_start");</script><script id="u_0_8_jr" nonce="aDDjjAW0">(function _(a,b,c,d){function e(a){document.cookie=a+"=;expires=Thu, 01-Jan-1970 00:00:01 GMT;path=/;domain=.facebook.com"}function f(a,b){document.cookie=a+"="+b+";path=/;domain=.facebook.com;secure"}if(!a){e(b);e(c);return}a=null;(navigator.userAgent.indexOf("Firefox")!==-1||!window.devicePixelRatio&&navigator.userAgent.indexOf("Windows Phone")!==-1)&&(document.documentElement!=null&&(a=screen.width/document.documentElement.offsetWidth,a=Math.max(1,Math.floor(a*2)/2)));(!a||a===1)&&navigator.userAgent.indexOf("IEMobile")!==-1&&(a=Math.sqrt(screen.deviceXDPI*screen.deviceYDPI)/96,a=Math.max(1,Math.round(a*2)/2));f(b,(a||window.devicePixelRatio||1).toString());e=window.screen?screen.width:0;b=window.screen?screen.height:0;f(c,e+"x"+b);d&&document.cookie&&window.devicePixelRatio>1&&document.location.reload()})(true, "m_pixel_ratio", "wd", false);</script><meta property="og:title" content="Log in or sign up to view" /><meta property="og:description" content="See posts, photos and more on Facebook." /><link rel="manifest" id="MANIFEST_LINK" href="/data/manifest/" crossorigin="use-credentials" /></head><body tabindex="0" class="touch x1 no_acceleration _fzu _50-3 acw"><script id="u_0_6_Op" nonce="aDDjjAW0">(function(a){a.__updateOrientation=function(){var b=!!a.orientation&&a.orientation!==180,c=document.body;c&&(c.className=c.className.replace(/(^|\s)(landscape|portrait)(\s|$)/g," ")+" "+(b?"landscape":"portrait"));return b}})(window);</script><div id="viewport" data-kaios-focus-transparent="1"><h1 style="display:block;height:0;overflow:hidden;position:absolute;width:0;padding:0">Facebook</h1><div id="page"><div class="_129_" id="header-notices"></div><div class="_129- _6dr5" id="MChromeHeader"><a aria-label="Switch to the basic mobile site." href="/a/preferences.php?basic_site_devices=m_basic&amp;sr_link=1&amp;uri=https%3A%2F%2Fm.facebook.com%2Fhome.php&amp;gfid=AQC5fD0ZQpgmG6eNQvQ" tabindex="-1" style="clip: rect(1px, 1px, 1px, 1px);height: 1px;overflow: hidden;position: absolute;white-space: nowrap;width: 1px;" data-sigil="no_mpc">&nbsp;</a><div class="_7om2 _52we _52z5" id="header" data-sigil="MTopBlueBarHeader"><div class="_4g34 _52z6" data-sigil="mChromeHeaderCenter"><a href="/login/?privacy_mutation_token=eyJ0eXBlIjowLCJjcmVhdGlvbl90aW1lIjoxNjQ1MjE5NTIzLCJjYWxsc2l0ZV9pZCI6Mjc4OTkyMDk0NDYyNDI1MX0%3D"><i class="img img _2sxw" style="background-image: url(&#039;https\3a //static.xx.fbcdn.net/rsrc.php/v3/y6/r/tYqbcijbnOj.png&#039;);background-repeat:no-repeat;background-size:100% 100%;-webkit-background-size:100% 100%;width:123px;height:24px;" aria-label="facebook" role="img"></i></a></div></div></div><div class="acw" id="root" role="main" data-sigil="context-layer-root content-pane"><div><div class="_7ny9 _923j"><div class="_7nya _7nyg"><div><div class="_7nyi"><a href="https://m.facebook.com/login.php?next=%2Fhome.php&amp;refsrc=deprecated" class="_7nyk _7nyj"><div class="_7nyo">Log into Facebook</div></a><div class="_7nys"><div class="_7nyt"><div class="_7nyu">or</div></div></div><a href="/r.php?next=%2Fhome.php" class="_7nyl _7nyj _80ai"><div class="_7nyr">Create new account</div></a></div></div><div class="_7nyf"><i class="img _7nyv img _2sxw" style="background-image: url(&#039;https\3a //static.xx.fbcdn.net/rsrc.php/v3/yi/r/EzeuwIITKrr.png&#039;);background-repeat:no-repeat;background-size:100% 100%;-webkit-background-size:100% 100%;width:144px;height:142px;"></i><div class="_7nyw">The link you followed may be broken, or the page may have been removed.</div></div></div></div></div><div style="display:none"></div><span><img src="https://facebook.com/security/hsts-pixel.gif?c=3.2" width="0" height="0" style="display:none" /></span></div><div class=""></div><div class="viewportArea _2v9s" style="display:none" id="u_0_0_48" data-sigil="marea"><div class="_5vsg" id="u_0_1_mP"></div><div class="_5vsh" id="u_0_2_w4"></div><div class="_5v5d fcg"><div class="_2so _2sq _2ss img _50cg" data-animtype="1" data-sigil="m-loading-indicator-animate m-loading-indicator-root"></div>Loading...</div></div><div class="viewportArea aclb" id="mErrorView" style="display:none" data-sigil="marea"><div class="container"><div class="image"></div><div class="message" data-sigil="error-message"></div><a class="link" data-sigil="MPageError:retry">Try Again</a></div></div></div></div><div id="static_templates"><div class="mDialog" id="modalDialog" style="display:none"><div class="_52z5 _451a mFuturePageHeader _1uh1 firstStep titled" id="mDialogHeader"><div class="_7om2 _52we"><div class="_5s61"><div class="_52z7"><button type="submit" value="Cancel" class="cancelButton btn btnD bgb mfss touchable" id="u_0_4_gf" data-sigil="dialog-cancel-button">Cancel</button><button type="submit" value="Back" class="backButton btn btnI bgb mfss touchable iconOnly" aria-label="Back" id="u_0_5_YJ" data-sigil="dialog-back-button"><i class="img img _2sxw" style="margin-top: 2px;background-image: url(&#039;https\3a //static.xx.fbcdn.net/rsrc.php/v3/yJ/r/tcPHw9RFV0Q.png&#039;);background-repeat:no-repeat;background-size:100% 100%;-webkit-background-size:100% 100%;width:24px;height:24px;"></i></button></div></div><div class="_4g34"><div class="_52z6"><div class="_50l4 mfsl fcw" id="m-future-page-header-title" role="heading" tabindex="0" data-sigil="m-dialog-header-title dialog-title">Loading...</div></div></div><div class="_5s61"><div class="_52z8" id="modalDialogHeaderButtons"></div></div></div></div><div class="modalDialogView" id="modalDialogView"></div><div class="_5v5d _5v5e fcg" id="dialogSpinner"><div class="_2so _2sq _2ss img _50cg" data-animtype="1" id="u_0_3_/0" data-sigil="m-loading-indicator-animate m-loading-indicator-root"></div>Loading...</div></div></div><script id="u_0_b_Nw" src="https://static.xx.fbcdn.net/rsrc.php/v3ixJY4/yR/l/en_US/7h7eltYM2yJ.js?_nc_x=Ij3Wp8lg5Kz" data-bootloader-hash="rSSg6U2" nonce="aDDjjAW0"></script><script id="u_0_c_ES" nonce="aDDjjAW0">requireLazy(["HasteSupportData"],function(m){m.handle({"gkxData":{"5241":{"result":true,"hash":"AT7o1bCQPGpf3ShEDNI"},"676920":{"result":false,"hash":"AT497IX4gOFG8gZeqXc"},"708253":{"result":false,"hash":"AT5n4hBL3YTMnQWt0tg"},"996940":{"result":false,"hash":"AT7opYuEGy3sjG1axRQ"},"1263340":{"result":false,"hash":"AT5bwizWgDaFQudmw9g"}}})});requireLazy(["TimeSliceImpl","ServerJS"],function(TimeSlice,ServerJS){(new ServerJS()).handle({"define":[["CometPersistQueryParams",[],{"relative":{},"domain":{}},6231],["BigPipeExperiments",[],{"link_images_to_pagelets":false,"enable_bigpipe_plugins":false},907],["BootloaderConfig",[],{"deferBootloads":false,"jsRetries":[200,500],"jsRetryAbortNum":2,"jsRetryAbortTime":5,"silentDups":false,"hypStep4":false,"phdOn":false,"btCutoffIndex":604},329],["CSSLoaderConfig",[],{"timeout":5000,"modulePrefix":"BLCSS:"},619],["CurrentCommunityInitialData",[],{},490],["CurrentUserInitialData",[],{"ACCOUNT_ID":"0","USER_ID":"0","NAME":"","SHORT_NAME":null,"IS_BUSINESS_PERSON_ACCOUNT":false,"HAS_SECONDARY_BUSINESS_PERSON":false,"IS_FACEBOOK_WORK_ACCOUNT":false,"IS_MESSENGER_ONLY_USER":false,"IS_DEACTIVATED_ALLOWED_ON_MESSENGER":false,"IS_MESSENGER_CALL_GUEST_USER":false,"IS_WORK_MESSENGER_CALL_GUEST_USER":false,"APP_ID":"412378670482","IS_BUSINESS_DOMAIN":false},270],["ErrorDebugHooks",[],{"SnapShotHook":null},185],["ISB",[],{},330],["LSD",[],{"token":"AVrlkp2us2Q"},323],["MRequestConfig",[],{"dtsg":{"token":"AQFQOAaeatqo_Qc:0:0","valid_for":86400,"expire":1645305923},"dtsg_ag":{"token":"AQy4B6EoWZCCmaCOz-hf-rFMFOmTq-MHslkSBiHKr1HjrZu0:0:0","valid_for":604800,"expire":1645824323},"lsd":"AVrlkp2us2Q","checkResponseOrigin":true,"checkResponseToken":true,"cleanFinishedRequest":false,"cleanFinishedPrefetchRequests":false,"ajaxResponseToken":{"secret":"HqHzYkxCoMpgjdzG1SXGQ1S4F_vS-5QM","encrypted":"AYneIiYGnGcihn3nV3hng5zXXt7Z0woRN7Hy9KacztYqjDq9ge5nW9nvZFtBnkhKMeEhLocuRnaoPCByCSiiS_W3nAiqoEn_W6vS1Ijxw24VUw"}},51],["ServerNonce",[],{"ServerNonce":"QQ4pD8Q7kfHZb-YRAfFTaN"},141],["SiteData",[],{"server_revision":1005091548,"client_revision":1005091548,"tier":"","push_phase":"C3","pkg_cohort":"BP:mtouch_pkg","haste_session":"19041.BP:mtouch_pkg.2.0.0.0.","pr":1,"haste_site":"mobile","be_one_ahead":false,"is_rtl":false,"is_comet":false,"is_experimental_tier":false,"is_jit_warmed_up":true,"hsi":"7066164046099597171-0","semr_host_bucket":"6","bl_hash_version":2,"skip_rd_bl":true,"comet_env":0,"spin":0,"__spin_r":1005091548,"__spin_b":"trunk","__spin_t":1645219523,"vip":"157.240.231.35"},317],["SprinkleConfig",[],{"param_name":"jazoest","version":2,"should_randomize":false},2111],["PromiseUsePolyfillSetImmediateGK",[],{"www_always_use_polyfill_setimmediate":false},2190],["KSConfig",[],{"killed":{"__set":["MOBILIZER_SELF_SERVE_OWNERSHIP_RESOLVER","MLHUB_FLOW_AUTOREFRESH_SEARCH","NEKO_DISABLE_CREATE_FOR_SAP","EO_DISABLE_SYSTEM_SERIAL_NUMBER_FREE_TYPING_IN_CPE_NON_CLIENT","MOBILITY_KILL_OLD_VISIBILITY_POSITION_SETTING","WORKPLACE_DISPLAY_TEXT_EVIDENCE_REPORTING","BUSINESS_INVITE_FLOW_WITH_SELLER_PROFILE","BUY_AT_UI_LINE_DELETE","BUSINESS_GRAPH_SETTING_APP_ASSIGNED_USERS_NEW_API","BUSINESS_GRAPH_SETTING_BU_ASSIGNED_USERS_NEW_API","BUSINESS_GRAPH_SETTING_ESG_ASSIGNED_USERS_NEW_API","BUSINESS_GRAPH_SETTING_PRODUCT_CATALOG_ASSIGNED_USERS_NEW_API","BUSINESS_GRAPH_SETTING_SESG_ASSIGNED_USERS_NEW_API","BUSINESS_GRAPH_SETTING_WABA_ASSIGNED_USERS_NEW_API","ADS_PLACEMENT_FIX_PUBLISHER_PLATFORMS_MUTATION","FORCE_FETCH_BOOSTED_COMPONENT_AFTER_ADS_CREATION","VIDEO_DIMENSIONS_FROM_PLAYER_IN_UPLOAD_DIALOG","SNIVY_GROUP_BY_EVENT_TRACE_ID_AND_NAME","ADS_STORE_VISITS_METRICS_DEPRECATION","DYNAMIC_ADS_SET_CATALOG_AND_PRODUCT_SET_TOGETHER","AD_DRAFT_ENABLE_SYNCRHONOUS_FRAGMENT_VALIDATION","NEKO_ENABLE_RESET_SAP_FOR_CREATE_AD_SET_CONTEXTUAL","SEPARATE_MESSAGING_COMACTIVITY_PAGE_PERMS","LAB_NET_NEW_UI_RELEASE","POCKET_MONSTERS_CREATE","POCKET_MONSTERS_DELETE","SRT_BANZAI_SRT_CORE_LOGGER","SRT_BANZAI_SRT_MAIN_LOGGER","WORKPLACE_PLATFORM_SECURE_APPS_MAILBOXES","POCKET_MONSTERS_UPDATE_NAME","IC_DISABLE_MERGE_TOOL_FEED_CHECK_FOR_REPLACE_SCHEDULE","ADS_EPD_IMPACTED_ADVERTISER_MIGRATE_XCONTROLLER","RECRUITING_CANDIDATE_PORTAL_ACCOUNT_DELETION_CARD"]},"ko":{"__set":["8H4bQmEiuLT","3OsLvnSHNTt","1G7wJ6bJt9K","9NpkGYwzrPG","3oh5Mw86USj","8NAceEy9JZo","7FOIzos6XJX","rf8JEPGgOi","4j36SVzvP3w","4NSq3ZC4ScE","53gCxKq281G","3yzzwBY7Npj","1onzIv0jH6H","8PlKuowafe8","1ntjZ2zgf03","4SIH2GRVX5W","2dhqRnqXGLQ","2WgiNOrHVuC","amKHb4Cw4WI","5mNEXob0nTj","8rDvN9vWdAK","9cL5o2kjfZo","5BdzWGmfvrA","DDZhogI19W","acrJTh9WGdp","1oOE64fL4wO","9Gd8qgRxn8z","MPMaqnqZ9c","5XCz1h9Iaw3","7r6mSP7ofr2","6DGPLrRdyts","aWxCyi1sEC7","9kCSDzzr8fu"]}},2580],["JSErrorLoggingConfig",[],{"appId":412378670482,"extra":[],"reportInterval":50,"sampleWeight":128,"sampleWeightKey":"__jssesw","projectBlocklist":[]},2776],["ImmediateImplementationExperiments",[],{"prefer_message_channel":true},3419],["UriNeedRawQuerySVConfig",[],{"uris":["dms.netmng.com","doubleclick.net","r.msn.com","watchit.sky.com","graphite.instagram.com","www.kfc.co.th","learn.pantheon.io","www.landmarkshops.in","www.ncl.com","s0.wp.com","www.tatacliq.com","bs.serving-sys.com","kohls.com","lazada.co.th","xg4ken.com","technopark.ru","officedepot.com.mx","bestbuy.com.mx","booking.com","nibio.no"]},3871],["RunGatingConfig",[],{"shouldUseBrowserUnload":true},3914],["InitialCookieConsent",[],{"deferCookies":false,"initialConsent":{"__set":[1,2]},"noCookies":false,"shouldShowCookieBanner":false},4328],["TrustedTypesConfig",[],{"useTrustedTypes":false,"reportOnly":false},4548],["WebConnectionClassServerGuess",[],{"connectionClass":"EXCELLENT"},4705],["BootloaderEndpointConfig",[],{"debugNoBatching":false,"endpointURI":"https:\/\/m.facebook.com\/ajax\/bootloader-endpoint\/"},5094],["CookieConsentIFrameConfig",[],{"consent_param":"FQAREhIA.ARbEwJkSm7YJlkEPiBULMb4hm2bVd9v83_SEhec-rsnv0ncD","allowlisted_iframes":[]},5540],["cr:696703",[],{"__rc":[null,"Aa0QmSVGv6POx-HyFbWPM0zhNP5g7aIxpn746SzKUjv6Seaa3eDjkiYLiJJ3R8VUog8_rL30xVE6fdw83HhWjozOnnA"]},-1],["cr:717822",["TimeSliceImpl"],{"__rc":["TimeSliceImpl","Aa0QmSVGv6POx-HyFbWPM0zhNP5g7aIxpn746SzKUjv6Seaa3eDjkiYLiJJ3R8VUog8_rL30xVE6fdw83HhWjozOnnA"]},-1],["cr:729414",[],{"__rc":[null,"Aa1xuEdWHTAdKvdGAr6S5d2Hbm7i5dL4SDYSVUMTnFc5Eg2CmX7x6cLLDM0nXwRm0twTAD7A3HRqKkjylorkWKsw"]},-1]],"require":[["MPrelude\u0040bfbed4312da4a262d2194bff0c29049e"],["VisualCompletionGating\u00400aa57de9c6c5ae1e975a297363d52c8f"],["RequireDeferredReference\u0040468f8863ee6eb01b9201063c3df376e1","unblock",[],[["VisualCompletionGating"],"sd"]],["RequireDeferredReference\u0040468f8863ee6eb01b9201063c3df376e1","unblock",[],[["VisualCompletionGating"],"css"]]]});});</script>
neon-ninja commented 2 years ago

And if you open that in your browser, does it also say Content Not Found? Were you logged in at the time? Try calling set_cookies or _scraper.login(*credentials) before running that code.

What about this URL? https://m.facebook.com/ufi/reaction/profile/browser/?ft_ent_identifier=4909142392441238_4920605991294878&av=100077971196215&refid=52. Does this one have the same problem for you?

Ianneee commented 2 years ago

And if you open that in your browser, does it also say Content Not Found? Were you logged in at the time? Try calling set_cookies or _scraper.login(*credentials) before running that code.

What about this URL? https://m.facebook.com/ufi/reaction/profile/browser/?ft_ent_identifier=4909142392441238_4920605991294878&av=100077971196215&refid=52. Does this one have the same problem for you?

Ok, it was a login problem. Anyway also this second link works only with login, without i receive raise exceptions.UnexpectedResponse("Your request couldn't be processed")

<!DOCTYPE html><html lang="en"><head><title>Facebook</title><noscript><meta http-equiv="refresh" content="0;url=https://mbasic.facebook.com/home.php" /></noscript><meta name="viewport" content="user-scalable=no,initial-scale=1,maximum-scale=1" /><link href="https://static.xx.fbcdn.net/rsrc.php/yD/r/d4ZIVX-5C-b.ico" rel="shortcut icon" /><meta name="referrer" content="default" id="meta_referrer" /><script id="u_0_s_DV" nonce="TsparAsp">"use strict";window.MPageLoadClientMetrics=function(){var a=+new Date(),b={prelude_onload:["jewels_visible","first_paint","visibility_change","tti"],nav_started:["first_paint","visibility_change","prelude_onload"],first_paint:["jewels_visible","visibility_change","prelude_onload"],jewels_visible:["tti","visibility_change","navigation","prelude_onload"],tti:["e2e","visibility_change","navigation"]},c=3,d=3,e="nav_started",f=!0,g="",h="",i=1,j="",k="",l="",m="",n=function(){},o=!0,p=!1,q=!1,r=[],s=window.performance||window.msPerformance||window.webkitPerformance||{},t=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||window.setTimeout).bind(window),u=window.location.origin||window.location.protocol+"//"+window.location.hostname+(window.location.port&&":"+window.location.port);function v(b,c,d,e,f,i,n){s.timing&&s.timing.navigationStart&&(a=s.timing.navigationStart),j=b,k=c,l=d,m=e,g=f,h=i,o=n,y()}function w(a){var c=b[e];return c&&c.indexOf(a)!==-1}function x(a){return!b[a]}function y(){var a,b;document.hidden!==void 0?(a="hidden",b="visibilitychange"):document.mozHidden!==void 0?(a="mozHidden",b="mozvisibilitychange"):document.msHidden!==void 0?(a="msHidden",b="msvisibilitychange"):document.webkitHidden!==void 0&&(a="webkitHidden",b="webkitvisibilitychange");var c=function(){K("visibility_change",A()),document.removeEventListener(b,c),window.removeEventListener("beforeunload",c)};b&&a&&!window[a]?(document.addEventListener(b,c),window.addEventListener("beforeunload",c)):c()}function z(b){return b-a}function A(){return s.now?s.now():z(+new Date())}function B(){f&&(f=!1,n())}function C(){return f}function D(a){n=a}function E(){var a=i;++i;return a}function F(a){if(!window.navigator)return;window.navigator.hardwareConcurrency!==void 0&&(a.num_cores=window.navigator.hardwareConcurrency);window.navigator.deviceMemory&&(a.ram_gb=window.navigator.deviceMemory);window.navigator.connection&&(typeof window.navigator.connection.downlink==="number"&&(a.downlink_mb=window.navigator.connection.downlink),typeof window.navigator.connection.effectiveType==="string"&&(a.effective_connection_type=window.navigator.connection.effectiveType),typeof window.navigator.connection.rtt==="number"&&(a.rtt_ms=window.navigator.connection.rtt))}function G(b,c,d){if(!f)return;var g=!w(b),i=(c+a)/1e3;c=(i={lid:h,seq_num:E(),event:g?"illegal_transition":b,client_event_time:i,time_from_nav_start_ms:Math.floor(c)},i[l]=m,i.previous_event=e,i.log_to_scuba=o,i);e=b;j!==""&&(c.fb_dtsg=j);k!==""&&(c.lsd=k);g&&(c.illegal_transition_event=b);i=d||"";i!==""&&(c.navigation_endpoint=i);F(c);I(c)||J(c);(x(b)||g)&&B()}function H(a){var b=[];for(var c in a)b.push(c+"="+encodeURIComponent(a[c]));a=u+g;b=b.join("&");return a+"?"+b}function I(a){a.transmission_method="beacon";if(window.navigator&&window.navigator.sendBeacon)if(window.navigator.sendBeacon(H(a)))return!0;else a.is_retransmit=!0;return!1}function J(a,b){b===void 0&&(b=d);a.transmission_method="img";var c=new Image();b<d&&(a.is_retransmit=!0);b&&(c.onerror=function(c){J(a,b-1)});c.src=H(a)}function K(a,b,c){if(p){r.push({e:a,time:b,nav:c});return}G(a,b,c)}function L(a){if(!f)return;p=!0;var b=function(b){b=Math.min.apply(Math,[b].concat(r.map(function(a){return a.time})));p=!1;G("first_paint",b);(a||q)&&G("jewels_visible",b);r.forEach(function(a){return G(a.e,a.time,a.nav)})};t(function(){var a=A();if(s.getEntriesByName){var d=function(e){var f=s.getEntriesByName("first-paint")[0];f?b(f.startTime||a):e?window.setTimeout(function(){return d(!1)},c):b(a)};window.setTimeout(function(){return d(!0)},c)}else b(a)})}function M(){if(p){q=!0;return}G("jewels_visible",A())}function N(){G("prelude_onload",A())}return{init:v,logFirstPaint:L,logJewelsVisible:M,logPreludeOnload:N,logEvent:K,getMSFromNavStart:A,isEnabled:C,currentTimeToNavStartDelta:z,setDisableCallback:D,disable:B,origin:u}}();MPageLoadClientMetrics.init("AQEOj4ctd9k7IDc:22:1645263973", "", "jazoest", "21968", "\/ajax\/mtouch_perf_page_load_timings\/", "7066354970574028886-0", false);</script><link type="text/css" rel="stylesheet" href="https://static.xx.fbcdn.net/rsrc.php/v3/yk/l/0,cross/ggSbUqBk3Vq.css?_nc_x=8ancJ5FF3RU" data-bootloader-hash="suPnEpq" /><link type="text/css" rel="stylesheet" href="https://static.xx.fbcdn.net/rsrc.php/v3/yS/l/0,cross/5fMfBSrCFZS.css?_nc_x=8ancJ5FF3RU" data-bootloader-hash="cQ/Q5kz" /><link type="text/css" rel="stylesheet" href="https://static.xx.fbcdn.net/rsrc.php/v3/ya/l/0,cross/v110lv8SgeO.css?_nc_x=8ancJ5FF3RU" data-bootloader-hash="zRLUamR" /><link type="text/css" rel="stylesheet" href="https://static.xx.fbcdn.net/rsrc.php/v3/ya/l/0,cross/UIBfgE2PH36.css?_nc_x=8ancJ5FF3RU" data-bootloader-hash="mA6vjO0" /><link type="text/css" rel="stylesheet" href="https://static.xx.fbcdn.net/rsrc.php/v3/yL/l/0,cross/BrwZmRHPfrW.css?_nc_x=8ancJ5FF3RU" data-bootloader-hash="q9UvON0" /><link type="text/css" rel="stylesheet" href="https://static.xx.fbcdn.net/rsrc.php/v3/y4/l/0,cross/kFTNTfct_8p.css?_nc_x=8ancJ5FF3RU" data-bootloader-hash="nV7ADqM" /><script id="u_0_t_Fx" nonce="TsparAsp">function envFlush(a){function b(b){for(var c in a)b[c]=a[c]}window.requireLazy?window.requireLazy(["Env"],b):(window.Env=window.Env||{},b(window.Env))}envFlush({"stratcom_event_profiler_hook":"1","timeslice_heartbeat_config":{"pollIntervalMs":33,"idleGapThresholdMs":60,"ignoredTimesliceNames":{"requestAnimationFrame":true,"Event listenHandler mousemove":true,"Event listenHandler mouseover":true,"Event listenHandler mouseout":true,"Event listenHandler scroll":true},"isHeartbeatEnabled":true,"isArtilleryOn":false},"shouldLogCounters":true,"timeslice_categories":{"react_render":true,"reflow":true},"sample_continuation_stacktraces":true,"dom_mutation_flag":true});</script><script nonce="TsparAsp">document.domain = 'facebook.com';/^#~?!(?:\/?[\w\.-])+\/?(?:\?|$)/.test(location.hash)&&location.replace(location.hash.substr(location.hash.indexOf("!")+1));</script><script nonce="TsparAsp">__DEV__=0;</script><script id="u_0_u_Pn" src="https://static.xx.fbcdn.net/rsrc.php/v3/yq/r/c6l2TWh5Z-l.js?_nc_x=8ancJ5FF3RU" data-bootloader-hash="L8NPcws" nonce="TsparAsp"></script><script id="u_0_v_KN" nonce="TsparAsp">MPageLoadClientMetrics.logPreludeOnload();</script><script id="u_0_q_nf" nonce="TsparAsp">CavalryLogger=window.CavalryLogger||function(a){this.lid=a,this.transition=!1,this.metric_collected=!1,this.is_detailed_profiler=!1,this.instrumentation_started=!1,this.pagelet_metrics={},this.events={},this.ongoing_watch={},this.values={t_cstart:window._cstart},this.piggy_values={},this.bootloader_metrics={},this.resource_to_pagelet_mapping={},this.initializeInstrumentation&&this.initializeInstrumentation()},CavalryLogger.prototype.setIsDetailedProfiler=function(a){this.is_detailed_profiler=a;return this},CavalryLogger.prototype.setTTIEvent=function(a){this.tti_event=a;return this},CavalryLogger.prototype.setValue=function(a,b,c,d){d=d?this.piggy_values:this.values;(typeof d[a]==="undefined"||c)&&(d[a]=b);return this},CavalryLogger.prototype.getLastTtiValue=function(){return this.lastTtiValue},CavalryLogger.prototype.setTimeStamp=CavalryLogger.prototype.setTimeStamp||function(a,b,c,d){this.mark(a);var e=this.values.t_cstart||this.values.t_start;e=d?e+d:CavalryLogger.now();this.setValue(a,e,b,c);this.tti_event&&a==this.tti_event&&(this.lastTtiValue=e,this.setTimeStamp("t_tti",b));return this},CavalryLogger.prototype.mark=typeof console==="object"&&console.timeStamp?function(a){console.timeStamp(a)}:function(){},CavalryLogger.prototype.addPiggyback=function(a,b){this.piggy_values[a]=b;return this},CavalryLogger.instances={},CavalryLogger.id=0,CavalryLogger.getInstance=function(a){typeof a==="undefined"&&(a=CavalryLogger.id);CavalryLogger.instances[a]||(CavalryLogger.instances[a]=new CavalryLogger(a));return CavalryLogger.instances[a]},CavalryLogger.setPageID=function(a){if(CavalryLogger.id===0){var b=CavalryLogger.getInstance();CavalryLogger.instances[a]=b;CavalryLogger.instances[a].lid=a;delete CavalryLogger.instances[0]}CavalryLogger.id=a},CavalryLogger.now=function(){return window.performance&&performance.timing&&performance.timing.navigationStart&&performance.now?performance.now()+performance.timing.navigationStart:new Date().getTime()},CavalryLogger.prototype.measureResources=function(){},CavalryLogger.prototype.profileEarlyResources=function(){},CavalryLogger.getBootloaderMetricsFromAllLoggers=function(){},CavalryLogger.start_js=function(){},CavalryLogger.start_js_script=function(){},CavalryLogger.done_js=function(){};CavalryLogger.getInstance().setTTIEvent("t_domcontent");CavalryLogger.prototype.measureResources=function(a,b){if(!this.log_resources)return;var c="bootload/"+a.name;if(this.bootloader_metrics[c]!==void 0||this.ongoing_watch[c]!==void 0)return;var d=CavalryLogger.now();this.ongoing_watch[c]=d;"start_"+c in this.bootloader_metrics||(this.bootloader_metrics["start_"+c]=d);b&&!("tag_"+c in this.bootloader_metrics)&&(this.bootloader_metrics["tag_"+c]=b);if(a.type==="js"){c="js_exec/"+a.name;this.ongoing_watch[c]=d}},CavalryLogger.prototype.stopWatch=function(a){if(this.ongoing_watch[a]){var b=CavalryLogger.now(),c=b-this.ongoing_watch[a];this.bootloader_metrics[a]=c;var d=this.piggy_values;a.indexOf("bootload")===0&&(d.t_resource_download||(d.t_resource_download=0),d.resources_downloaded||(d.resources_downloaded=0),d.t_resource_download+=c,d.resources_downloaded+=1,d["tag_"+a]=="_EF_"&&(d.t_pagelet_cssload_early_resources=b));delete this.ongoing_watch[a]}return this},CavalryLogger.getBootloaderMetricsFromAllLoggers=function(){var a={};Object.values(window.CavalryLogger.instances).forEach(function(b){b.bootloader_metrics&&Object.assign(a,b.bootloader_metrics)});return a},CavalryLogger.start_js=function(a){for(var b=0;b<a.length;++b)CavalryLogger.getInstance().stopWatch("js_exec/"+a[b])},CavalryLogger.start_js_script=function(a){if(!a||!a.dataset)return;CavalryLogger.start_js([a.dataset.bootloaderHash||a.dataset.bootloaderHashClient])},CavalryLogger.done_js=function(a){for(var b=0;b<a.length;++b)CavalryLogger.getInstance().stopWatch("bootload/"+a[b])},CavalryLogger.prototype.profileEarlyResources=function(a){for(var b=0;b<a.length;b++)this.measureResources({name:a[b][0],type:a[b][1]?"js":""},"_EF_")};CavalryLogger.getInstance().log_resources=true;CavalryLogger.getInstance().setIsDetailedProfiler(true);window.CavalryLogger&&CavalryLogger.getInstance().setTimeStamp("t_start");</script><script id="u_0_r_xX" nonce="TsparAsp">(function _(a,b,c,d){function e(a){document.cookie=a+"=;expires=Thu, 01-Jan-1970 00:00:01 GMT;path=/;domain=.facebook.com"}function f(a,b){document.cookie=a+"="+b+";path=/;domain=.facebook.com;secure"}if(!a){e(b);e(c);return}a=null;(navigator.userAgent.indexOf("Firefox")!==-1||!window.devicePixelRatio&&navigator.userAgent.indexOf("Windows Phone")!==-1)&&(document.documentElement!=null&&(a=screen.width/document.documentElement.offsetWidth,a=Math.max(1,Math.floor(a*2)/2)));(!a||a===1)&&navigator.userAgent.indexOf("IEMobile")!==-1&&(a=Math.sqrt(screen.deviceXDPI*screen.deviceYDPI)/96,a=Math.max(1,Math.round(a*2)/2));f(b,(a||window.devicePixelRatio||1).toString());e=window.screen?screen.width:0;b=window.screen?screen.height:0;f(c,e+"x"+b);d&&document.cookie&&window.devicePixelRatio>1&&document.location.reload()})(true, "m_pixel_ratio", "wd", false);</script><link rel="manifest" id="MANIFEST_LINK" href="/data/manifest/" crossorigin="use-credentials" /></head><body tabindex="0" class="touch x1 no_acceleration _fzu _50-3 _67i4 iframe acw"><script id="u_0_p_kN" nonce="TsparAsp">(function(a){a.__updateOrientation=function(){var b=!!a.orientation&&a.orientation!==180,c=document.body;c&&(c.className=c.className.replace(/(^|\s)(landscape|portrait)(\s|$)/g," ")+" "+(b?"landscape":"portrait"));return b}})(window);</script><div id="viewport" data-kaios-focus-transparent="1"><h1 style="display:block;height:0;overflow:hidden;position:absolute;width:0;padding:0">Facebook</h1><div id="page"><div class="_129_" id="header-notices"></div><div class="_129- _6dr5" id="MChromeHeader"><a aria-label="Switch to the basic mobile site." href="/a/preferences.php?basic_site_devices=m_basic&amp;sr_link=1&amp;uri=https%3A%2F%2Fm.facebook.com%2Fhome.php&amp;gfid=AQCNILzXc336Fj7w5u8" tabindex="-1" style="clip: rect(1px, 1px, 1px, 1px);height: 1px;overflow: hidden;position: absolute;white-space: nowrap;width: 1px;" data-sigil="no_mpc">&nbsp;</a><div class="_52z5 _451a _3qet _17gp _7gxn _9rhg" id="header" data-sigil="MTopBlueBarHeader"><div class="_7om2 _52we _7izv _84vx" id="u_0_a_lW"><div class="_4g34 _7izx"><div class="_59te jewel _hzb noCount" data-store="&#123;&quot;tab&quot;:&quot;profile&quot;,&quot;tabID&quot;:194120517597173&#125;" id="profile_tab_jewel" data-sigil="nav-popover profile_tab_jewel_button profile"><a href="/profile.php" role="button" class="_19no touchable" id="u_0_b_EP" data-sigil="icon"><span style="display:block;height:0;overflow:hidden;position:absolute;width:0;padding:0">Profile</span><div class="_2ftp _62ta"><div class="_59tf _2ftq _7gxv" data-sigil="messenger_icon"><span class="_59tg" data-sigil="count">0</span></div></div></a></div></div><div class="_4g34 _7izw"><div class="_59te jewel _hzb _7i-1 noCount" data-store="&#123;&quot;tab&quot;:&quot;search&quot;,&quot;tabID&quot;:391724414624676&#125;" id="search_jewel" data-sigil="nav-popover search"><a href="#" role="button" name="Search" class="_7i-0 _19no" data-store="&#123;&quot;fromCache&quot;:false,&quot;shortCache&quot;:false,&quot;doNotRefocus&quot;:false&#125;" data-sigil="icon"><span class="_7iz_"><i class="img _7izy img _2sxw" style="background-image: url(&#039;https\3a //static.xx.fbcdn.net/rsrc.php/v3/yb/r/YBg11sWV18f.png&#039;);background-repeat:no-repeat;background-size:100% 100%;-webkit-background-size:100% 100%;width:16px;height:16px;"></i>Search</span><span style="display:block;height:0;overflow:hidden;position:absolute;width:0;padding:0">Search</span><div class="_2ftp _62ta"><div class="_59tf _2ftq _7gxv" data-sigil="messenger_icon"><span class="_59tg" data-sigil="count">0</span></div></div></a><div class="flyout popover_hidden" role="complementary" id="u_0_7_PQ" data-sigil="flyout"><div data-sigil="flyout-content context-layer-root"><div class="_55wp inner" data-sigil="contents"><div class="_1xh1"><span class="img _55ym _55yq _55yo" role="progressbar" aria-valuetext="Loading..." aria-valuemin="0" aria-valuemax="100" aria-busy="true"></span></div></div></div><div class="_imu"></div></div></div></div><div class="_4g34 _7izx"><div class="_59te jewel _hzb noCount" data-store="&#123;&quot;tab&quot;:&quot;composer&quot;,&quot;tabID&quot;:4748854339&#125;" id="composer_jewel" data-sigil="nav-popover composer_tab_jewel_button composer"><a role="button" class="_19no touchable" id="u_0_c_8B" data-sigil="composer_jewel icon"><span style="display:block;height:0;overflow:hidden;position:absolute;width:0;padding:0">What&#039;s on your mind?</span><div class="_2ftp _62ta"><div class="_59tf _2ftq _7gxv" data-sigil="messenger_icon"><span class="_59tg" data-sigil="count">0</span></div></div></a></div></div></div><div class="_7om2 _52we _7gxp" id="mJewelNav"><div class="_4g34"><div class="_59te jewel _hzb noCount" data-store="&#123;&quot;tab&quot;:&quot;feed&quot;,&quot;tabID&quot;:4748854339&#125;" id="feed_jewel" data-sigil="nav-popover feed"><a name="News Feed" accesskey="1" href="/home.php" class="_19no touchable" id="u_0_d_65" data-sigil="icon"><span style="display:block;height:0;overflow:hidden;position:absolute;width:0;padding:0">News Feed</span><div class="_2ftp _62ta"><div class="_59tf _2ftq _7gxv" data-sigil="messenger_icon"><span class="_59tg" data-sigil="count">0</span></div></div></a></div></div><div class="_4g34"><div class="_59te jewel _hzb noCount" data-store="&#123;&quot;tab&quot;:&quot;requests&quot;,&quot;tabID&quot;:122818001061574&#125;" id="requests_jewel" data-sigil="nav-popover requests"><a href="/friends/center/requests/?rfj" name="Friend Requests" data-store="&#123;&quot;fromCache&quot;:true,&quot;shortCache&quot;:true&#125;" accesskey="2" class="_19no touchable" id="u_0_e_L6" data-sigil="icon"><span style="display:block;height:0;overflow:hidden;position:absolute;width:0;padding:0">FRIEND REQUESTS</span><div class="_2ftp _62ta"><div class="_59tf _2ftq _7gxv" data-sigil="messenger_icon"><span class="_59tg" data-sigil="count">0</span></div></div></a></div></div><div class="_4g34"><div class="_59te jewel _hzb noCount" data-store="&#123;&quot;tab&quot;:&quot;videos&quot;,&quot;tabID&quot;:2392950137&#125;" id="videos_tab_jewel" data-sigil="nav-popover videos_tab_jewel_button videos"><a href="/watch/" role="button" class="_19no touchable" id="u_0_f_4s" data-sigil="icon"><span style="display:block;height:0;overflow:hidden;position:absolute;width:0;padding:0">Watch</span><div class="_2ftp _62ta"><div class="_59tf _2ftq _7gxv" data-sigil="messenger_icon"><span class="_59tg" data-sigil="count">0</span></div></div></a></div></div><div class="_4g34"><div class="_59te jewel _hzb _2cnm noCount" data-store="&#123;&quot;tab&quot;:&quot;notifications&quot;,&quot;tabID&quot;:1603421209951282&#125;" id="notifications_jewel" data-sigil="nav-popover notifications"><a accesskey="4" href="/notifications.php" name="Notifications" data-store="&#123;&quot;fromCache&quot;:true,&quot;shortCache&quot;:true&#125;" class="_19no touchable" id="u_0_g_Fy" data-sigil="icon"><span style="display:block;height:0;overflow:hidden;position:absolute;width:0;padding:0">Notifications</span><div class="_2ftp _62ta"><div class="_59tf _2ftq _7gxv" data-sigil="messenger_icon"><span class="_59tg" data-sigil="count">0</span></div></div></a></div></div><div class="_4g34"><div class="_59te jewel _hzb noCount _4wrj" data-store="&#123;&quot;tab&quot;:&quot;bookmarks&quot;,&quot;tabID&quot;:281710865595635&#125;" id="bookmarks_jewel" data-nocookies="1" data-sigil="nav-popover bookmarks"><a href="#" role="button" name="More" data-store="&#123;&quot;fromCache&quot;:true&#125;" class="_19no touchable" id="u_0_h_eI" data-sigil="menu-link icon"><span style="display:block;height:0;overflow:hidden;position:absolute;width:0;padding:0">Main Menu</span><div class="_2ftp _62ta"><div class="_59tf _2ftq _7gxv" data-sigil="messenger_icon"><span class="_59tg" data-sigil="count">0</span></div></div></a><div class="flyout popover_hidden" role="complementary" id="bookmarks_flyout" data-sigil="flyout"><div data-sigil="flyout-content context-layer-root"><ol class="_7k7 inner" id="u_0_8_us" data-sigil="contents"><li class="acw apl" data-sigil="marea"><div style="text-align:center;"><div class="_2so _2sq _2ss img _50cg" data-animtype="1" id="u_0_9_yF" data-sigil="m-loading-indicator-animate m-loading-indicator-root"></div></div></li></ol></div><div class="_imu"></div></div></div></div></div><div class="_6j_d" id="MBackNavBar"><i class="img _6l_w _84gg img _2sxw" id="MBackNavBarLeftArrow" aria-label="Back" role="button" style="background-image: url(&#039;https\3a //static.xx.fbcdn.net/rsrc.php/v3/y9/r/aIlEXh9fCXi.png&#039;);background-repeat:no-repeat;background-size:100% 100%;-webkit-background-size:100% 100%;width:20px;height:20px;"></i><i class="img _6l_q _84gg img _2sxw" id="MBackNavBarRightArrow" style="background-image: url(&#039;https\3a //static.xx.fbcdn.net/rsrc.php/v3/y0/r/rEUzkv0jVgo.png&#039;);background-repeat:no-repeat;background-size:100% 100%;-webkit-background-size:100% 100%;width:20px;height:20px;"></i><a class="_6j_c" id="u_0_i_wV" data-sigil="MBackNavBarClick">Back</a></div></div></div><div id="m:chrome:schedulable-graph-search" data-referrer="m:chrome:schedulable-graph-search"><div class="_a-5" id="u_0_z_qV"></div></div><div id="rootcontainer"><div class="acw" id="root" role="main" data-sigil="context-layer-root content-pane"><div class="_7om2"><div class="_4g34"><div class="_xn5"><div class="_5p-6"><div class="scrollArea scrollArea-horizontal" id="u_0_0_zr" style=";width:100%" data-store="&#123;&quot;direction&quot;:&quot;horizontal&quot;,&quot;scrollSnapType&quot;:&quot;mandatory&quot;&#125;" data-sigil="scroll-area"><div class="scrollAreaBody accelerate" id="u_0_1_J5" data-sigil="scroll-area-body"><div class="scrollAreaColumn" id="u_0_3_lL"><span class="_10tn" data-store="&#123;&quot;reactionType&quot;:1&#125;" data-sigil="reaction_profile_sigil"><span aria-label="1 person reacted with Like" class="_5p-9 _5p-l" role="button" id="u_0_4_mC"><i class="img _2ep2 img _2sxw" style="background-image: url(&#039;https\3a //static.xx.fbcdn.net/rsrc.php/v3/yv/r/dOJFaVZihS_.png&#039;);background-repeat:no-repeat;background-size:100% 100%;-webkit-background-size:100% 100%;width:16px;height:16px;"></i><span data-sigil="reaction_profile_tab_count">1</span></span></span></div></div></div></div><div><div class="_5p-o" id="u_0_5_2m"><div id="reaction_profile_browser1"><div class="_1uja _59qr"><div class="item _cs2 acw" data-sigil="undoable-action marea"><div class="ib cc _1aj4"><a class="darkTouch _1aj5 l" href="/profile.php?id=100009670724353&amp;fref=pb"><i class="img _1-yc profpic" aria-label="Mos&#xe8; Sorbo, profile picture" role="img" style="background:#fff url(&#039;https\3a //scontent-fco2-1.xx.fbcdn.net/v/t1.18169-1/cp0/e15/q65/c0.0.48.48a/p48x48/18023_128374857494871_3836556541152665642_n.jpg?_nc_cat\3d 103\26 ccb\3d 1-5\26 _nc_sid\3d dbb9e7\26 efg\3d eyJpIjoidCJ9\26 _nc_ohc\3d L3DS8UPBA0IAX-nkh3-\26 _nc_ht\3d scontent-fco2-1.xx\26 oh\3d 00_AT8Pqgp6bkv-58BnUIFibz2VOKGGefAa7trSqTDOuYp7wQ\26 oe\3d 62353905&#039;) no-repeat center;background-size:100% 100%;-webkit-background-size:100% 100%;width:48px;height:48px" data-sigil="touchable"></i></a><div class="_4mn c"><a href="/profile.php?id=100009670724353&amp;fref=pb"><div class="_4mo"><span><span><strong>Mosè Sorbo</strong></span></span></div></a><div class="_4mp"><div class="_4z0-" id="u_0_6_K+" data-sigil="m-friend-request-highlight-notice"><div class="_6_v9 notice" style="display: none;" data-sigil="m-add-friend-request-sent">Request sent</div><div style="display: none;" class="notice" data-sigil="m-friend-unfriended">Friend removed</div><div class="notice ellipsis" data-sigil="m-add-friend-source-replaceable"></div><div style="display: none;" class="_6_v9 notice" data-sigil="m-friend-request-canceled">Request canceled</div></div></div></div></div></div><i class="img _59aq img _2sxw" style="background-image: url(&#039;https\3a //static.xx.fbcdn.net/rsrc.php/v3/yv/r/dOJFaVZihS_.png&#039;);background-repeat:no-repeat;background-size:100% 100%;-webkit-background-size:100% 100%;width:16px;height:16px;"></i></div></div><div class="_5p-u"><div class="_2so _2sq _2ss img _50cg" data-animtype="1" id="u_0_2_La" data-sigil="m-loading-indicator-animate m-loading-indicator-root"></div></div><div id="reaction_profile_pager1"></div></div></div></div></div></div><div style="display:none"></div></div></div><div class=""></div><div class="viewportArea _2v9s" style="display:none" id="u_0_j_V3" data-sigil="marea"><div class="_5vsg" id="u_0_k_tB"></div><div class="_5vsh" id="u_0_l_ya"></div><div class="_5v5d fcg"><div class="_2so _2sq _2ss img _50cg" data-animtype="1" data-sigil="m-loading-indicator-animate m-loading-indicator-root"></div>Loading...</div></div><div class="viewportArea aclb" id="mErrorView" style="display:none" data-sigil="marea"><div class="container"><div class="image"></div><div class="message" data-sigil="error-message"></div><a class="link" data-sigil="MPageError:retry">Try Again</a></div></div></div></div><div id="static_templates"><div class="mDialog" id="modalDialog" style="display:none"><div class="_52z5 _451a mFuturePageHeader _1uh1 firstStep titled" id="mDialogHeader"><div class="_7om2 _52we"><div class="_5s61"><div class="_52z7"><button type="submit" value="Cancel" class="cancelButton btn btnD bgb mfss touchable" id="u_0_n_eL" data-sigil="dialog-cancel-button">Cancel</button><button type="submit" value="Back" class="backButton btn btnI bgb mfss touchable iconOnly" aria-label="Back" id="u_0_o_ZS" data-sigil="dialog-back-button"><i class="img img _2sxw" style="margin-top: 2px;background-image: url(&#039;https\3a //static.xx.fbcdn.net/rsrc.php/v3/yJ/r/tcPHw9RFV0Q.png&#039;);background-repeat:no-repeat;background-size:100% 100%;-webkit-background-size:100% 100%;width:24px;height:24px;"></i></button></div></div><div class="_4g34"><div class="_52z6"><div class="_50l4 mfsl fcw" id="m-future-page-header-title" role="heading" tabindex="0" data-sigil="m-dialog-header-title dialog-title">Loading...</div></div></div><div class="_5s61"><div class="_52z8" id="modalDialogHeaderButtons"></div></div></div></div><div class="modalDialogView" id="modalDialogView"></div><div class="_5v5d _5v5e fcg" id="dialogSpinner"><div class="_2so _2sq _2ss img _50cg" data-animtype="1" id="u_0_m_Vz" data-sigil="m-loading-indicator-animate m-loading-indicator-root"></div>Loading...</div></div></div><script id="u_0_w_4/" nonce="TsparAsp">MPageLoadClientMetrics.logFirstPaint(true);</script><script id="u_0_x_ye" src="https://static.xx.fbcdn.net/rsrc.php/v3ixJY4/yR/l/en_US/7h7eltYM2yJ.js?_nc_x=8ancJ5FF3RU" data-bootloader-hash="rSSg6U2" nonce="TsparAsp"></script><script id="u_0_y_B0" nonce="TsparAsp">requireLazy(["HasteSupportData"],function(m){m.handle({"gkxData":{"5241":{"result":true,"hash":"AT7o1bCQPGpf3ShEd1g"},"676920":{"result":false,"hash":"AT497IX4gOFG8gZeInQ"},"708253":{"result":false,"hash":"AT5n4hBL3YTMnQWtpDQ"},"996940":{"result":false,"hash":"AT7opYuEGy3sjG1a6Yo"},"1263340":{"result":false,"hash":"AT5bwizWgDaFQudmI6I"}}})});requireLazy(["TimeSliceImpl","ServerJS"],function(TimeSlice,ServerJS){(new ServerJS()).handle({"define":[["CometPersistQueryParams",[],{"relative":{},"domain":{}},6231],["BigPipeExperiments",[],{"link_images_to_pagelets":false,"enable_bigpipe_plugins":false},907],["BootloaderConfig",[],{"deferBootloads":false,"jsRetries":[200,500],"jsRetryAbortNum":2,"jsRetryAbortTime":5,"silentDups":false,"hypStep4":false,"phdOn":false,"btCutoffIndex":604},329],["CSSLoaderConfig",[],{"timeout":5000,"modulePrefix":"BLCSS:"},619],["CurrentCommunityInitialData",[],{},490],["CurrentUserInitialData",[],{"ACCOUNT_ID":"100077971196215","USER_ID":"100077971196215","NAME":"Alessandro Zanetti","SHORT_NAME":"Alessandro","IS_BUSINESS_PERSON_ACCOUNT":false,"HAS_SECONDARY_BUSINESS_PERSON":false,"IS_FACEBOOK_WORK_ACCOUNT":false,"IS_MESSENGER_ONLY_USER":false,"IS_DEACTIVATED_ALLOWED_ON_MESSENGER":false,"IS_MESSENGER_CALL_GUEST_USER":false,"IS_WORK_MESSENGER_CALL_GUEST_USER":false,"APP_ID":"412378670482","IS_BUSINESS_DOMAIN":false},270],["ErrorDebugHooks",[],{"SnapShotHook":null},185],["ISB",[],{},330],["LSD",[],{"token":"kBO6g7IFTDSQ3ZaInGClAj"},323],["MRequestConfig",[],{"dtsg":{"token":"AQEOj4ctd9k7IDc:22:1645263973","valid_for":86400,"expire":1645350376},"dtsg_ag":{"token":"AQzFbxl44L2dqhYa6E-RwZQwuzps2kImpsjCyt_ovEW6p-ug:22:1645263973","valid_for":604800,"expire":1645868776},"checkResponseOrigin":true,"checkResponseToken":true,"cleanFinishedRequest":false,"cleanFinishedPrefetchRequests":true,"ajaxResponseToken":{"secret":"dFPUcvCFJSNEp0Cb-GBo4WCRf-BuN-yW","encrypted":"AYmVbckXLW3RVR3nsuJ6AMJ3AASJeHrcL-Dhl9Ee4a9CBPGgeAmZawWGhS62Sc_qUjLwZhA24cUwM0SbDxWTpUz7Q25Ehp00gW_4TLBOYMYIsw"}},51],["ServerNonce",[],{"ServerNonce":"Zg7Nb6RwtPKXX69Vdzp8je"},141],["SiteData",[],{"server_revision":1005095128,"client_revision":1005095128,"tier":"","push_phase":"C3","pkg_cohort":"BP:mtouch_pkg","haste_session":"19042.BP:mtouch_pkg.2.0.0.0.","pr":1,"haste_site":"mobile","be_one_ahead":false,"is_rtl":false,"is_comet":false,"is_experimental_tier":false,"is_jit_warmed_up":false,"hsi":"7066354970574028886-0","semr_host_bucket":"6","bl_hash_version":2,"skip_rd_bl":true,"comet_env":0,"spin":0,"__spin_r":1005095128,"__spin_b":"trunk","__spin_t":1645263976,"vip":"157.240.231.35"},317],["SprinkleConfig",[],{"param_name":"jazoest","version":2,"should_randomize":false},2111],["PromiseUsePolyfillSetImmediateGK",[],{"www_always_use_polyfill_setimmediate":false},2190],["KSConfig",[],{"killed":{"__set":["MOBILIZER_SELF_SERVE_OWNERSHIP_RESOLVER","MLHUB_FLOW_AUTOREFRESH_SEARCH","NEKO_DISABLE_CREATE_FOR_SAP","EO_DISABLE_SYSTEM_SERIAL_NUMBER_FREE_TYPING_IN_CPE_NON_CLIENT","MOBILITY_KILL_OLD_VISIBILITY_POSITION_SETTING","WORKPLACE_DISPLAY_TEXT_EVIDENCE_REPORTING","BUSINESS_INVITE_FLOW_WITH_SELLER_PROFILE","BUY_AT_UI_LINE_DELETE","BUSINESS_GRAPH_SETTING_APP_ASSIGNED_USERS_NEW_API","BUSINESS_GRAPH_SETTING_BU_ASSIGNED_USERS_NEW_API","BUSINESS_GRAPH_SETTING_ESG_ASSIGNED_USERS_NEW_API","BUSINESS_GRAPH_SETTING_PRODUCT_CATALOG_ASSIGNED_USERS_NEW_API","BUSINESS_GRAPH_SETTING_SESG_ASSIGNED_USERS_NEW_API","BUSINESS_GRAPH_SETTING_WABA_ASSIGNED_USERS_NEW_API","ADS_PLACEMENT_FIX_PUBLISHER_PLATFORMS_MUTATION","FORCE_FETCH_BOOSTED_COMPONENT_AFTER_ADS_CREATION","VIDEO_DIMENSIONS_FROM_PLAYER_IN_UPLOAD_DIALOG","SNIVY_GROUP_BY_EVENT_TRACE_ID_AND_NAME","ADS_STORE_VISITS_METRICS_DEPRECATION","DYNAMIC_ADS_SET_CATALOG_AND_PRODUCT_SET_TOGETHER","AD_DRAFT_ENABLE_SYNCRHONOUS_FRAGMENT_VALIDATION","NEKO_ENABLE_RESET_SAP_FOR_CREATE_AD_SET_CONTEXTUAL","SEPARATE_MESSAGING_COMACTIVITY_PAGE_PERMS","LAB_NET_NEW_UI_RELEASE","POCKET_MONSTERS_CREATE","POCKET_MONSTERS_DELETE","SRT_BANZAI_SRT_CORE_LOGGER","SRT_BANZAI_SRT_MAIN_LOGGER","WORKPLACE_PLATFORM_SECURE_APPS_MAILBOXES","POCKET_MONSTERS_UPDATE_NAME","IC_DISABLE_MERGE_TOOL_FEED_CHECK_FOR_REPLACE_SCHEDULE","ADS_EPD_IMPACTED_ADVERTISER_MIGRATE_XCONTROLLER","RECRUITING_CANDIDATE_PORTAL_ACCOUNT_DELETION_CARD"]},"ko":{"__set":["8H4bQmEiuLT","3OsLvnSHNTt","1G7wJ6bJt9K","9NpkGYwzrPG","3oh5Mw86USj","8NAceEy9JZo","7FOIzos6XJX","rf8JEPGgOi","4j36SVzvP3w","4NSq3ZC4ScE","53gCxKq281G","3yzzwBY7Npj","1onzIv0jH6H","8PlKuowafe8","1ntjZ2zgf03","4SIH2GRVX5W","2dhqRnqXGLQ","2WgiNOrHVuC","amKHb4Cw4WI","5mNEXob0nTj","8rDvN9vWdAK","9cL5o2kjfZo","5BdzWGmfvrA","DDZhogI19W","acrJTh9WGdp","1oOE64fL4wO","9Gd8qgRxn8z","MPMaqnqZ9c","5XCz1h9Iaw3","7r6mSP7ofr2","6DGPLrRdyts","aWxCyi1sEC7","9kCSDzzr8fu"]}},2580],["ImmediateImplementationExperiments",[],{"prefer_message_channel":true},3419],["UriNeedRawQuerySVConfig",[],{"uris":["dms.netmng.com","doubleclick.net","r.msn.com","watchit.sky.com","graphite.instagram.com","www.kfc.co.th","learn.pantheon.io","www.landmarkshops.in","www.ncl.com","s0.wp.com","www.tatacliq.com","bs.serving-sys.com","kohls.com","lazada.co.th","xg4ken.com","technopark.ru","officedepot.com.mx","bestbuy.com.mx","booking.com","nibio.no"]},3871],["RunGatingConfig",[],{"shouldUseBrowserUnload":true},3914],["TrustedTypesConfig",[],{"useTrustedTypes":false,"reportOnly":false},4548],["WebConnectionClassServerGuess",[],{"connectionClass":"EXCELLENT"},4705],["BootloaderEndpointConfig",[],{"debugNoBatching":false,"endpointURI":"https:\/\/m.facebook.com\/ajax\/bootloader-endpoint\/"},5094],["JSErrorLoggingConfig",[],{"appId":412378670482,"extra":[],"reportInterval":50,"sampleWeight":null,"sampleWeightKey":"__jssesw","projectBlocklist":[]},2776],["CookieConsentIFrameConfig",[],{"consent_param":"FQAREREA.ARaQYFBIskGeS5u1Wqsf4qViybI3cCdG2DDWXxxwdHWcz6Iu","allowlisted_iframes":[]},5540],["InitialCookieConsent",[],{"deferCookies":false,"initialConsent":{"__set":[1,2]},"noCookies":false,"shouldShowCookieBanner":false},4328],["cr:696703",[],{"__rc":[null,"Aa3MWlyVbL9tIzhSEyhGPQCHwf7KrZd0uPuRbD2uL8CL-Q5HdtE7rMG_ZBtZDhaPRw5vJLGcJt_pZqrZY6E2KJOEe2w"]},-1],["cr:717822",["TimeSliceImpl"],{"__rc":["TimeSliceImpl","Aa3MWlyVbL9tIzhSEyhGPQCHwf7KrZd0uPuRbD2uL8CL-Q5HdtE7rMG_ZBtZDhaPRw5vJLGcJt_pZqrZY6E2KJOEe2w"]},-1],["cr:729414",[],{"__rc":[null,"Aa3qv0pYH8HRzvVB2ynv_iaU462bsx1UehkDkMyVTaC3HiZVadHdMxtLOBk2ypkD8PENef4uit9t7adk4njEdJLw"]},-1]],"require":[["MPrelude"],["VisualCompletionGating"],["RequireDeferredReference","unblock",[],[["VisualCompletionGating"],"sd"]],["RequireDeferredReference","unblock",[],[["VisualCompletionGating"],"css"]]]});});</script>
neon-ninja commented 2 years ago

I think I see the issue - you're missing the UFIReactionTypes jsmod in your HTML. Try https://github.com/kevinzg/facebook-scraper/commit/faa33d568833ffee7356b2777563b2d54cc07642

neon-ninja commented 2 years ago

Actually, you're missing all jsmods, including UFIReactionIcons. https://github.com/kevinzg/facebook-scraper/commit/6ab1afb114ab364b2fe44649a3353d8a20dc4ebd should help with that

Ianneee commented 2 years ago

Now is it solved. Thanks so much!

{
    "comment_id": "4920605991294878",
    "comment_url": "https://facebook.com/4920605991294878",
    "commenter_id": "1408839046",
    "commenter_url": "https://facebook.com/marco.invernizzi2?fref=nf&rc=p&refid=52",
    "commenter_name": "Marco Invernizzi",
    "commenter_meta": null,
    "comment_text": "Si ma non mi sembra dica niente a favore delle vostre tesi anti vaccino",
    "comment_time": "2022-01-19 13:46:30",
    "comment_image": null,
    "comment_reactors": [
        {
            "name": "Mos\u00e8 Sorbo",
            "link": "https://facebook.com/profile.php?id=100009670724353&fref=pb",
            "type": "like"
        }
    ],
    "comment_reactions": {
        "like": 1
    },
    "comment_reaction_count": 1,
    "replies": "<generator object PostExtractor.extract_comment_replies at 0x7fc06d947dd0>"
}

I would to ask another thing, because i see the 'comment_time' is my local time instead of the time when the comment is leaved if is something about the library or my settings.

neon-ninja commented 2 years ago

For comment times, m.facebook.com only has strings like "1 mth", which is all the scraper has to go on. These strings are interpreted by the dateparser library, which would do something like now - 1 month. They're only approximate.

Ianneee commented 2 years ago

For comment times, m.facebook.com only has strings like "1 mth", which is all the scraper has to go on. These strings are interpreted by the dateparser library, which would do something like now - 1 month. They're only approximate.

Ok, thanks for the explanation and for solving my issue.

neon-ninja commented 2 years ago

I think I've figured out what was causing this issue for you - did you have a set_user_agent call by any chance?

Ianneee commented 2 years ago

I think I've figured out what was causing this issue for you - did you have a set_user_agent call by any chance?

Yes, i was using this user agent Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html because i find out you suggest in another issue for Unsupported browser, but i noticed later with this user agent you can scrape only 19 post from a page, you can't do more. I was using the while True loop for ban prevention with request_url_callback; when the posts on the page are finished the while loop re-start from the last saved url and without you can noticing it extracts the posts from the last url indefinitely, so everything seems to work fine. I've bypassed this using a banned flag.

Was this user agent causing this issue also?

neon-ninja commented 2 years ago

Yes, I only suggested this user agent for debugging purposes, I wouldn't recommend using it for normal use