Which permission is required to search topic on graph api - facebook

I want to search for a topic using facebook graph api but whenever I do https://graph.facebook.com/v2.7/search?q=search+string&type=topic&access_token={app_access_token} I get the following the following error :
{
"error": {
"message": "(#3) Application does not have the capability to make this API call.",
"type": "OAuthException",
"code": 3,
"fbtrace_id": "AbVC0S7WD3+"
}
}
I have searched over internet for two days for the solutions and even asked on #facebook channel over IRC but got no results so far.

Related

Query Search FB with postman

i'm trying fb query search on postman
https://graph.facebook.com/pages/search?q=Facebook
&fields=id,name,location,link
&access_token={access-token}
and it returns this error
{
"error": {
"message": "(#100) Page Public Metadata Access requires either app secret proof or an app token",
"type": "OAuthException",
"code": 100,
"fbtrace_id": "A0DGbr5CxQEimI0NDK9UyZj"
}
}
how do i fix this error? i'm new at consuming social media API, and i've got standard apps on developers.faceboook.com

Errors with Facebook API

I am trying to implement the jobs API by facebook on my webpage and while trying to get the recruiting managers on the Graphs API get an error as below :
Request : me/recruiting_managers
Response :
{
"error": {
"message": "(#3) Application does not have the capability to make this API call.",
"type": "OAuthException",
"code": 3,
"fbtrace_id": "Ae0HxroItowuqypeuULh2J0"
}
}
I submitted the associated form thrice and sent them emails but haven't got any replies. Can anyone help me with this error, please?
It seems you have not authenticated, and therefore do not have an active token, which would then be passed with this request in order to authorize it.

How to implement Graph-API to get data of Facebook Workplace

I have implemented Facebook API in our APP by using Graph-API. Now I am trying to implement FB-workplace in my application, but i am not able to get any workplace details by using graph-API. I am having my access_token.
I am using FB Graph-API explorer and Postman, but from both the ways i am getting nothing/Error. So What would i change in this to get that data or any more permission needs to update.
Please help in this.
{
"error": {
"message": "Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
"type": "GraphMethodException",
"code": 100,
"error_subcode": 33,
"fbtrace_id": "AjRPf0Xnp7tkluvI9kWo"
}
}

Scraping facebook posts

I want to scrape facebook posts with certain keywords, for example "coca-cola".
Graph api search endpoint (/search?q=coca-cola) does not work, it's returning error like
{
"error": {
"message": "An unknown error has occurred.",
"type": "OAuthException",
"code": 1,
"fbtrace_id": "HRj+AhMuMHw"
}
}
I know, that it is also possible to scrape data with selenium using this endpoint: https://www.facebook.com/search/str/coca-cola/stories-keyword/stories-opinion, but I think browser will hang out when DOM tree will be very large. So, is there any other way to do this?
Thank you in advance.

Search users from Facebook Graph API

I'm trying to search for users on facebook with an app token. Here's the endpoint that I'm accessing with the graph explorer (I've tried both app and access tokens):
https://graph.facebook.com/v2.5/search?q=foo
Here's the error that I'm receiving:
{
"error": {
"message": "An unknown error has occurred.",
"type": "OAuthException",
"code": 1,
"fbtrace_id": "BbsgVF64X28"
}
}
Any idea what I'm doing wrong?
Look at the docs at
https://developers.facebook.com/docs/graph-api/using-graph-api/v2.5#search
You need to specify a type parameter to be able to use the search, like
https://graph.facebook.com/v2.5/search?q=foo&type=user