Is it possible through the Facebook api or sdk to obtain if a user follows or likes a fan page?
I have a database of emails and phone numbers of Facebook users and I want to know if only with this information (email, number) there is an API or an API can be built to know this information.
No it can not be done. In fact, it has never been possible.
In the past (until before the Cambridge analytics scandal ) if you were logged into Facebook you could search for your "friends" by phone or email. This led unscrupulous companies to acquire databases of millions of emails and telephone numbers, and through a scraper they associated them with facebook profiles, and with this crossing of bases they also used them for unethical purposes.
After the scandal, Facebook no longer allowed to do this as a user, logged into the platform and via the web. However, through the API it was never possible , not even before the scandal.
It seems to me that today, if anything
pages_admin
andpages_show_list
,Then you could hit the endpoint
feed
of this one, and through that you would get the posts, and from the posts you would get the comments and reactions, and from these you would get theuser_id
. However, these areuser_id
specifically related to that page. The same person has anotheruser_id
when interacting with another page, just so you can't combine those ids with your own databases.