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]
389 questions
0
votes
1 answer
getting integer for facebook notifications/inboxes/friends
I know there are quite a few questions about Facebook but I couldn't find one which answered my question. Basically what i'm trying to do is get an integer for how many notifications, inboxes, friend requests in Java. Does anyone know how to or can…

Luka Moran
- 15
- 1
- 1
0
votes
1 answer
RestFB get all insight
until 19 may 2013 I've use RestFB library to retrieve all insight of my facebook fan page. Now I've some problems because this method
Connection insights = facebookClient.fetchConnection("PAGE_ID/insights", Insight.class);
gives me only 7…

Claudio Pomo
- 2,392
- 7
- 42
- 71
0
votes
1 answer
How safe is to use RestFB?
I'm currently developing an Android app wich uses a lot of Facebook data. From everything that I've read so far, RestFB appears to be the best option in order to use the Facebook API on a Java enviroment, but I have a concern: What happens if…

Santiago Martí Olbrich
- 1,601
- 19
- 25
0
votes
1 answer
Restfb lib on android with proguard
I'm using the restfb library in my android project, everything works super fine.
When I try to run proguard with it, it's completed successfully, but when running the app I get a
com.restfb.exception.FacebookJsonMappingException: You must specify…

Chen Kinnrot
- 20,609
- 17
- 79
- 141
0
votes
1 answer
how to get posts from my newsfeed on facebook containg certain text using restfb
Hi my task is very straight fw:
I want to query my newsfeed for all the posts it contains(from the last 24 hrs), that has the word "nice" in them.
I am using restFB client.
I tried this: (using Graph API)
Connection targetedSearch =…

Elad Gelman
- 1,182
- 1
- 13
- 27
0
votes
1 answer
how to convert facebook response to a string in json format?
I'm trying to get query response from Facebook and map it to user defined class:
I have following class:
class FBStory {
@Field
private String application_id;
@Field
private String application_name;
@Field
…

N D Thokare
- 1,703
- 6
- 35
- 57
0
votes
1 answer
How to get utf8-encoded text from restfb
i'm trying to fetch all posts and comments from a facebook's page using RestFB. All works, but when i try to fetch a russian page, that has particular chars, storing the result in mysql, every rows has some ? and i understand that encoding isn't…

Jayyrus
- 12,961
- 41
- 132
- 214
0
votes
1 answer
Not able to generate notification for Facebook through restfb
i want to send facebook notification to my friend through my app . i have used following notification api through restfb library
facebookClient = new DefaultFacebookClient(vAccessTokenDetails.getVAccessToken());
String app_access_token =…

hardik pansuria
- 208
- 1
- 3
- 13
0
votes
1 answer
Fetching user connections to pages using RestFB not returning values
I'm using grails with RestFB to write a facebook canvas/page application. After obtaining a valid access token using the oauth login process, I try to fetch the user connection to pages in order to present options to the user. I use the following…

Rafael Augusto Mendes Moreira
- 210
- 1
- 2
- 11
0
votes
3 answers
restfb: get page picture
I am trying to get the Page picture. However it always comes back as null. Am i doing something wrong?
FacebookClient facebookClient = new DefaultFacebookClient(accessToken)
def page = facebookClient.fetchObject(PAGE_ID, Page.class);
println…

nemnesic
- 118
- 1
- 10
0
votes
1 answer
restfb: Facebook payment subscriptions
As far as I've heard this feature is brand new, and it's still under testing phase. Anyway, reading the docs in developers.facebook I was not able to find out if it was possible or not to make subscriptions on a year basis payment.
user743489
0
votes
1 answer
restFB - can't post to page - only to my wall
I created a Facebook app that I will use to programatically post information to Facebook. I've got it working so that I can post to my wall, but not the page I'd like it to go to (for which I am 1 of 2 administrators).
this posts to my page just…

Frank
- 28
- 9
0
votes
1 answer
Tracking sharing of a link on facebook and timestamp of a Like
I am developing a website,there are some "facebook like" buttons.If some one likes one of the link from my website HomePage it is posted in the wall of the respective person, and i get the post_id. I want to track all the activity done on the posted…

Mrinmoy Sen
- 404
- 5
- 14
0
votes
1 answer
Follow a post's share/like/comment
I am working in a website.And my website has it's internal registered users(also having user's facebook email-id and uid in my website database). In my website homepage I have facebook like button. Lets M1,M2,M3 are three registered member in my…

Mrinmoy Sen
- 404
- 5
- 14
0
votes
1 answer
Setting Highlight on Facebook post using RestFB
Using RestFB API, how do you set "highlight" on a post i.e make a post an highlight so it is obvious and noticeable.

Babajide Prince
- 552
- 1
- 10
- 25