Facebook Graph API Explorer Tool Overview

Поділитися
Вставка
  • Опубліковано 31 лип 2024
  • In this video we learn about the Facebook Graph API Explorer tool. It allows us to test out any Facebook Graph API endpoint and see what the response data looks like. With this tool, you can find the exact endpoint you need and test it out before writing any code!
    --
    Facebook Graph API Explorer Tool ⇝ / explorer
    Facebook Graph API Documentation ⇝ / graph-api
    --
    Discord ⇝ / discord
    TikTok ⇝ / justinstolpe
    GitHub ⇝ github.com/jstolpe/
    Instagram ⇝ / justinstolpe
    Twitter ⇝ / justin_stolpe
    LinkedIn ⇝ / justin-stolpe-3bb05426
    Reddit ⇝ / jstolpe
    Twitch ⇝ / jstolpe
    Facebook ⇝ / stolpejustin
    Website ⇝ justinstolpe.com
    SoundCloud ⇝ / justin-stolpe
    --
    Chapters
    0:00 Intro
    0:28 Overview
    0:50 Requirements
    1:42 Facebook Login
    2:15 Access Token
    3:00 Get Facebook User Id, Name, and Picture
    3:29 Get Facebook User Email
    4:30 Adding New Permissions
    5:39 Facebook Timeline Endpoint
    6:23 Facebook Post Endpoint
    6:46 Request History
    7:12 Debug Info
    7:47 Outro
    --
    #programming #developer #coding

КОМЕНТАРІ • 52

  • @wilsonwiradiwirya6851
    @wilsonwiradiwirya6851 6 днів тому +1

    Thank you Justin, very helpful, success for you

  • @simonebrazzi287
    @simonebrazzi287 2 роки тому +2

    Very useful video, I have seen a lot about graph api, but this is simple and direct to the solution

  • @labanjohnson
    @labanjohnson 2 роки тому +1

    Lol this into. Thanks for not being boring!

  • @padmanabhabrao1773
    @padmanabhabrao1773 Рік тому

    thank you so much. very very user ful

  • @anaselmakhloufi2180
    @anaselmakhloufi2180 Рік тому +1

    Hi Justin thank you

  • @hdfgfdgdfgdf
    @hdfgfdgdfgdf 2 роки тому

    Hi Justin, hope you're doing well. Do you know how to get something like a profile picture from a public facebook page?

  • @cjchin4547
    @cjchin4547 2 роки тому

    Hi Justin, thank you for the video. But how can I query other people's information? Let's say it is a public page for that page's information. Will it work if I stay in developer mode?

    • @justinstolpe
      @justinstolpe  2 роки тому

      No you need to be in live mode unless you have a user that is admin on that page. Only admins and test users have access in dev mode.

  • @pedrojesusrangelgil5064
    @pedrojesusrangelgil5064 2 роки тому +2

    Justin very good info...I'm following your steps but in my case "Permissions" does not show "user_birthday", "user_posts"...any idea why is that? Thanks!

    • @justinstolpe
      @justinstolpe  2 роки тому

      make sure you are requesting those permissions when you are requesting the access token.

    • @pedrojesusrangelgil5064
      @pedrojesusrangelgil5064 2 роки тому +1

      @@justinstolpe Thanks for your reply, "user_birthday", "user_posts" aren't in the "Permissions" options. The only "user" permissions options displayed are: "user_messenger_contact", "pages_read_user_content"

    • @Nik-tm6vq
      @Nik-tm6vq 2 роки тому

      @@pedrojesusrangelgil5064 version difference?

    • @edsonang
      @edsonang 2 роки тому

      @@pedrojesusrangelgil5064 I am having the same issue, i am trying to access the feed but there are no such permission of "user_posts", and even if i tap into the feed, it is empty

  • @dperezc88
    @dperezc88 2 роки тому

    Justin other question for you 😬, is there a way, on the instagram graph api, to get permission of a business account that doesn't belongs to me to get their insights data?

    • @justinstolpe
      @justinstolpe  2 роки тому +2

      Yeah, they have to authorize your app so you can get a user access token for them and query their data. I have a video in my IG Graph API playlist for getting user access tokens.

  • @pataQtasuxumuxu
    @pataQtasuxumuxu 6 місяців тому

    A very informative video indeed. I have a question though. Is it possible to get events that are happening near me? The same way I see events in the discover tab in my facebook page. Thank you

    • @justinstolpe
      @justinstolpe  6 місяців тому

      I have not worked with events but I would assume so since you can use location with other endpoints.

  • @eatsamulhaq4084
    @eatsamulhaq4084 2 роки тому

    Hi Justin. Great video but I want to know how can I get other people public information with Graph API?

    • @justinstolpe
      @justinstolpe  2 роки тому

      New video out for it here ua-cam.com/video/8tu4DPSIQyA/v-deo.html hope this helps!

  • @clarasexy6618
    @clarasexy6618 Рік тому

    Hi Justin My Page is telling me this when i tried uploading Videos (#190) this method must be called with a page access token please what should i do?

    • @justinstolpe
      @justinstolpe  Рік тому

      Maybe your token is a user access token. Try getting a page access token and using that instead.

  • @dperezc88
    @dperezc88 2 роки тому +1

    Thanks!
    There is something is not clear to me, is it possible to get permission for all instagram insights in developer mode? it would be just for my instagram account or can I get access to other creator/business account data with their permission?

    • @justinstolpe
      @justinstolpe  2 роки тому +1

      In dev mode all permissions should be available but to go live mode you need to submit your app for review. Then you can ask users to authorize your app and get a user access token so you can quiery their data with the api.

    • @dperezc88
      @dperezc88 2 роки тому

      @@justinstolpe I tried to follow along with your video and when I asked for birthday it didn't give it to me but no debug message appear, and I tried to add the birthday permission but i doesn't appear, at least for me. Do you have and idea why?

    • @dperezc88
      @dperezc88 2 роки тому +1

      never mind, it was because I create a business type app, with the consumer option I had no problem

    • @justinstolpe
      @justinstolpe  2 роки тому

      @@dperezc88 Glad you figured it out!

    • @sammatsiko8048
      @sammatsiko8048 2 роки тому

      @@justinstolpe Thanks for the video. In dev mode, i cant seem to find "Page Public Content Access" permission to view posts by different pages. Any ideas?

  • @sezaitunca9077
    @sezaitunca9077 2 роки тому +1

    Hi Justin, How can I get Facebook groups comments with Graph API? Thanks

    • @justinstolpe
      @justinstolpe  2 роки тому +1

      I have not used the api with groups before but found this documentation developers.facebook.com/docs/graph-api/reference/v12.0/group/feed I might look into this at some point and code and example.

  • @xihuny
    @xihuny Рік тому

    I get the following message when I go to explorer "Sorry, the link you followed may be broken, or the page may have been removed." Why?

    • @justinstolpe
      @justinstolpe  Рік тому

      here is the link to the explorer developers.facebook.com/tools/explorer/

    • @xihuny
      @xihuny Рік тому

      @@justinstolpe When I open that link it says "Sorry, the link you followed may be broken, or the page may have been removed."

    • @justinstolpe
      @justinstolpe  Рік тому

      @@xihuny hmm not sure then cause it loads for me

    • @xihuny
      @xihuny Рік тому

      @@justinstolpe Yes. I tried a lot of methods but nothing works.

  • @ShioTV703
    @ShioTV703 Місяць тому

    it's very useful tutorial but in my case when i'm trying to fetch posts it returns an empty array:( what can i do?

    • @justinstolpe
      @justinstolpe  24 дні тому

      maybe use the Facebook graph api debug tool and the graph api explorer to do further testing with your token and endpoint.

    • @ShioTV703
      @ShioTV703 24 дні тому

      @@justinstolpe It returns an empty array exactly there and on my computer as well

  • @YerlanOspan
    @YerlanOspan 2 роки тому

    Please, why search in public posts?

  • @KrishnaDasPC
    @KrishnaDasPC 2 роки тому

    is search api working now?

    • @justinstolpe
      @justinstolpe  2 роки тому +1

      yeah but depends on what exactly you are searching I think. Have not worked with searching on the API yet.

    • @KrishnaDasPC
      @KrishnaDasPC 2 роки тому +1

      @@justinstolpe I couldn’t find anything on keyword based search now on graph api. Like in twitter. If you find any useful links please share. Or if you know any official email id of the fb support team.

  • @johnmcaulay4348
    @johnmcaulay4348 2 роки тому

    Thanks bro, this is the intro I needed, I was mindlessly clicking through the app / developer page trying to figure it out for a couple of hours before I stumbled across this video.
    I have a question. I'm building some digital signage for a local Rotary group and they want their Facebook posts to show from their page on the signage. The display is totally non-interactive and just displays some info from various sources (Prismic, weather API etc). The info is broken up into boxes and the boxes automatically scroll when there is too much info to fit in the associated box.
    As I delve into this Facebook API I can't help but think that the Facebook API isn't going to be able to help me. I'm concerned about tokens expiring, and given this project is set to run on a Raspberry Pi (i.e. the web server will be hosted on the Pi and the Pi will auto run Chromium to display the page in full screen mode) how will the app review process go for me?
    Is there a way to get a "never expiring token" I've found a few tutorials on how to do this, but it seems they are a little old and this may no longer be possible. In that case is there a way to get a "refresh token" which I've used with other APIs in the past just as the MS Graph API etc.
    Any insight would be greatly appreciated.

    • @justinstolpe
      @justinstolpe  2 роки тому

      Glad you found the video helpful. In the graph explorer tool you can extend the token to be long lived. Otherwise,there is a refresh token endpoint you can hit as well. As long as the token is being use though it should be getting extended. The ask for displaying facebook posts should be doable with the api.

    • @johnmcaulay4348
      @johnmcaulay4348 2 роки тому +1

      @@justinstolpe thanks so much for the info!

    • @johnmcaulay4348
      @johnmcaulay4348 2 роки тому +1

      @@justinstolpe thanks mate, I got this all sorted out finally, I really appreciate your help!
      Project is done!

  • @Johnessy
    @Johnessy Рік тому

    Is it possible to get information about other pages without them needing to give permissions like views, titles, videos, etc. All info about videos really?

    • @justinstolpe
      @justinstolpe  Рік тому

      Most of the time they will need to grant permissions

  • @Xmasparol
    @Xmasparol Рік тому +1

    The graph catalog api documentation is garbage