Need help with this public facebook graph API

Hello everyone good evening,

From my end I have tried to fetch Facebook videos by using a simple trick way to navigate the Developer Console like this with I think this is Facebook Public API which I am using from the Dev Console :crazy_face:
:point_down: :point_down: :point_down:

Then I tried to set the blocks like this

From those blocks I get null Response, then realized that I am completely somewhere wrong with my all blocks.

Kindly someone help me to solve this

In mobile the above said api doesnot open properly and it shows no result even…

However, copy the cURL things and use cURL to blocks website and try with the result

Use the Post method rather than Get and remove the corresponding value in the header

Taifun

Thanks @Still-learning but I have tried it a lot
Yes that is what I have tried so far,

curl 'https://web.facebook.com/api/graphql/' \
  -H 'authority: web.facebook.com' \
  -H 'accept: */*' \
  -H 'accept-language: en-US,en;q=0.9' \
  -H 'content-type: application/x-www-form-urlencoded' \
  -H 'cookie: datr=KqYGYx2jgVV39wSz1wBZp4Np; fr=0hOui0gkbrooYgDGD..Bihcng.Z-.AAA.0.0.BjBqnb.AWUwALPYXK4' \
  -H 'origin: https://web.facebook.com' \
  -H 'referer: https://web.facebook.com/alphlukau01/videos?_rdc=1&_rdr' \
  -H 'sec-ch-prefers-color-scheme: light' \
  -H 'sec-ch-ua: "Chromium";v="104", " Not A;Brand";v="99", "Google Chrome";v="104"' \
  -H 'sec-ch-ua-mobile: ?1' \
  -H 'sec-ch-ua-platform: "Android"' \
  -H 'sec-fetch-dest: empty' \
  -H 'sec-fetch-mode: cors' \
  -H 'sec-fetch-site: same-origin' \
  -H 'user-agent: Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Mobile Safari/537.36' \
  -H 'viewport-width: 638' \
  -H 'x-fb-friendly-name: PagesCometChannelTabAllVideosCardImplPaginationQuery' \
  -H 'x-fb-lsd: AVoJPkWTmkA' \
  --data-raw 'av=0&__user=0&__a=1&__dyn=7xeUmwlEnwn8K2WnFw9-2i5U4e0yoW3q32361twYwJw8-2S1DwUx60gu0luq1ew65xO2O1Vwooa8465o-cwfG12wOKdwGwQw9m1YwBgao6C0Mo5W3S1lwlE-UqwsUkxe2Gewywuo88brwKxm5odK1lUlwhE2FBx_y83ZwAwJwSyES0QEcU2ZwhF8-4UdUcobUak&__csr=g9k8AETPl9lHIJWili6BynAJXVXHXhkULp2t5GmnXiCXAaQ5HWBGmpaihqWgUFFpbAAUKq4Uq-Km9xaqF8oggBy8C5V9axR2qxefBByECi6FFrKcVoTCzpVomDyUgJ3FUjxq5FfAAgpDUSm2212m2eq0k2dU18U0CK0csw1Zu0fZxbw9e0dic0-E2ODw11Elc00x28ry80dV87eubF7yE42ifiw6gw8i1BzE17dxa0U8cAiuE9Gg-2hqbeDd53Axg521naq2Egmp5sg8N2how9w5Rgxw4QDwCwaWAurgbi08Lwabwgohw52Dg12pU1pU17Uy1Kw2p8wlyl88WCaGwAg9EynnmG80tW48lwHwgrm1bwaa8w8Odx-fCU2ix61iwiUSewmotAK2y6p62mU9A36bxe4oKEpw9O4p7iiDoy1rzbwyzmlAhR4EvhAE4q0HoO1iU6Vm0xGy8G1ewQwwAgyEggjO5lwhpo1hS2Wu0pW3a2xcBwcOK32qE8oPc0d_wio4Dg6u1xwoZwbWq2-1XwXwdq08fy8Hc0oC0TU9ERw-gf-1swmpZ0lpE3Ewae4o2rw7rg33woHg4q2o4MiPyk1Zc5U4G1exhmu0Y82lBw863m0D89Q0Y81jAUS9gswdJw75g10Q0PpQaIw2Lx60yEa8eobETg0Rq1yDw&__req=g&__hs=19258.HYP%3Acomet_loggedout_pkg.2.1.0.0.0&dpr=1&__ccg=GOOD&__rev=1006259645&__s=8tnatj%3Av4xzx9%3A886220&__hsi=7146613423739865657&__comet_req=15&lsd=AVoJPkWTmkA&jazoest=2975&__spin_r=1006259645&__spin_b=trunk&__spin_t=1663950603&fb_api_caller_class=RelayModern&fb_api_req_friendly_name=PagesCometChannelTabAllVideosCardImplPaginationQuery&variables=%7B%22alwaysIncludeAudioRooms%22%3Atrue%2C%22count%22%3A6%2C%22cursor%22%3A%22AQHR7XDLjPfruyPv3SUXzW7jeAQ0_G65wRmgn-Dk23KjIu3DKaC2kNR80riU1zHnDRCaqyfPCh0J_E2K58IMO2qeiQ%22%2C%22pageID%22%3A%22307918209342301%22%2C%22scale%22%3A4%2C%22showReactions%22%3Atrue%2C%22useDefaultActor%22%3Afalse%2C%22id%22%3A%22307918209342301%22%7D&server_timestamps=true&doc_id=5204644559634887' \
  --compressed

