I'm trying to delete a request via Graph API Explorer. Request is generated by my mobile application. Of course, I use an access token from this application. And I've got the following error:
{
"error": {
"message": "(#2) Failed to delete any app request",
"type": "OAuthException",
"code": 2
}
}
The request exists, I can GET it.
The issue was that I tried to delete a request that didn't belong to me.
Related
I'm sending request to appassets edge endpoint, using user access token (I'm the owner ``of the app):
curl -i -X GET \
"https://graph.fb.gg/v15.0/1172368406965046/appassets?access_token=USER_ACCESS_TOKEN"
Instead of a list of assets I'm getting following error:
{
"error": {
"message": "Tried accessing nonexisting field (appassets) on node type (Application)",
"type": "FacebookApiException",
"code": 100,
"fbtrace_id": "AaJwxbXg7TKHb0EE53NLr0K"
}
}
How can I reach my app assets?
Currently, I am developing a messenger bot. For this purpose, I created a facebook app from facebook developer platform.
Now I need to subscribe facebook pages to my app using graph API, so for any message from the page, I can respond from my server.
I find one in Graph API Doc.
When I try it in the graph API explorer, I am encountering an error.
I followed the following steps:
1. Create a new app and page.
2. Get the page access token from my app.
3. In graph api explorer, Select my desired facebook app(newly created) from the drop-down menu.
5. When I was getting the user access token, made sure, I took permission for both 'publish_pages' and 'manage_pages'
6. Replaced the {page-id} with 'page access token'
I am getting this error:
{
"error": {
"message": "(#803) Some of the aliases you requested do not exist: EAAfIhxeHRsYBAD3VNK3BzOqkyhxOL8aZBPnUVZA94olvxYrZA93rNGKwUIJFFhS91ogEbBBlGQJxYGSyJe5I1dNntxsPnqNYFkoI1NcEroa4TunvZCWZAZA06U0UcpvUu5HgBIifGqZCWTDcUH6sCe7BCWdljg5LU7OjwbRgyLe2nCILijnuGqH",
"type": "OAuthException",
"code": 803,
"fbtrace_id": "BUv80nDC3jo"
}
}
I sent this code from graph API Explorer:
curl -i -X GET \
"https://graph.facebook.com/v3.1/EAAfIhxeHRsYBAD3VNK3BzOqkyhxOL8aZBPnUVZA94olvxYrZA93rNGKwUIJFFhS91ogEbBBlGQJxYGSyJe5I1dNntxsPnqNYFkoI1NcEroa4TunvZCWZAZA06U0UcpvUu5HgBIifGqZCWTDcUH6sCe7BCWdljg5LU7OjwbRgyLe2nCILijnuGqH/subscribed_apps?access_token=EAAfIhxeHRsYBAD8dPXQ6jR06FPFhsECXlALtumbecpEV1iZAk1BRFd580J3NEZBrH8mmn7DWZA9NqlefpskmpMjbZA7HrmdmLVhWmOsHOHzVS1nHLNizqX8ODAItZARTiIig34NZCbXnfwOyRqewiKvnh6fMIwEA4sVICGtFTEJXdsVUiTkZAkDrAI9pbZAAu5KQW5f6ZAktXvQZDZD"
FULL DEBUG INFORMATION:
==== Query
curl -i -X GET \
"https://graph.facebook.com/v3.1/EAAfIhxeHRsYBAD3VNK3BzOqkyhxOL8aZBPnUVZA94olvxYrZA93rNGKwUIJFFhS91ogEbBBlGQJxYGSyJe5I1dNntxsPnqNYFkoI1NcEroa4TunvZCWZAZA06U0UcpvUu5HgBIifGqZCWTDcUH6sCe7BCWdljg5LU7OjwbRgyLe2nCILijnuGqH/subscribed_apps?access_token=<access token sanitized>"
==== Access Token Info
{
"perms": [
"manage_pages",
"pages_manage_instant_articles",
"pages_show_list",
"publish_pages",
"read_page_mailboxes",
"pages_messaging",
"pages_messaging_phone_number",
"pages_messaging_subscriptions",
"public_profile"
],
"user_id": 1077587462403179,
"app_id": 2190807377856198
}
==== Parameters
- Query Parameters
{}
- POST Parameters
{}
==== Response
{
"error": {
"message": "(#803) Some of the aliases you requested do not exist: EAAfIhxeHRsYBAD3VNK3BzOqkyhxOL8aZBPnUVZA94olvxYrZA93rNGKwUIJFFhS91ogEbBBlGQJxYGSyJe5I1dNntxsPnqNYFkoI1NcEroa4TunvZCWZAZA06U0UcpvUu5HgBIifGqZCWTDcUH6sCe7BCWdljg5LU7OjwbRgyLe2nCILijnuGqH",
"type": "OAuthException",
"code": 803,
"fbtrace_id": "BUv80nDC3jo"
}
}
==== Debug Information from Graph API Explorer
- https://developers.facebook.com/tools/explorer/2190807377856198?method=GET&path=EAAfIhxeHRsYBAD3VNK3BzOqkyhxOL8aZBPnUVZA94olvxYrZA93rNGKwUIJFFhS91ogEbBBlGQJxYGSyJe5I1dNntxsPnqNYFkoI1NcEroa4TunvZCWZAZA06U0UcpvUu5HgBIifGqZCWTDcUH6sCe7BCWdljg5LU7OjwbRgyLe2nCILijnuGqH%2Fsubscribed_apps&version=v3.1```
[1]: https://developers.facebook.com/tools/explorer/?method=GET&path=%7Bpage-id%7D%2Fsubscribed_apps&version=v3.1
I am trying to upload data to google cloud storage using rest api
According to the documentations we can use this api to send data to cloud store
https://www.googleapis.com/upload/storage/v1/b/[Bucket
name]/o?uploadType=media&name=[object name]
and sending auth,content-type and content-length as header
auth can be genereted using service accounts which i generated but still unable to upload the file
i am getting this error
{
"error": {
"errors": [
{
"domain": "global",
"reason": "authError",
"message": "Invalid Credentials",
"locationType": "header",
"location": "Authorization"
}
],
"code": 401,
"message": "Invalid Credentials"
}
}
one of the correct way to do it would be
https://www.googleapis.com/upload/storage/v1/b/[bucket_name]/o?key={your_key}&uploadType=media&name=happy3
you can generate key from api screen in google console
other way is to go to outh2.0 playground and send request from there
it will generate header files accordingly
Please provide the solution for this (I am new to jersey and postman). I tried with below link but unable to share the file: https://www.hipchat.com/docs/apiv2/method/share_file_with_room
I attached screen shots, which I tried from postman.
Note: I used API access token with send message scope.
I am getting below error as response:
{
"error": {
"code": 400,
"message": "No file was found in the request. See https://www.hipchat.com/docs/apiv2/method/share_file_with_room for an example",
"type": "Bad Request"
}
}
When retrieving my playlists statistics using the Youtube Analytics API, quite often the API returns error 500
{
"error": {
"errors": [
{
"domain": "global",
"reason": "internalError",
"message": "Unknown error occurred on the server."
}
],
"code": 500,
"message": "Unknown error occurred on the server."
}
}
The request that I make is authorized, by turning on the Authorize requests using OAuth 2.0 in the api explorer
Here is a link to the API explorer, which is taken from the official documentation
Any ideas? Thank you!