Facebook graph api: How to get all own properties - facebook-graph-api

I want get all properties in my business like this list apps in https://business.facebook.com/pub/properties
The api response has property_name and property_id.

I finally found this api:
https://graph.facebook.com/v14.0/{business_id}/owned_apps?access_token={access_token}&fields=id,name,property_id

Related

404 error with Skyscanner rapid api to get flight infos

I can not get response from skyscanner api. Did I write something wrong?
https://skyscanner-skyscanner-flight-search-v1.p.rapidapi.com/apiservices/referral/v1.0/UK/GBP/en-GB/EDI/LHR/2021-05-26/2021-05-26?shortapikey=ra66933236979928&apiKey={shortapikey}
The endpoint you're trying to access doesn't exist. That's why it's returning 404.
Visit the homepage of Skyscanner API on RapidAPI Hub and take a look at the different endpoints it supports.
I believe you want an endpoint that return fligh information. Check out the endpoints available in the Browse Flight Prices category and pick a best one for you according to your needs.

facebook graph api pages post message

I wanted to make a facebook API request that will post a message to page that I am admin of. Here i found out how can i do that but after trying it out in facebook graph api explorer with this scheme:
graph.facebook.com/page-id/feed
?message=Hello&access_token=your-access-token"
assuming I have a developer account linked to my page and publish_pages and manage_pages permissions are enabled and page-id and acces-token are replaced with my real ones. The problem is that I get a response of latest post on that website, the same as if I would write just graph.facebook.com/page-id/feed and there is no new post on my page.
I dont know if the recent facebook API update removed or modified that or if its just not possible.
trying it out in facebook graph api explorer with this scheme
graph.facebook.com/page-id/feed?message=Hello&access_token=your-access-token
You are making a GET request here - and GET is for reading data, not creating it.
Creating data requires a POST request. So you can either switch the request method from GET to POST via the dropdown there, and then click + Add parameter to add your parameters and values;
or you can add &method=post to the end of your GET request query string here - that is a way the API offers to explicitly overwrite the request method in environments, where you can only make GET requests.

WSO2 APIM : Get API Rating and Business Information through Store REST API

I have a custom page where I obtain Published API list using WSO2 Store Restful API
https://docs.wso2.com/display/AM220/apidocs/store/#!/operations#APICollection#apisGet
The problem is the returned result does not includes API Rating and Business Information whereas the Jaggery API that has been used by the default API Manager UI does include it. Is there any way to configure it so the REST API returns that data?
If I use the jaggery API instead, it is cookie based while I am using OAuth2 OIDC Service Provider of the IS. I cant obtain API that has visibility to only its own domain by passing access token to the Authorization header.
APIM Version: 2.2
Please Advice. Thanks!
There is no such a way which will change the output response of defined APIs.
If you want to do that, get source code of wso2 from github & edit the APIs & use the edited source to deploy your application. (But this will add lots of maintenance issue)
The quickest way is to call the get details of api.
It will return the business information object as well as below:
"businessInformation": {
"technicalOwner": "John Doe",
"technicalOwnerEmail": "architecture#pizzashack.com",
"businessOwner": "Jane Roe",
"businessOwnerEmail": "marketing#pizzashack.com"
},
Here you will get the heavy response as it returns the complete swagger definition as well.

How to send data through url params in WSO2

I would like to know how to add url params in wso2 for a url similar to http://localhost/mytestapi/123456 where 123456 is the id I want to pass onto the mytestapi api.
You can define the API and Endpoint like below. I gave a sample API with Endpoint mapping. For more information, please check on this documentation on Map the Parameters of your Backend URLs with the API Publisher URLs

Facebook Graph API search returns empty data for some Keywords

I'm making facebook graph api call for search user. Query is https://graph.facebook.com/search?q=vijay&type=user&access_token=MY_ACCESS_TOKEN.
I got empty response like {"data": []}.
But I'm make same API call with full name of user https://graph.facebook.com/search?q=vijaykrishnan&type=user&access_token=MY_ACCESS_TOKEN. Hear I got correct response.
I tried it via my application and Graph API Explorer. I got same result. Is there any issue in facebook side?