简体   繁体   中英

facebook graph api search permission

I try to search using graph api and get error message Application does not have the capability to make this API call.

What are the needed permissions and how to get them

FB.api(
              "/search",
            {
                access_token:'XXXXXXXXXX',
                "type": "topic",
                "q": "San Francisco Events",
                "fields": "id,name,page"
            },
            function (response) {
                if (response && !response.error) {
                    console.log(response);
                }
                else
                {
                    console.log("Error");
                    console.log(response);
                }
            }

Topic search isn't publicly available, that's why it is listed under "Media Solutions" in the Graph API docs. Afaik it's currently not possible to apply for it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM