Error doing a keyword search using Facebook Graph API V2.5

I am currently trying to use Facebook Graph API. As a rookie posting below questions. Please guide me...

I am using the below URL to do a simple test on a public keyword search using Facebook Graph API V2.5. I am just trying to do a simple keyword search as defined in the Guide.

I am using the Graph API Explorer and generated "user access token"

Request(with <> for accesstoken: https://graph.facebook.com/search?q=mark&access_token= Response: { "error": { "message": "Invalid OAuth access token.", "type": "OAuthException", "code": 190, "fbtrace_id": "GNqBnVm/8zd" } }

Request(with out <> for access token: https://graph.facebook.com/search?q=mark&access_token=myUserAccessToken Response: { "error": { "message": "(#11) Post search has been deprecated", "type": "OAuthException", "code": 11, "fbtrace_id": "GPAno+jLwsu" } }

Please help me understand what wrong am I doing here? the example is from the guide though. Q:If it is deprecated, what is the newer way of doing it? Q: And what is the type of Access Token need to be used? Q: Is it mandatory to also provide the appId and secret key as well, if I am not creating any app? Q: Should I use <> for access token in the URL? The response is different with and without.

Appreciate your responses.

Thank You! Danda

Answers


Public Post search is no longer available

Source: https://developers.facebook.com/docs/apps/changelog#v2_0

There is no newer/other way. It just does not exist anymore.

There is only this, but you canĀ“t apply - you can only work with one of the partners: https://developers.facebook.com/docs/keyword_insights


Need Your Help

How to use JMH with gradle?

gradle jmh

I want to use JMH, an OpenJDK microbenchmark tool, with gradle. However, Im getting the NPE on compilation. On the other hand, JMH works when using from maven.

How can get selected items of select form in moodle

php forms moodle multi-select

I have two php page. first one is chart1.php. in this page,i create an object of getitems_form form that is defined in chartreport_getitems_form.php, and process submited values from that form. this