How do I create url_like using graph api?
This URL shows like count that (http://example.com)
https://graph.facebook.com/http://example.com
{
"id": "http://example.com",
"shares": 131086
}
but instead of retrieving the count, I'd like to create a like using the Facebook Graph API.
I believe what you are trying to do is described here in the documentation.
The short version is:
url -F 'access_token=...' \
https://graph.facebook.com/313449204401/likes
Note: To create rather than retrieve the likes, the request needs to be an HTTP POST rather than GET since this service has a RESTful architecture.
Related
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.
When I send the request search?type=page&q=test&access_token=[access_token] to Graph API, the response is empty data. Is there a problem with the access token or is there something missing from the request URI? I also can't seem to find a comprehensive documentation of the search method, only that for places search.
This is the response I'm getting:
{
"data": [
]
}
Facebook made a lot of changes recently:
https://developers.facebook.com/docs/graph-api/changelog/breaking-changes#search-4-4
You can no longer use the /search endpoint with the following object
types:
event
group
page
user
Try this instead :
https://graph.facebook.com/pages/search?q=[PageName]&fields=id,name,link,location&access_token=[access_token]
it worked for me
I'm try to update Account object in Salesforce with the use of WSO2 salesforce rest API connector.as per the documentation is as follow
<salesforcerest.update>
<sObjectName>{$ctx:sObjectName}</sObjectName>
<fieldAndValue>{$ctx:fieldAndValue}</fieldAndValue>
<Id>{$ctx:Id}</Id>
</salesforcerest.update>
does anyone have an idea what should be the format fieldAndValue.
I have tried giving the attribute tag and the value.But it fails.
Haven't used the Rest API so far (only soap), but it looks to me like you have to pass attribut:value to salesforce.
Salesforce doku
According to the wso2 docu I would try it like to pass a json like this.
wso2 docu
"fieldAndValue": {
"name": "wso2",
"description":"This Account belongs to WSO2"
}
or the values inside the like this.
{
"name": "wso2",
"description":"This Account belongs to WSO2"
}
Hope that helps.
I'm new with customization of WSO2 AM.
There is a simple way to get the tags associated to a specific published API?
I would like to customize the logic of workflow subscription step checking some specific tags defined into the Publisher.
WSO2 API Manager Publisher REST API will help you to access API Manager publisher APIs programatically via REST API. There you can get API details by calling following API
https://docs.wso2.com/display/AM1100/apidocs/publisher/#!/operations#APICollectionApi#apisApiIdGet
See sample request details
URL
https://apis.wso2.com/api/am/publisher/v0.9/apis/{apiId}
HTTP Method
GET
Scope
apim:api_view
CURL Example
curl -H "Authorization: Bearer b0982cd2aacd463ff5f63cd5ebe58f4a" http://127.0.0.1:9763/api/am/publisher/v0.9/apis/890a4f4d-09eb-4877-a323-57f6ce2ed79b
In response you will get tags associated with API as follows.
"tags": [
"phone",
"multimedia",
"mobile"
],
Thnaks,
sanjeewa
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?