Questions tagged [facebook-graph-api]

Facebook Graph API is a structured API for fetching objects and the connections between them from Facebook's social graph

The Facebook Graph API is provided by the Facebook platform to interact with Facebook's social graph. It's a low-level HTTP-based API that you can use to query data, post new stories, manage ads, upload photos and a variety of other tasks that an app might need to do.

This includes Facebook users, pages, and other objects, as well as the connections between them such as links, photos, or notes.

It provides a structured view of the Facebook "social graph" and represents objects in the graph (e.g. people, photos, events, pages) and the connections between those objects (e.g. likes, uploaded, is tagged in).

Tool Graph API explorer - The easiest way to understand the Graph API is to use it with the Graph API Explorer, a low-level tool you can use to query, add and remove data. It's a very handy resource to have at your fingertips while you integrate with Facebook.

You can ask questions with tag which requires Facebook Graph API calls for above objects only with different SDK's.

Resources

34984 questions
5
votes
2 answers

Query multiple insights metrics in one API call

Is it possible to query more than one insights metric in one API call? For example to get the daily added likes for a page I executed the following call: https://graph.facebook.com/_object_id_/insights/page_fan_adds_unique/day/ But I would like to…
Jeroen Bolle
  • 1,836
  • 1
  • 12
  • 15
5
votes
1 answer

How to Avoid Posting a Duplicate when Publishing to Facebook?

With the Graph API, I publish a story by POSTing to the /me/feed connection. I get back a success or an error result from Facebook. So far so good. Once in a while, the API takes a long time and the connection times out. In that case, I don't know…
Waleed Abdulla
  • 1,873
  • 1
  • 14
  • 20
5
votes
3 answers

Facebook Graph API - group URL to ID

While some group URLs come in the format of www.facebook.com/groups/%ID%/ other come in the format of www.facebook.com/groups/%SOME_STRING%/. For example http://www.facebook.com/groups/2261122614/ vs.…
Daniel Zohar
  • 1,962
  • 2
  • 13
  • 19
5
votes
2 answers

Facebook Graph API: Get date of joinin

Follow up to this question for Facebook Friends.getAppUsers using Graph API that pulls friends using app by https://graph.facebook.com/me/friends?fields=installed is it possible to get date of joining also with the id’s?
Quintin Par
  • 15,862
  • 27
  • 93
  • 146
5
votes
0 answers

i want to share friend's post via graph api

I want to share some posts in facebook via graph api. But there's no api like this. only "feed" exists. I tried to use "me/feed" graph api action to share my friend's post(and post in page). but it's not same as i shared in facebook website. i want…
loocaworld
  • 73
  • 1
  • 7
5
votes
1 answer

Error: "Calls to mailbox_fql have exceeded the rate of 300 calls per 600 seconds"

I receive Graph API error #613 (message: "Calls to mailbox_fql have exceeded the rate of 300 calls per 600 seconds", type:OAuthException) when testing my app. It's a desktop app, and the only copy is the one running on my machine (so there's only…
5
votes
1 answer

Graph api - Like / until - since

Is there a possibility to use the parameters "since" and "until" in the likes request? What I'm trying: https://graph.facebook.com/me/likes?limit=500&offset=0&since=2011-01-01&access_token=... I liked a post today, but it is not working. It can…
5
votes
1 answer

Get mobile number from facebook api

I have added the extended property sms to my required permissions. In my case im using the .net facebook sdk but I dont think it matters. I don't know where to find the users phone number var fb = new FacebookWebClient(); dynamic me =…
Diver Dan
  • 9,953
  • 22
  • 95
  • 166
5
votes
4 answers

How can I check to see if the user has Facebook Timeline?

I want to enable certain features only for users with the "publish_actions" permission and Timeline. How can I detect if the user enabled Timeline?
Leo Jiang
  • 24,497
  • 49
  • 154
  • 284
5
votes
3 answers

how to query facebook user's email using graph api?

i need help to get facebook user's email. here's what I did. https://graph.facebook.com/me?scope=email&access_token=xxxxxxxxxxxxxxxx the result I got back has no email in it. { "id": "7027110", "name":…
qinking126
  • 11,385
  • 25
  • 74
  • 124
5
votes
4 answers

How to migrate Facebook comments from using "URL" property to "HREF"

Would really appreciate any input that anyone has into an issue I'm having with the Facebook Comments plugin system. Essentially, We have created a Wordpress theme which was launched last year and used the old legacy FMBL to integrate facebook…
Jay Dyson
  • 51
  • 1
  • 2
5
votes
1 answer

Tag Friends in Facebook Photo Upload

I'd like to be able to tag existing friends using the graph api: Here's the code I have at the moment. The photo is being uploaded, but the photo isn't tagging the user specified in the user_id: UIImage *testImage = [UIImage…
ArtSabintsev
  • 5,170
  • 10
  • 41
  • 71
5
votes
2 answers

Unable to post links to an FB Event page using the Graph API

We are trying to publish to the feed resource of an event using the Graph API. What happens is it seems to ignore any link that we post. It also does not seem the Graph API supports any option for posting a photo to the wall of an event. We make the…
John Kelvie
  • 858
  • 1
  • 7
  • 16
5
votes
2 answers

Is there a way to get the window scroll position in Facebook API?

In the FB.Canvas API there are methods to get the scroll top, offset top and client height (through getPageInfo()) but I need a way to find the top most window scroll position so I can determine if the area I need to be visible to the client are in…
1.21 gigawatts
  • 16,517
  • 32
  • 123
  • 231
5
votes
5 answers

Facebook API people search filtered by country

I'm trying to search people using the Facebook API (Graph API or FQL, whichever works). Up to this point, it's working just fine but I can't get it to be filtered by country or language. I'm currently retrieving this…
Jeroen
  • 13,056
  • 4
  • 42
  • 63
1 2 3
99
100