So do you mean I should try this again in this way with the website you provided?
:point_down: :point_down: :point_down:

Are those blocks correct?

I am confused @Taifun which data should I post in the Post method and which corresponding value should I omit permanently or remove?

Taifun

Sorry which exactly data should i use in Post method?

I do not know what you like to Post… if in doubt, try an empty string…

Taifun

no no no @Taifun I can’t post empty string
For sure I have used this website getaix.com suggested by @Still-learning to generate this blocks but I am still getting empty response with these blocks

these are cURL I got from the page

curl "https://web.facebook.com/api/graphql/" ^
  -H "authority: web.facebook.com" ^
  -H "accept: */*" ^
  -H "accept-language: en-US,en;q=0.9" ^
  -H "content-type: application/x-www-form-urlencoded" ^
  -H "cookie: datr=KqYGYx2jgVV39wSz1wBZp4Np; fr=0hOui0gkbrooYgDGD..Bihcng.Z-.AAA.0.0.BjBqnb.AWUwALPYXK4" ^
  -H "origin: https://web.facebook.com" ^
  -H "referer: https://web.facebook.com/alphlukau01/videos?_rdc=1&_rdr" ^
  -H "sec-ch-prefers-color-scheme: light" ^
  -H "sec-ch-ua: ^\^"Chromium^\^";v=^\^"104^\^", ^\^" Not A;Brand^\^";v=^\^"99^\^", ^\^"Google Chrome^\^";v=^\^"104^\^"" ^
  -H "sec-ch-ua-mobile: ?0" ^
  -H "sec-ch-ua-platform: ^\^"Windows^\^"" ^
  -H "sec-fetch-dest: empty" ^
  -H "sec-fetch-mode: cors" ^
  -H "sec-fetch-site: same-origin" ^
  -H "user-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36" ^
  -H "viewport-width: 825" ^
  -H "x-fb-friendly-name: PagesCometChannelTabAllVideosCardImplPaginationQuery" ^
  -H "x-fb-lsd: AVoJPkWTwk8" ^
  --data-raw "av=0&__user=0&__a=1&__dyn=7xeUmwlEnwn8K2WnFw9-2i5U4e0yoW3q32361twYwJw8-2S1DwUx60gu0luq1ew65xO2O1Vwooa8465o-cwfG12wOKdwGwQw9m1YwBgao6C0Mo5W3S1lwlE-UqwsUkxe2Gewywuo88brwKxm5odK1lUlwhE2FBx_y83ZwAwJwSyES0QEcU2ZwhF8-4UdUcobUak&__csr=gbCI_Pl9kDIJWili6BGpVbtbDKLFBjyZA9QmFpvJarF4aQ9zbWBGmpaihqWhFOCBAKijyVEjxHWVoCuaCGi8Cy449oy9xuiiEky4VqxefBByECi6FFrKcVoTCUKum5FUK4bgWu4UmxqjV94EmDUSm2212m2eq0k2dU18U36S0q20MQ0i20jq07RU0MO0xE6B17w9e0Zo0BMM3Wwbau046xkM0248xK8w0JTU0CG1PDyWhUG10AzQE1A824wpoW0hPoiwe2394DG2qAfwAmyPFPhgV8k1gwlOCwG45Chn42cgAm82o1tk8o1d9UK942o2KF7CQ2Qw2bU2yU464o1gFQ0gCu0mu0h-8wrE0Ci85oBi2eFyGE942qlpttqEw1TEgxm2K11Jo4K0EEy1ZzAaUvzVK0AEhxKi361bzoW1pxSiUa8pAo9rwCgcoK4UhyWxC0D8hAt9aty85KcK2adpmh7kixZ6iwhE8U7Ocz85bwrBo26G8yE4W3i22h2ax11f8lm15Bw57obFU1DEcEa4Om0PaUc9GAxOcP03vU4C19Q1Dwoo6fob82hCwLwuUeU3mw23UyaP0Rw5jwd-2qdofA3_wn85CvgrCOwICwey0EUhw9K0tJ0ce1yJ0hE9wj1be9g7QMnwiE4W55pU3MwTwnpo21wRw9O2t0f20kVedyk783ro1Nku0-Q0PpQaIw2Lx60yEa8eobETg0KK1GwoFU&__req=i&__hs=19258.HYP^%^3Acomet_loggedout_pkg.2.1.0.0.0&dpr=1&__ccg=MODERATE&__rev=1006259645&__s=p381mf^%^3Av4xzx9^%^3A8btz29&__hsi=7146619526874374941&__comet_req=15&lsd=AVoJPkWTwk8&jazoest=2976&__spin_r=1006259645&__spin_b=trunk&__spin_t=1663952024&fb_api_caller_class=RelayModern&fb_api_req_friendly_name=PagesCometChannelTabAllVideosCardImplPaginationQuery&variables=^%^7B^%^22alwaysIncludeAudioRooms^%^22^%^3Atrue^%^2C^%^22count^%^22^%^3A6^%^2C^%^22cursor^%^22^%^3A^%^22AQHRC45u7V6EKhM6MxpORw99g23TGjtOM3BoPrPb_x3kxgFbW5mqRCoViuw59kxkFGs5G8AMBiRPWqJDhdWc8LrV4g^%^22^%^2C^%^22pageID^%^22^%^3A^%^22307918209342301^%^22^%^2C^%^22scale^%^22^%^3A4^%^2C^%^22showReactions^%^22^%^3Atrue^%^2C^%^22useDefaultActor^%^22^%^3Afalse^%^2C^%^22id^%^22^%^3A^%^22307918209342301^%^22^%^7D&server_timestamps=true&doc_id=5204644559634887" ^
  --compressed

