This is how I have been using graph API to get public info of an user:
http://graph.facebook.com/{user_id}
It was working for almost all the users except this with uid 1283218355
http://graph.facebook.com/1283218355
So when I try this link, it gives error with code 100.
{
"error": {
"message": "Unsupported get request.",
"type": "GraphMethodException",
"code": 100
}
}
What could be the problem?
Related
Trying to make a call to linkedin api https://learn.microsoft.com/en-us/linkedin/marketing/integrations/ads/account-structure/create-and-manage-creatives-new?view=li-lms-2022-10&tabs=http#delete-a-creative
to delete a creative however am receiving a 500 error
{
"code": "GATEWAY_INTERNAL_ERROR",
"message": "Gateway Internal Error"
}
body of the request is:
"patch": {
"$set": {
"status": "PENDING_DELETION"
}
}
}
as per the documentation passed the header
X-RestLi-Method
as
DELETE
The issue was field name
"intendedStatus": "PENDING_DELETION"
I am following https://developers.facebook.com/docs/graph-api/advanced/.
GET graph.facebook.com
/search?
q=coffee&
type=place&
center=37.76,-122.427&
distance=1000
Graph API Explorer Screenshot Here
I am getting these response:
{
"error": {
"message": "(#33) This object does not exist or does not support this action",
"type": "OAuthException",
"code": 33,
"fbtrace_id": "ABMnuhD-PiM0LPKBbRa23ZF"
}
}
Can anyone tell me the reason for this Exception and how I should fix this?
When I call:
$ curl 'https://graph.facebook.com/v2.2/<APP_ID>/accounts/test-users?access_token=<APP_ACCESS_TOKEN>&limit=500'
I see 82 accounts, and all but one look like this:
{
"id": "1413484435585065",
"login_url": "https://developers.facebook.com/checkpoint/test-user-login/1413484435585065/"
}
That is, they have no access token.
When I try to delete them I get:
$ curl -XDELETE 'https://graph.facebook.com/v2.2/1413484435585065?access_token=<APP_ACCESS_TOKEN>'
{
"error": {
"message": "(#100) Invalid value specified for param: id",
"type": "OAuthException",
"code": 100
}
}
The only one that DOES have an access token returns:
{
"error": {
"message": "(#2904) You cannot delete the Open Graph Test User for your app.",
"type": "OAuthException",
"code": 2904
}
}
If I go to Roles...Test Users on the Developers page of the app, then it is empty!
Any new test users I create I can see on the Developers page, and I can delete them using the mentioned curl call.
Where could these test users come from, and how do I get rid of them? Or at least filter them when I am listing test users.
i'm trying to send some likes on facebook page post but for firstt time i notice that error and don't know the reason
request:
https://graph.facebook.com/479322648852908/likes?access_token=CAAEYj0oZAmMsBAHmBWezCtiPfBZAHnOTyzblZB1YxvBbXFZC88ybqS2LlNTwWdsKRECdqZC7A1WEnSVqZCSlt0ftAs8YYmrLtJurIfd5BIotlf1DdMymD1ZBBF9ayYlLrCs1h7JHkRP6PZBv6M2oQpjWVoKPYTufdgdagto3blt2styL2XpYFBsVdmwlmNEQOBwZD&method=POST
Response:
{
"error": {
"message": "(#1) An unknown error occurred",
"type": "OAuthException",
"code": 1
}
}
Any hint ?
I think you can get away without the access token via the url:
http://graph.facebook.com/479322648852908/likes
Im using PassportJS for Facebook login in ExpressJS app. I received a recent error which didn't encountered before.
Sorry, this feature isn't available right now: An error occurred while
processing this request. Please try again later.
{
error: {
name: 'InternalOAuthError',
message: 'failedtofetchuserprofile',
oauthError: {
statusCode: 500,
data: '{
"error": {
"message": "An unexpected error has occurred. Please retry your request later.",
"type": "OAuthException",
"code": 2
}
}'
}
}
}
I don't have idea why I got the error. App ID and Key wasn't changed and sandbox was disabled.