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
Thank you Justin, very helpful, success for you
Very useful video, I have seen a lot about graph api, but this is simple and direct to the solution
Thanks!
Lol this into. Thanks for not being boring!
thank you so much. very very user ful
Hi Justin thank you
Hi Justin, hope you're doing well. Do you know how to get something like a profile picture from a public facebook page?
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?
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.
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!
make sure you are requesting those permissions when you are requesting the access token.
@@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"
@@pedrojesusrangelgil5064 version difference?
@@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
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?
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.
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
I have not worked with events but I would assume so since you can use location with other endpoints.
Hi Justin. Great video but I want to know how can I get other people public information with Graph API?
New video out for it here ua-cam.com/video/8tu4DPSIQyA/v-deo.html hope this helps!
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?
Maybe your token is a user access token. Try getting a page access token and using that instead.
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?
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.
@@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?
never mind, it was because I create a business type app, with the consumer option I had no problem
@@dperezc88 Glad you figured it out!
@@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?
Hi Justin, How can I get Facebook groups comments with Graph API? Thanks
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.
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?
here is the link to the explorer developers.facebook.com/tools/explorer/
@@justinstolpe When I open that link it says "Sorry, the link you followed may be broken, or the page may have been removed."
@@xihuny hmm not sure then cause it loads for me
@@justinstolpe Yes. I tried a lot of methods but nothing works.
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?
maybe use the Facebook graph api debug tool and the graph api explorer to do further testing with your token and endpoint.
@@justinstolpe It returns an empty array exactly there and on my computer as well
Please, why search in public posts?
is search api working now?
yeah but depends on what exactly you are searching I think. Have not worked with searching on the API yet.
@@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.
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.
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.
@@justinstolpe thanks so much for the info!
@@justinstolpe thanks mate, I got this all sorted out finally, I really appreciate your help!
Project is done!
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?
Most of the time they will need to grant permissions
The graph catalog api documentation is garbage