Facebook Topic Search API not working - facebook

I need to build an application which needs to search in public Facebook posts.
As I search for solution I found the Topic Search API: https://developers.facebook.com/docs/topic_search/v2.4
I tried this API using a Facebook Application but getting this error:
{
"error": {
"message": "(#3) Application does not have the capability to make this API call.",
"type": "OAuthException",
"code": 3
}
}
How can I gain access to use the search API?

As far as I know this is not a public API (which should be documented by FB), so this means that you cannot use this with your own apps. I guess specific app_ids from partners are actively whitelisted.

Related

Facebook User Profile API Not Working for Few Users

This is in regards with the Facebook User Profile API (https://developers.facebook.com/docs/messenger-platform/identity/user-profile/). Previously I was able to access details of all the users who messaged our FB Messenger Bot using their USER_ID. But since a couple of days, I'm not able to access details of all the users. I'm only able to access details of few of them.
Example: This User (3200103453356504) regularly texts me, so accordingly to the documentation and how it used to work previously, I should be able to access his information but when I try to access it. It shows the following error:
{
"error": {
"message": "Unsupported get request. Object with ID '320010123356504' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
"type": "GraphMethodException",
"code": 100,
"error_subcode": 33,
"fbtrace_id": "AFARcLffkfOE55crL3qvJAL"
}
}
But this behavior does not exist for all the users. For ex, For this User ID - 2238372056224053 - its working perfectly fine and returning the correct response with first_name, last_name etc.,
Can you please point out what exactly is the issue.
Thank you,
Murtuza

Facebook Places Search API (Graph API) not working

I am trying to implement facebook graph Places Search API as per following documentation
https://developers.facebook.com/docs/places/web/search/
But it always give me an error which says:
{
"error": {
"message": "(#33) This object does not exist or does not support this action",
"type": "OAuthException",
"code": 33,
"fbtrace_id": "A0LsjgTKgbRETUiLlmPQids"
}
}
I am trying it on facebook Graph API explorer tool. Following is the screenshot:
Following is the screenshot if my developer console
I already wasted lot of time with this. Please help
https://developers.facebook.com/docs/graph-api/changelog/version6.0
We have introduced a new reviewable feature named Page Public Metadata Access. Page Public Metadata Access allows read-only access to the Pages Search API as well as a set of Page fields and edges that would normally require the Page Public Content Access feature. Apps that have requested only these fields and edges on Pages in the past have been automatically approved for Page Public Metadata Access and will lose approval for Page Public Content Access on May 3rd, 2020.
You need to request the "Page Public Metadata Access" feature via Facebook's app review process. If you have access to the pre-6.0 API versions, using that will work as a temporary fix, but you'll eventually need the permission.

How to get comments that rate the service from many Facebook pages (from restaurants) for sentiment analysis in 2018? (Twitter is not good enough)

I need to know If I need to give up on Facebook and just use Twitter for my purposes (if so, just tell me to use Twitter). I want to use pages I don't own.
I am doing this same process in Twitter, but Twitter doesn't have pages that rate places, services or things in general with comments and a rating system (or atleast the ones I need from one city with specific places).
Twitter has much more liberty to get comments from any #user_name but its not good enough for a sentiment analysis specific assignment I need to do. I am trying to get facebook comments or posts from multiple facebook pages (pages from restaurants) based on the comments used for ratings and download them to a csv or database with any program or by coding (Preferably Node.js, javavascript or php) for sentiment analysis (this is very easy with Twitter!). How can I achieve this with all the policies and restrictions Facebook has in 2018??
I have some questions with reference to facebook:
Will an app_id and app_secret by making an app in 2018 give me an access token to get the comments I need from ANY page and download them with graph api?
Is facebook graph API the only way to get comments or posts to download them?
Why doesn't any type of code or programs before and even right now in 2018 work anymore to get comments? (I get the errors below with either programs or graph api).
I tried to use Graph API from facebook for 2 different pages using GET and POST and I get some errors that I didn't have trouble with 9 months ago (this happens with every page I try to search with code in node.js, javascrip, php or the graph API from facebook):
GET/v3.1/OMENbyHPLatam/feed
{
"error": {
"message": "(#10) To use 'Page Public Content Access', your use of this endpoint must be reviewed and approved by Facebook. To submit this 'Page Public Content Access' feature for review please read our documentation on reviewable features: https://developers.facebook.com/docs/apps/review.",
"type": "OAuthException",
"code": 10,
"fbtrace_id": "CXg962vUvjY"
}
}
POST/v3.1/minecraft/feed
{
"error": {
"message": "(#200) Requires either publish_to_groups permission and app being installed in the group, or manage_pages and publish_pages as an admin with sufficient administrative permission",
"type": "OAuthException",
"code": 200,
"fbtrace_id": "EZvhzuk/UHL"
}
}

How to gather public posts from Facebook for text analytics and real time streaming?

I tried using the Facebook Graph API for searching Facebook public posts. Since it is depreciated for v2.6, I tried the following command as given as an answer in this post:
https://graph.facebook.com/v1.0/search?q=my_search_query&type=post&access_token=my_access_token,
but gives the following error:
"error": {
"message": "(#11) Post search has been deprecated",
"type": "OAuthException",
"code": 11,
"fbtrace_id": "AwAxoS4unJR"
}
} So it seems that I cannot do Post search any longer on Facebook Graph API. Moreover, I tried using the Public Feed API, but I get the following message on their API page:
Access to the Public Feed API is restricted to a limited set of media publishers and usage requires prior approval by Facebook. You cannot apply to use the API at this time.
Thus, in order to get the data of public posts, I can think of only these two options:
Collaborate with these companies to get the post data
Scrape the Facebook website
Since I do not have enough budget to collaborate with some company, and I want to keep the scraping option at the end, is there any other option of getting public posts of Facebook?
Scraping is not allowed on Facebook: https://www.facebook.com/apps/site_scraping_tos_terms.php
The only option is to collaborate with media partners.

Access inbox/messages from Facebook account using api v2.6 still possible?

I am using v2.6 of Facebook API, trying the requests in GraphAPI interface. My goal is to get the messages from the account but i always receive this error message:
"error": {
"message": "(#100) Tried accessing nonexisting field (messages) on node type (User)",
"type": "OAuthException",
"code": 100,
"fbtrace_id": "DdRsSIGtBNX"
}
This is the url.. me/messages. Below is a screenshot of the permissions that i selected when creating the access token used in the request.
I know this was possible in the older versions, but I am not sure anymore if we can do it now with the last version(everytime i select a method from the Facebook docs it does not take into consideration the api already chosen and i think this is confusing). Does anyone know if getting messages/conversation still possible with v2.6? Thank you.
No, it is not possible any more to get access to a user’s messages - that has been removed with API v2.4
https://developers.facebook.com/docs/apps/changelog#v2_4_deprecations