RestFB is a simple and flexible Facebook Graph API client written in Java. It supports access to the Graph API (Pages API, Business Manager API and many more) and additional access to the messenger platform (Webhooks and Send API).
Questions tagged [restfb]
387 questions
4
votes
1 answer
How to handle extended permissions dialog
I used restfb to check extended permissions of user. I click allow permission dialog will not pop it up again next time. However I clicking "Don't Allow" on the permission dialogue box will bring it back up every time when this page is accessed. I…
![](../../users/profiles/278666.webp)
khanh
- 4,228
- 10
- 27
- 47
4
votes
1 answer
Are there any good Java API for facebook?
I've played around a bit with twitter4j and found it absolutely wonderful. Now I've been looking into the equivalent for facebook but so far haven't had much luck finding a decent project.
I looked into facebook-java-api but it appears that they…
![](../../users/profiles/2628.webp)
Aaron
- 22,132
- 10
- 45
- 48
4
votes
1 answer
how do i share a post on facebook using restfb
this is my java code using resfb lib to post something on my facebook groups feed:
FacebookClient fb=new DefaultFacebookClient(token);
FacebookType message=fb.publish(pid+"/feed",FacebookType.class,Parameter.with("message", description));
now what…
![](../../users/profiles/2100770.webp)
SuperYegorius
- 656
- 5
- 21
4
votes
1 answer
Get the number of likes of a post on an FB page using RestFB API
I am trying to retrieve all the posts, the number of likes on each post, the comments on each post and the number of likes of each comment from a particular FB page (https://www.facebook.com/JnuConfessions). I am using RestFB to do this.
While I…
![](../../users/profiles/1878651.webp)
ritesh
- 229
- 1
- 3
- 12
4
votes
4 answers
Post to Facebook Page wall using RestFB api
I am trying to post on the wall of a facebook page. I am able to post on the user wall using App Access token.
I got the App Access Token through extending the DefaultFacebookClient
public class ConnectionService extends…
![](../../users/profiles/2902577.webp)
Alvin
- 75
- 1
- 2
- 5
4
votes
1 answer
How to fetch the Actions linked to an Object in the Facebook Open Graph (knowing only the Object URL)?
I would like to know how to fetch the Actions linked to an Object in the Facebook Open Graph (knowing only the Object URL)?
Is it possible?
Also, Can I fetch a specific user action based on a specific object (connections?)?
FYI: I'm using RestFB but…
![](../../users/profiles/1416522.webp)
user1416522
- 51
- 3
3
votes
0 answers
Posting automatic updates on a Facebook Page as Page not user
I posted yesterday a question about Posting app-generated comments on Facebook page using Java but from the answer i got i realized i to a point that its probably not the question i needed to ask. What i want to achieve is the following:
I have a…
![](../../users/profiles/1293288.webp)
Mitko Zafirovski
- 71
- 1
- 1
- 5
3
votes
2 answers
How to post messages on my wall using restfb
How to post messages on my wall using restfb ?
I am using this code
PostData(String accessToken) {
facebookClient = new DefaultFacebookClient(accessToken);
}
void runMessage() {
String messageId = publishMessage();
…
![](../../users/profiles/1249491.webp)
Sruthy Joseph
- 69
- 1
- 5
3
votes
2 answers
Get friends using FQL with an application access token
I am trying to use the Facebook Query Language (FQL) to get a list of friends, who have installed my app. After authenticating my app and getting my app access token, I am executing the following query (note I am using Java and RestFB to…
![](../../users/profiles/378000.webp)
Ben Sion
- 63
- 1
- 1
- 6
3
votes
1 answer
Unable to get Events with specific location using restFB
I am unable to fetch all sports events happening in the state of
Georgia. Is this the right way to use this, since its currently
retrieving all events across the country.
FacebookClient publicFbClient = new DefaultFacebookClient();…
![](../../users/profiles/406400.webp)
diya
- 6,350
- 9
- 33
- 54
3
votes
2 answers
Error trying to use restFB on GAE development environment
I'm trying to use restFB on Google App Engine, when I try and get info about the current User, I get an error,
javax.net.ssl.SSLHandshakeException: Could not verify SSL certificate for: https://graph.facebook.com/me?format=json
Below is the code…
![](../../users/profiles/190629.webp)
Lumpy
- 3,582
- 4
- 30
- 58
3
votes
2 answers
Facebook error subcode 1870034
I have a automated job to publish some data to facebook through API, it was working fine until recently it started throwing error
com.restfb.exception.FacebookOAuthException: Received Facebook error response of type OAuthException: Permissions…
![](../../users/profiles/5060933.webp)
anks
- 89
- 7
3
votes
1 answer
OOAuthException: An active access token must be used to query information about the current user
I am using restfb java sdk for adding facebook login in my app
i have already created a test app but when i try to get the detail of the user following error message displayed
[FacebookOAuthException: Received Facebook error response of type…
![](../../users/profiles/3801239.webp)
swaheed
- 3,055
- 7
- 28
- 79
3
votes
0 answers
Rest FB Api Find Email id and list of friends Of User
I am using RestFb api, I am able to retrive the page likes, but I am not able to retrives the list of users who liked the page. As well as I am not able to find the List of friends of a particular User using My appId and appSecret.
![](../../users/profiles/3022664.webp)
Dhaval Solanki
- 117
- 8
3
votes
0 answers
extracting result using fql query
Iam trying to execute this code but it shows error in
Results results =facebookClient.executeMultiquery(sessionKey, Results.class,
MultiqueryParameter.with(queries));
I know I haven't declared session key but I read that it's use…
![](../../users/profiles/3413927.webp)
kaduva
- 55
- 1
- 6