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
35,087
questions
524
votes
19
answers
307k
views
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 ...
414
votes
4
answers
50k
views
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 ...
381
votes
30
answers
330k
views
FB OpenGraph og:image not pulling images (possibly https?)
Facebook cannot grasp my og:image files and I have tried every usual solution. I'm beginning to think it might have something to do with https://...
I have checked http://developers.facebook.com/...
373
votes
8
answers
254k
views
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* ...
327
votes
31
answers
454k
views
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 ...
291
votes
38
answers
290k
views
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=...
221
votes
19
answers
201k
views
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 ...
154
votes
19
answers
321k
views
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 ...
137
votes
12
answers
169k
views
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?
135
votes
16
answers
300k
views
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 ...
131
votes
9
answers
186k
views
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 ...
124
votes
4
answers
186k
views
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'...
120
votes
6
answers
50k
views
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'...
117
votes
10
answers
74k
views
how to test open graph on localhost
I've done a lot of research and haven't found a definitive answer to this. Is there anyway to test the open graph on localhost? I don't haven any issues using the graph api on locahost.
I've changed ...
103
votes
5
answers
157k
views
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: ...
98
votes
8
answers
178k
views
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 ...
94
votes
3
answers
221k
views
Is there a way to discover all endpoints of a REST API?
I'm wondering if its possible to programmatically discover all the endpoints of a particular API.
So for example if I GET this URL with a browser or curl:
https://api.twitter.com/1.1/
I might get ...
92
votes
21
answers
149k
views
Login Error: There is an error in logging you into this application. Please try again later
I am getting this error. When I try to sign in with facebook to my app.
When I first time authentication it will correctly working. After I unistalled my application and now trying to sign in with ...
92
votes
2
answers
4k
views
IOS Facebook SDK - Post Open Graph and show on Timeline without clicking Activity Log
From the Facebook SDK sample code, when successfully posting the open graph object to the timeline, you have to click Show on Timeline in the Activity Log on the Facebook website.
How to ignore these ...
91
votes
20
answers
114k
views
Facebook Graph API : get larger pictures in one request
I'm currently using the Graph API Explorer to make some tests. That's a good tool.
I want to get the user's friend list, with friends' names, ids and pictures. So I type :
https://graph.facebook.com/...
91
votes
14
answers
369k
views
Facebook Graph API, how to get users email?
I'm using the Graph API, but I can't figure out how to get a logged-in users email address.
The intro to Graph states "The Graph API can provide access to all of the basic account registration data ...
90
votes
9
answers
142k
views
Send private messages to friends
I need to get via Facebook connect user's info and send a private message to all of his friends. Is it possible?
89
votes
10
answers
108k
views
Facebook: get list of pages that a user is admin of
I'm using the graph api.
I have a logged in user, and want to get back a list of page ids of all the pages that the user is an admin of.
Is there a way of doing this? The docs are pretty bad - and ...
87
votes
8
answers
66k
views
Facebook 'Friends.getAppUsers' using Graph API
I have an application that uses the old REST API call Friends.getAppUsers to get the list of friends for the current user that have authorized my application.
I have read the documentation, how do I ...
87
votes
3
answers
208k
views
When do I need a fb:app_id or fb:admins?
The doc for the facebook like button says , "When your Web page represents a real-world entity, things like movies, sports teams, celebrities, and restaurants, use the Open Graph protocol to specify ...
84
votes
3
answers
407k
views
"Uncaught (in promise) undefined" error when using with=location in Facebook Graph API query
I am currently developing a web application with the Facebook Graph API.
My current goal is to retrieve only posts which have a location attached.
While retrieving posts with and without location is ...
80
votes
9
answers
114k
views
How to programmatically log out from Facebook SDK 3.0 without using Facebook login/logout button?
The title says it all. I'm using a custom button to fetch the user's facebook information (for "sign up" purposes). Yet, I don't want the app to remember the last registered user, neither the ...
80
votes
5
answers
96k
views
What's the Facebook's Graph API call limit?
Is there any restriction in number of calls we make to facebook's graph api?
and If it is there then how many calls can we make per app daily?
76
votes
10
answers
93k
views
Is there a way to check if Facebook access token is still valid?
My site utilizes lifetime access tokens (offline_access). However, if the user changes his/her password, the access token gets reset. Is there a method to check if the current access token is valid ...
76
votes
3
answers
35k
views
The app references non-public selectors in Payload/<Appname>.app/<App name>: decoder
I am getting this warning while submitting app to the Apps store through organizer.
The app references non-public selectors in Payload/.app/: decoder
i know we get this warning if we use any Third ...
75
votes
4
answers
113k
views
What are all the custom URL schemes supported by the Facebook iPhone app?
Note
These URL's are likely not available.
Facebook has been updated a number of times and did not officially support any of these.
/Note
I am trying to see what information is available about ...
75
votes
2
answers
52k
views
How should we retrieve an individual post now that /[post-id] is deprecated in v2.4?
I just tried through the Graph API Explorer with this path /v2.4/10153513872748291 and I've got this result:
{
"error": {
"message": "(#12) singular links API is deprecated for versions v2.4 ...
74
votes
2
answers
22k
views
Is it possible to check if an email is confirmed on Facebook?
Update
This was reported to Facebook via https://www.facebook.com/whitehat/report/ on Dec 16th 2013 and Facebook responded on Dec 17th that the bug has long since been fixed.
I have retested this ...
72
votes
8
answers
172k
views
Facebook API: Get fans of / people who like a page
I'd like to get a list of users who like a certain page or a fan of it.
The FB API documentation states that you can only get the count of the fans of a certain page using the social graph, but not ...
72
votes
6
answers
99k
views
'Like' a page using Facebook Graph API
Using the Graph API I'd like to be able to have an authorized user "like" a page.
I tried posting the following
https://graph.facebook.com/${PAGE_ID}/likes?access_token=${ACCESS_TOKEN}
And I get ...
70
votes
9
answers
116k
views
How can I display the users profile pic using the facebook graph api?
I would like to display the users profile picture inside of my applications canvas page, is there a way to do that using the graph api?
I know I can do it using FBML but I would also like to pass the ...
70
votes
8
answers
45k
views
Facebook Page Access Tokens - Do these expire?
I'm building an app that allows users to administrate their Facebook Fan Pages. This requires the following two Access Tokens:
A User Access Token
A Page Access Token
I'm quite familiar with User ...
69
votes
9
answers
150k
views
New og:image size for Facebook share?
Facebook recently changed image sizes for ads, and link posts. This affects also to meta property="og:image". What is new optimal size for og:image at Facebook? The old version was square, now it ...
67
votes
6
answers
77k
views
How to check if user is logged in with FB SDK 4.0 for Android?
A few days ago I implemented FB Login to my APP, and today I found out that most of the things I have implemented are now deprecated.
Before, I was using Session to see if the user was logged in or ...
66
votes
25
answers
103k
views
Facebook SDK returned an error: Cross-site request forgery validation failed. The "state" param from the URL and session do not match
i'm trying to get Facebook user id using the php sdk like this
$fb = new Facebook\Facebook([
'app_id' => '11111111111',
'app_secret' => '1111222211111112222',
'...
66
votes
5
answers
53k
views
Get public page statuses using Facebook Graph API without Access Token
I'm trying to use the Facebook Graph API to get the latest status from a public page, let's say http://www.facebook.com/microsoft
According to http://developers.facebook.com/tools/explorer/?method=...
63
votes
9
answers
53k
views
facebook login issue - canOpenURL: failed for URL: "fbauth2:///" - error: "(null)"
When I click on login with Facebook button, it is opening safari browser and getting closed immediately. Noticed error on the console.
App delegate method:
func application(app: UIApplication, ...
62
votes
1
answer
76k
views
Get facebook friends with Graph API v.2.0 [duplicate]
A while ago, I used to take the friends of mine using Graph API in this way (using Graph API Explorer):
/me/friends
Everything was perfect but now, with 2.0 version, I saw that this way does not ...
62
votes
1
answer
1k
views
Facebook 3.0 Android second login attempt returns "Session state closed"
I'm trying to integrate Facebook into my Android app. Using the Facebook Login Button, I tried to login in. When I first install the app, it works fine and login successfully. When I logged out using ...
60
votes
5
answers
48k
views
Facebook Graph API GET request - Should contain "fields" parameter (Swift, Facebook SDK v4.5.1)
My iOS app uses Facebook's Graph API Request during sign up to get user information, which worked fine prior to upgrading to Facebook's newest SDK. After upgrading, I'm getting a runtime error stating:...
60
votes
4
answers
81k
views
Facebook debugger: why complaining about app_id missing
While using the facebook debugger, it complains:
Warning
fb:app_id hasn't been included in the meta tags. Specify the app ID so that stories shared to Facebook will be properly attributed to the ...
60
votes
7
answers
52k
views
How to extend access token validity since offline_access deprecation
Since the offline_access Permission is deprecated in Facebook's Authentication flow, we have problem getting the so called long lived access tokens without that permission.
In Facebook's document ...
59
votes
14
answers
47k
views
Facebook Email field return null (even if the “email” permission is set and accepted)
For some users in our application, the email field returns NULL even if the user has granted the email access to the app.
When we check the scope parameter and the validity of the user Token thanks to ...
59
votes
8
answers
63k
views
Get username field in Facebook Graph API 2.0
The "old" Facebook Graph API had a "username" field which could be used to create a human-readable profile URL. My username for example is "sebastian.trug" which results in a Facebook profile URL http:...
58
votes
13
answers
122k
views
Getting the Facebook like/share count for a given URL
I'm using the Facebook API to get the like/share count for given URLs. The strange thing is that it seems to be quite inconsistent in returning results. For example, this page returns results:
https:/...