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
34
votes
7 answers

Facebook Android SDK 4.5.0 get email address

I'm currently creating a test application to test using the latest facebook SDK to update our existing application problem is that I need to get the email address which I know depends if the user has provided one on his account. Now the account I'm…
KaHeL
  • 4,301
  • 16
  • 54
  • 78
34
votes
7 answers

Getting username and profile picture from Facebook iOS 7

I have read a lot of tutorials about getting information from Facebook, but I have failed so far. I just want to get username and profile picture from Facebook. - (IBAction)login:(id)sender { [FBSession…
Kirdok
  • 1,904
  • 2
  • 22
  • 27
34
votes
4 answers

Facebook Graph API error code list

Where can I find the official Graph API Error Code list? I have been using the Graph API for half a year, and in the past 6 months, the error code's format has changed twice! The first time I saw the error code, it looks like: { "error": { …
Evans Y.
  • 4,209
  • 6
  • 35
  • 43
33
votes
3 answers

Facebook Graph API - How do you retrieve the different size photos from an album?

Ok, first off let me tell you I have no problems getting a user's photo album(s) and looping through the output to display all of the photos in the size I want. However, if I want to call a photo like:
Tomas
  • 3,054
  • 5
  • 27
  • 39
33
votes
2 answers

Flutter - how to connect to Facebook's SDK app event using a codeless setup

I want to promote my apps using Facebook ads app install using codeless app setup : I try and shake my phone, but I'm still not getting any response that my setup is successful (I'm using Android to test). My project was built using Flutter (not…
questionasker
  • 2,536
  • 12
  • 55
  • 119
33
votes
5 answers

Identifying Facebook Messenger user with UserID from a Facebook Login

I am trying out the new Facebook Messenger Platform and have hit a bit of a problem. When a user first chats with my Bot, I want to use the sender.id to lookup the user in my DB and verify whether they're a customer or not and offer a more tailored…
33
votes
1 answer

Facebook Open Graph API Examples - How to get the access token?

Facebook has some great-looking examples of Open Graph requests here: https://developers.facebook.com/docs/reference/api/examples/ The problem is that since I don't have an access token, most of the examples just return { "error": { …
ohthepain
  • 2,004
  • 3
  • 19
  • 30
33
votes
5 answers

How can I query public facebook events by location/city?

I've been trying to figure out how to do this, and was thinking it wasn't possible, then found this website: (Removed due to a dead link) You can search by city there and I have no idea how they do it? The normal graph API's don't allow searching…
egfconnor
  • 2,637
  • 1
  • 26
  • 44
32
votes
6 answers

Generating hash key for app using facebook sdk

I am using facebook sdk for login into my application. The application runs fine on HTC devices. The application also works fine on Samsung devices if there is no facebook app pre installed. But if there is already facebook app on mobile and then…
abhishek
  • 1,434
  • 7
  • 39
  • 71
32
votes
6 answers

How to integrate Facebook into WordPress registration/login?

Here's what we hope to accomplish: a WordPress site that will allow users to register/login EITHER with Facebook OR WordPress and have the same access to posts/pages/content. From all the research thus far, this doesn't seem trivial... Here's our…
Kane
  • 899
  • 2
  • 15
  • 35
32
votes
7 answers

Getting Facebook Reactions with Graph API

Facebook just released the new reaction button, but I can't figure out a way to get this information from the Graph API v2.5 as the /likes edge only returns the total count of interactions. Has anyone figured out a way to get this detailed…
larrydahooster
  • 4,114
  • 4
  • 40
  • 47
32
votes
5 answers

How can I execute a FQL query with Facebook Graph API

I'm looking without any success for a way to execute a FQL(facebook query language) query with the new Open Graph API. Does anyone know how I can do this? Found the answer here with this excellent example:…
user63898
  • 29,839
  • 85
  • 272
  • 514
32
votes
5 answers

Refused to display in a frame because it set 'X-Frame-Options' to DENY facebook fb.ui share method

Receiving this message in the console: Refused to display in a frame because it set 'X-Frame-Options' to DENY This happens when the site is being shown in the mobile version, its just a different set of html and assets served up if the user agent is…
Brad
  • 12,054
  • 44
  • 118
  • 187
31
votes
8 answers

Facebook Graph API - likes returns me an empty set

When I try to get all my "likes" (formerly fan pages) on Facebook Graph API, sometimes it returns me an empty set: { "data": [ ] } I tried with https://graph.facebook.com/me/likes?access_token=MY_ACCESS_TOKEN and with…
Vinch
  • 1,551
  • 3
  • 13
  • 15
31
votes
6 answers

How to access Facebook private information by using ASP.NET Identity (OWIN)?

I am developing a web site in ASP.NET MVC 5 (using RC1 version currently). The site will use Facebook for user authentication and for retrieving initial profile data. For the authentication system I am using the new OWIN based ASP.NET Identity…
Konamiman
  • 49,681
  • 17
  • 108
  • 138