Questions tagged [restfb]

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).

389 questions
3
votes
1 answer

Received Facebook error response of type OAuthException: An unexpected error has occurred. Please retry your request later. (code 2, subcode null)

We are using restfb 1.6.14. I am getting the following error while fetching the public posts. com.restfb.exception.FacebookOAuthException: Received Facebook error response of type OAuthException: An unexpected error has occurred. Please retry your…
SST
  • 2,054
  • 5
  • 35
  • 65
3
votes
0 answers

facebook graph api search page results different with user and application access token

I'm trying to search facebook pages with graph api's search method. I'm using restFB- a java library for facebook graph api. When i run this AccessToken accessToken = new DefaultFacebookClient().obtainAppAccessToken(MY_APP_ID,…
reyalsnogard
  • 496
  • 6
  • 9
3
votes
1 answer

Facebook extended token with restfb

We are working in Java with restfb to perform actions over facebook. The first thing we do is to get an extended access token using the access token that we obtain after a php oauth process. The code to obtain the extended token is- FacebookClient…
user1774238
3
votes
1 answer

Application raises facebook OAuth Exception for all access

We are using restFB 1.6.12 and I get this error while trying to access the FB end point searching for messages. This is happening for an OAuth token which was recently created and also for older ones. If I search friendsCount, publicEvents seems to…
AVM
  • 243
  • 3
  • 8
3
votes
1 answer

RestFB doesn't give comments of post

i'm using restfb to fetch some posts and every comment of each posts of a facebook page in this way: FacebookClient facebookClient = new DefaultFacebookClient(MY_ACCESS_TOKEN); Connection pagePosts =…
Jayyrus
  • 12,961
  • 41
  • 132
  • 214
3
votes
2 answers

Facebook app - getting AuthToken

I have created a Facebook app using RestFB. In my local environment it is working fine. To put the app on the web, I need to get token. I am following these steps: Redirecting from Facebook to my app url using app id and secret key. Getting code…
3
votes
1 answer

Unexpected error when publishing photo to page

I'm trying to publish a photo to a page using the following: FacebookClient client = new DefaultFacebookClient(destinationAccessToken); BinaryAttachment attachment = BinaryAttachment.with(imageName, imageInputStream); Photo photoResponse =…
Paul Bellora
  • 54,340
  • 18
  • 130
  • 181
2
votes
1 answer

RestFB: checkin with expanded link

I want to do the following: To create a checking with a link. This code works: FacebookType publishCheckinResponse = facebookClient.publish("me/checkins", FacebookType.class, Parameter.with("message", "message"), …
Alex K
  • 23
  • 3
2
votes
3 answers

Fetch Friends profile image from restfb

I am using below code to get profile image of friends using Resfb. I get the response too with name id and image. Please some one help me asap on how to get the image from this data. Code Connection myFriends =…
Vinay
  • 6,891
  • 4
  • 32
  • 50
2
votes
1 answer

Is the date value returned by the facebook API(s) in GMT format?

Is the date value returned by the facebook API(s) in GMT format? So if I query for messages containing a certain word (e.g. 'sports') I try to search for all messages b/w 2 dates (in my local timezone), so how am I supposed to interpret the values…
diya
  • 6,938
  • 9
  • 39
  • 55
2
votes
2 answers

restfb: Writing a facebook application with java (using the new graph api)

I'm trying to write a facebook application using Java tomcat with RestFB. the restfb documentation shows the following: Create a Facebook Application Request https://graph.facebook.com/oauth/authorize?client_id=MY_API_KEY&…
ufk
  • 30,912
  • 70
  • 235
  • 386
2
votes
1 answer

How to get the number of replies from a comment with RestFB

I need to get the comments with your replies for all nodes owned by authenticated users. I have it in the following way with stream java 8: private Stream getCommentsByObjectAfterThan(final FacebookClient facebookClient, final String…
Sergio Sánchez Sánchez
  • 1,694
  • 3
  • 28
  • 48
2
votes
0 answers

Using RestFB along side a JavaFX WebView, how can I post to Facebook?

I've been trying a number of ways to achieve a way to post to Facebook from within my JavaFX application using a WebView to manage login. I have read Facebook's documentation but continue to get lost with user_key, codes, access_code, tokens and…
Ben Simms
  • 41
  • 1
  • 5
2
votes
1 answer

How to post in a group on facebook using restfb?

I am trying to post a message onto a facebook group (I am the admin for the page). Here is the java code that I am using: public void makeTestPost() { fbClient = new DefaultFacebookClient(groupPageAccessToken); counter = 0; …
nitin goel
  • 21
  • 1
2
votes
1 answer

How to get the price information of a sale post in Facebook?

How can I get the price information of a sale post in Facebook? The following is my current code. //Getting the facebook sale group's feed Connection groupFeed = facebookClient.fetchConnection("xxxxxx/feed", Post.class,Parameter.with("fields",…
zawhtut
  • 8,335
  • 5
  • 52
  • 76
1 2
3
25 26