How can i get the mutual friend from facebook using facebook graph API? - facebook

I am trying to fetch the facebook mutual friend using facebook graph API but getting getting error only.
This is url that i am trying to hit
http://graph.facebook.com/109557?fields=context.fields%28mutual_friends%29
Here is its Response :
{
"error": {
"message": "(#12) context field requires version v2.0 or higher",
"type": "OAuthException",
"code": 12
}
}

As #CBroe said, you should try
https://graph.facebook.com/v2.3/{user_id}?fields=context.fields%28mutual_friends%29

Related

Send messages via Graph API stop working

Am testing this method via Facebook graph api explorer
https://developers.facebook.com/tools/explore
i chose my user and give him access to pages_messaging read_page_mailboxes manage_pages
then choose certain page and method {conversatio_id}/messages with POST request
and send parameter
message: "test test"
I got this response
{
"error": {
"message": "(#210) This call requires a Page access token.",
"type": "OAuthException",
"code": 210,
"fbtrace_id": "C+Xo8LCuuLW"
}
}
Facebook reference
https://developers.facebook.com/docs/graph-api/reference/v2.10/conversation/messages
This is issue reported in Facebook API and fixed now!
https://developers.facebook.com/bugs/261578841015508/

I don't have access to get all invitable_friends at Facebook API using javascript

I'm trying to get all facebook invitable friends, yesterday it was working, but today the facebook API has return that
{
"error": {
"message": "(#100) No permission to access invitable_friends.",
"type": "OAuthException",
"code": 100,
"fbtrace_id": "ApJrz2NAGPx"
}
}
In addition to being a game, you must have the Canvas platform set up. And you must have a playable version of your game on canvas. If that is not the case, then you are not allowed to use invitable_friends in the first place.
Possible alternatives for inviting friends are explained here: https://developers.facebook.com/docs/apps/faq#faq_1291953124230220

Is there any way that we can get location or locale of Facebook Page from Facebook Graph API?

I have trying to get location or locale of facebook page using graph API.
https://graph.facebook.com/v2.2/{page-id}/locations
I have tried with above get request, but its is not giving any results.
So, my doubt is does facebook gives us the location information of the page, if yes then how would be request will look like.
I've tried your example with a page id an arbitrary page id (https://graph.facebook.com/v2.2/1234/locations) and got this JSON response:
{
"error": {
"message": "(#12) user locations API is deprecated for versions v2.0 and higher",
"type": "OAuthException",
"code": 12
}
}
So this API seems to be deprecated since version 2.0. In an earlier version it seems to work (https://graph.facebook.com/v1.0/1234/locations).

Facebook Graph API - attempting Facebook page create

When I attempt to create a new Facebook page (parent/child) using the Facebook Graph API (Graph API Reference /{page-id}/locations) I get the following error:
{
"error": {
"message": "(#371) You don't have permission to make the requested change.",
"type": "OAuthException",
"code": 371
}
}
any ideas?

facebook graph api Query Unsupported get request code 100

Can someone help me with an answer?
Why some pages in Facebook Graph returns
{
"error": {
"message": "Unsupported get request.",
"type": "GraphMethodException",
"code": 100
}
}
page exists at: https://www.facebook.com/RoyalCaninRomania
and facebook graph return: http://graph.facebook.com/RoyalCaninRomania or graph.facebook.com/669235549759213
but in developer is all fine:
developers.facebook.com/tools/explorer/?method=GET&path=669235549759213
he generate graph.facebook.com/669235549759213 url, but this url generate error message in browser
Worked perfectly fine with me.
I believe this issue is closed.
here is the link : http://graph.facebook.com/v2.1/146337548715685