Facebook search api to get Id of pages by searching name

439 Views Asked by At

I am using the Facebook api, endpoint "search", to get id of any page that i search.

API URL: https://graph.facebook.com/search SEARCH_PARAMS:

  • access_token: [User access token]
  • q: "Bottom of the Hill"
  • type: page

and i'm getting { data: [] } as response every time.

Is this api still valid or working today? Is there a specific permission i'm missing? Am i using the correct api? Is there another way to do this? if so what permission i will need to use it?

1

There are 1 best solutions below

0
kaleb4eg On

You should use developers.facebook.com/docs/pages/searching endpoint, but for that you will need have approved one of next features: 'Page Public Content Access' or the 'Page Public Metadata Access'. And both of them are not working in Dev mode at all :)