Retrieving specific data from a facebook api chart

Is there any way how to receive any messages of a certain type from a facebook news feed via an api chart? For example, on my news feed, I have statutes, links, photos, vidoes, etc. I just want to get with type = status above the api graph .. I saw some parameters getting in the documentation, but nothing like that? type = link..So I tried / me / home? type = link, but it is not surprising that it did not work: D

So does anyone know how to do this? I can filter it in my PHP application, but then I need to get additional data. When I have 20 posts and only 10 will be statuses, do I need to add 10 remaiming? It is too possible, but I do not know how to do it: D

Please, help..! Thank!

+3
source share
3 answers
Hey Sima, I understand exactly what you're talking about.

There is no way in Graph to do what you want (at least I found). I do exactly what you want using FQL and filters. You can filter the channel by photos, videos and other parameters.

1) query the filter_stream table to get a list of filters.

SELECT name,filter_key FROM stream_filter WHERE uid=me()

2) Filter the channel.

SELECT xxx FROM stream WHERE filter_key='app_xxxx'

Link: http://developers.facebook.com/docs/reference/fql/

+4
source

http://graph.facebook.com/<UID> /feeds?limit=20 ( , <UID> )

This will return all the wall channels. If you want to limit this to wall files only, I think you can do it programmatically. You can figure it out by looking at the line.

+1
source

Source: https://habr.com/ru/post/1782094/