I don’t real know what is wrong with those blocks, I would kindly ask you if you have time to edit them and see if they can give response data
:pray:

Once i back into system, let me check this. As i said earlier, on clicking the api which you provided in the previous post shows no result in mobile

1 Like

Thanks @Still-learning I will real appreciate if this gets a solution
:pray:

Hello @Still-learning would you get time to take a look on how to solve this
:point_down::point_down::point_down:

i cannot see such graphql ???

Try to hover on a developer console then Network then after loading the page you will see that graphql

for graph api too you need access token itseems

curl -X GET -G \
  -d 'access_token=<ACCESS_TOKEN>' \
  https://graph.facebook.com/v15.0/{person-id}/

Hello @Still-learning I have real tried a lot and a lot to follow your response and tried even some google search out there but see what I have failed to provide

I tried that but failed

Sure it looks like on mobile there is no a such URL contained with graphql

Well I have tried this method but I have to confirm that I don’t real know how to use it and where to place it for the blocks to function in json data

see what I have tried with a unique url which runs in mobile too and by accessing Dev Tool
I then get this cURL
:point_down: :point_down: :point_down:

curl "https://mobile.facebook.com/search/videos?q=alph^%^5E^%^25^%^5E20lukau&source=filter&isTrending=0&cursor=AbrGld3EHS_WNo-mRElcUSy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gZltnXXwxcWO-yuhVQKpMGS_J-s-oOQeYrvSJyXw_UtwQrLajghNI4SvwwjP4y6S5eRyxXpBCljYJcOdTgyOz7FsmUyU_rtpql25t-ZhVX1ONXwrRcLvSooE3YcRQaYDdsdH6VJEbiYx-6Ocm8eL0mTDtR7Ty757Bs2ktkqBKuHKLLDHbLN0NqUOKPpjME8uYE7MDeX50vET8RlwcfbivRBk99ih7Kp5kdZKru0ZqcSdtDmNiUWUBbtTDw3eZU0LzUBHLgotWRr1pojmGbq0igSmXROm2ZjPPcnBlXvB7WkRzLRAI95qmBBvt49rL6W5C_uevmdv83i6Pnny-6sdPSzo7dP_Tqyr6VpO3aK_lmy-P90NmJlT7BJkjBsStPXrRVK5rDb8y8VIF5Si0aIKXEfNCYxNi12uv8pLx_AfIIa8gwEkzlPyp-6wfzmyMUgWUIuJu7fn1i-7vZOcuY8_5Lq4coFFAMyFBBKVL4KHWfZVudbOl8ViGMMsSt2NsrVyeCDGvHAMq9kJSZn2aOzYKSwnTLyZCTz-xxRqTFDxIwQF0FLbcSf-G6KeMV7xZ51Ii-UlKHSksi_iWCHmUOelJhDtU2G-kw5XYpYXuRbgk8cUHeTxQyvQ4WknWKCVvnsK7bo8OPBA36KH1TAr4t5gckpEsjfjzQ22_IdMhveqbgHOfX_VCmbNDfYqYbXazaaXTBmyiusZ_p4B0AASGbrlhGDY3ek0wlWKGjCegDC2f4i57nENvakSIAG5w02aSTKip3kGbLCXCndlbGgQlSCk9duE91yHjTccsBWYjnvhPJ9iqhPcUpWd6BvySLFBoZ35WRDIthXqnse-FwOBiSw&pn=7&usid=fc04b83b1d1d12e6fb9e4d0f44aba233&tsid" ^
  -H "authority: mobile.facebook.com" ^
  -H "accept: */*" ^
  -H "accept-language: en-US,en;q=0.9" ^
  -H "content-type: application/x-www-form-urlencoded" ^
  -H "cookie: sb=F566YqNAjWJuIAsHBgZfUnCt; datr=F566YksN7MzsKO_Io2ZYiuHB; c_user=100082337996699; usida=eyJ2ZXIiOjEsImlkIjoiQXJpc3JncTFlbTQzdGoiLCJ0aW1lIjoxNjY0MTYyNDY3fQ^%^3D^%^3D; m_page_voice=100082337996699; x-referer=eyJyIjoiL3NlYXJjaC92aWRlb3MvP3E9am9lbCUyMG9zdGVlbiZzb3VyY2U9ZmlsdGVyJmlzVHJlbmRpbmc9MCZzb2Z0PXNlYXJjaCIsImgiOiIvc2VhcmNoL3ZpZGVvcy8^%^2FcT1qb2VsJTIwb3N0ZWVuJnNvdXJjZT1maWx0ZXImaXNUcmVuZGluZz0wJnNvZnQ9c2VhcmNoIiwicyI6Im1vYmlsZSJ9; presence=C^%^7B^%^22t3^%^22^%^3A^%^5B^%^5D^%^2C^%^22utc3^%^22^%^3A1664186463940^%^2C^%^22v^%^22^%^3A1^%^7D; m_pixel_ratio=1; xs=23^%^3A4WVM1TbTCezyVg^%^3A2^%^3A1656397580^%^3A-1^%^3A3810^%^3A^%^3AAcXmgfqNx-9Z08dSVA9SKAvghd7pXflIBKSjtVUIj8g; fr=0PZNhjNItk0kpGZCT.AWUD6IIKUSh8hKxwrMFUML6Dhjw.BjMZPX.yU.AAA.0.0.BjMZPX.AWUBRXF8p5Q; wd=1920x880" ^
  -H "origin: https://mobile.facebook.com" ^
  -H "referer: https://mobile.facebook.com/search/videos?q=alph^^^%^^20lukau&source=filter&isTrending=0" ^
  -H "sec-ch-ua: ^\^"Chromium^\^";v=^\^"104^\^", ^\^" Not A;Brand^\^";v=^\^"99^\^", ^\^"Google Chrome^\^";v=^\^"104^\^"" ^
  -H "sec-ch-ua-mobile: ?0" ^
  -H "sec-ch-ua-platform: ^\^"Windows^\^"" ^
  -H "sec-fetch-dest: empty" ^
  -H "sec-fetch-mode: cors" ^
  -H "sec-fetch-site: same-origin" ^
  -H "user-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36" ^
  -H "x-fb-lsd: UWbjAZNzlklsQek0BjjosH" ^
  -H "x-requested-with: XMLHttpRequest" ^
  -H "x-response-format: JSONStream" ^
  --data-raw "fb_dtsg=NAcPnWZKvv1s5sJqxpkEGGLNXeyvRTIrIBq1gBvp1wiR81LFDLU16gA^%^3A23^%^3A1656397580&jazoest=25477&lsd=UWbjAZNzlklsQek0BjjosH&__dyn=1KQEGiE5q5Ujwh8-t0BBBgS3a6UO3m2i5UfXw9y3q327E2JxK4o1nEhwem0iy1gCwSxu0om782Cwro7ifw5ZKdw5Owk888C0NE2oCwSwaOfxW0D86i0N85G0zE5W0HUvwww5Nxy0gq0Lo6-1FwLw&__csr=&__req=v&__a=AYm_OzSE3Eet62algmptmwThI7alatqWW1mntTQw0tBAtwAedNmlSjPMNn5vqLe2gr0GVFysAWBSs8tfqLuC18Eh7pNkSv-NVpI8WEM-C39e9A&__user=100082337996699" ^
  --compressed

Which by using this site getaix.com I then generate this block

And when runing that block I get this though I tried to mix with

But even though I don’t use Graph API provided that I use only this link

https://mobile.facebook.com/search/videos?q=alph^%^20lukau&source=filter&isTrending=0

I will then get the same response but not in Json Data
Kindly I need your help on how I can solve this

Sorry. I am not sute you can extract info using this method and i donot havr much knowledge in this regard

Please @Taifun and anyone who have knowledge on this kindly I need your help to solve this
:pray:

this seems to be an error message in html format…
try to display it using a webviewer
Taifun

Webviewer? I don’t get the right response