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

34480 questions
521
votes
19 answers

The developers of this app have not set up this app properly for Facebook Login?

I'm trying to make a login with Facebook available in my script. I've done everything, but when I attempt to login with a Facebook account I get this error from Facebook: Error App Not Setup: The developers of this app have not set up this app…
Khodour.F
  • 14,342
  • 11
  • 37
  • 73
409
votes
4 answers

Design for Facebook authentication in an iOS app that also accesses a secured web service

Goal: Allow a user to authentication with Facebook into an iOS application which requires access to a protected web service that I'm running. Assumptions: There is a native authentication (and registration) system in place for those users that opt…
TMC
  • 8,018
  • 12
  • 49
  • 70
368
votes
7 answers

Facebook Graph API v2.0+ - /me/friends returns empty, or only friends who also use my application

I am trying to get my friend name and ids with Graph API v2.0, but data returns empty: { "data": [ ] } When I was using v1.0, everything was OK with the following request: FBRequest* friendsRequest = [FBRequest…
324
votes
26 answers

FB OpenGraph og:image not pulling images (possibly https?)

First -- I do not believe this is a duplicate issue. I've searched for same or similar problems on SO extensively, and due to the nature of troubleshooting before asking, I believe this problem is unique. Facebook cannot grasp my og:image files and…
Cyprus106
  • 5,132
  • 5
  • 36
  • 48
283
votes
37 answers

SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

I am using Authlogic-Connect for third party logins. After running appropriate migrations, Twitter/Google/yahoo logins seem to work fine but the facebook login throws exception: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B:…
Vikash
  • 2,849
  • 4
  • 15
  • 7
283
votes
28 answers

Facebook OAuth "The domain of this URL isn't included in the app's domain"

Let me first start with saying I've searched for an answer to this question for quite some time... I'm trying to setup Facebook OAuth to work with my application that is being developed locally on my machine. Everything was working perfect with…
dangel
  • 6,178
  • 5
  • 39
  • 62
204
votes
18 answers

facebook: permanent Page Access Token?

I work on a project that has facebook pages as one of its data sources. It imports some data from it periodically with no GUI involved. Then we use a web app to show the data we already have. Not all the information is public. This means I have to…
Vlasec
  • 5,143
  • 3
  • 23
  • 29
136
votes
12 answers

How to get share counts using graph API

I can get the share count of an URL using PHP SDK and using the deprecated rest API, but didn't find a way to get the share counts of an URL using graph API. Is there any way to find out?
Ashish Pethkar
  • 1,538
  • 4
  • 12
  • 10
131
votes
16 answers

Facebook login message: "URL Blocked: This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings."

Important notice: If you register for testing, go to your profile settings and to your interests add delete profile. Trying to login with Facebook to my website: I get the following error: URL Blocked: This redirect failed because the redirect URI…
Amir Rahbaran
  • 2,150
  • 2
  • 17
  • 26
127
votes
15 answers

Get user profile picture by Id

I'm now working on a web application which is mostly based of facebook graph api. I hold some data about users - actually , the possible public data available - such as name and id. I also know that a profile picture is a part of the public data,…
user975343
125
votes
9 answers

Facebook API "This app is in development mode"

What does "development mode" mean for a facebook app? I find no exact explanation of what I can and can't do while in development mode and what's the relation with the "Not available to all users because your app is not live". Some people also refer…
dendini
  • 3,602
  • 9
  • 35
  • 69
120
votes
3 answers

Facebook Access Token for Pages

I have a Facebook Page that I want to get some things from it. First thing are feeds and from what I read they are public (no need for access_token). But I want to also get the events... and they aren't public and need the access_token. I don't want…
119
votes
5 answers

Long-lasting FB access-token for server to pull FB page info

I'm aware that there are many questions about Facebook access-tokens and the grief they cause, but despite much experimentation and reading many frustratingly vague blog articles (FB and otherwise), I'm still struggling to get a clear answer to my…
redhotvengeance
  • 24,018
  • 10
  • 47
  • 52
102
votes
5 answers

How to check if a user likes my Facebook Page or URL using Facebook's API

I think I'm going crazy. I can't get it to work. I simply want to check if a user has liked my page with javascript in an iFrame app. FB.api({ method: "pages.isFan", page_id: my_page_id, }, function(response) { …
Patrik
  • 2,113
  • 2
  • 26
  • 44
94
votes
8 answers

How to get the Facebook user id using the access token

I have a Facebook desktop application and am using the Graph API. I am able to get the access token, but after that is done - I don't know how to get the user's ID. My flow is like this: I send the user to…
Mohoch
  • 2,555
  • 1
  • 23
  • 26
1
2 3
99 100