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

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

How to handle FacebookOAuthException in restFB and Java?

When usign the RestFB SDK and a wrong or expired token when authenticating, the application crashes. It can't be handled by a try/catch block. Does anyone know how to fix this? public static void main(...
user10053673's user avatar
-1 votes
1 answer
29 views

How to dynamically use parameters in publish methode?

I need to execute the publish methode with an unknown number of parameters. Each attachment needs to be added using ... Parameter.with("attached_media[i]", ... but the number of ...
user10053673's user avatar
0 votes
1 answer
61 views

Does restFB API support content_publishing_limit from Instagram Graph API?

Checking last releases seems to be that the endpoint content_publishing_limit is something not supported yet. Does anyone knows if this will be supported soon? Or how can I raise a request for it? The ...
Perla Alvarez's user avatar
0 votes
2 answers
126 views

Can I access Facebook Ads archive using RestFB?

If using Facebook's graph explorer, I could do https://graph.facebook.com/v14.0/ads_archive followed by the access token and search parameters, and it returns the ads posted by pages in a given ...
Reinaldo's user avatar
  • 131
0 votes
1 answer
390 views

facebook api upload video, it returns code 6000, subcode 1363048, try again makes no sense

when upload video, the Facebook API response with this error: ERROR: Received Facebook error response of type OAuthException: There was a problem uploading your video file. Please try again with ...
David Wang's user avatar
0 votes
0 answers
23 views

How do i search for type in restfb java?

i have been trying to figure out how to use https://graph.facebook.com/search?type=adinterest&q=[%22coffee%22]&limit=10000&locale=en_US&access_token=%token_here% in restfb and i just ...
dgfd afag's user avatar
0 votes
1 answer
607 views

Interacting with Instagram accounts directly via FB graph API

I'm trying to create an endpoint that can independently determine the total number Instagram accounts associated with a Meta login and page through the results independently of Facebook pages. ...
Patrick's user avatar
  • 39
0 votes
0 answers
308 views

How to login in Facebook using mvn project with java

I have to create a mvn java application, which must give the possibility to log on facebook and returning the user id and the user access token. i've already read the facebook guide but the code to ...
Luca_Bellante's user avatar
0 votes
0 answers
66 views

posting to / reading from facebook page on behalf off server side facebook app (java & restfb)

My app has three parts 'A'- A facebook page where automatic posts will be performed by application 'B', so, those posts won't be on behalf of end users but on behalf of app 'B' itself. 'B'- A server ...
antonio paradize's user avatar
0 votes
1 answer
69 views

Read page messages

Im aware, that read_mailbox permission was removed in FB API>2.4. I need access to page related messages. So i have a page and someone is sending private message on this page (not directly to the ...
Daveron's user avatar
  • 67
0 votes
0 answers
44 views

How to get Batch Status from Facebook API using RestFB

I'm using RestFB api to comunicate with Facebook API. After I send batch requests, I need to GET check_batch_request_status to know the status of all my requests. Using Postman I did it, but using ...
patricK's user avatar
  • 1,065
0 votes
0 answers
58 views

How can I identify the bug in my Java restfb call to post to my personal Facebook feed?

I am trying to complete a personal project where I run a Java app to get covid19 data from a state's website API, then posts the daily case count to my Facebook feed. Part 1 was to figure out the ...
renaissance542's user avatar
1 vote
1 answer
123 views

RestFB how to subscribe to webook

I'm trying to replicate the following request (which I elaborated with the Facebook graph explorer) POST /{page_id}/subscribed_apps?subscribed_fields=feed,mention with it's accompanying page access ...
fedest's user avatar
  • 1,240
0 votes
1 answer
410 views

I want to read how many people have seen my post in my facebook page using restfb in java

Using the code below I was able to read how many reactions (in detailed) my posts in my Facebook page have received. https://restfb.com/cookbook/ Now I need to read how many people have seen the posts ...
Shila Mosammami's user avatar
0 votes
0 answers
766 views

Getting OAuthException through Facebook Graph API for some pages of the user's feed

I am trying to get user's posts for the last 2 years using the valid token and the following link: me/feed?fields=id,created_time,from,icon,is_hidden,message,message_tags,parent_id,permalink_url,...
lopushen's user avatar
  • 1,127
1 vote
2 answers
384 views

is it possible to get page reviews and reviewer's name and profile photo url with restFB library?

I have found restFB client library in spring for facebook graph api , i have to get page reviews and reviwers name and profile photo. I am searching for this in https://restfb.com/javadoc-3/com/restfb/...
Murad İsgandarli's user avatar
1 vote
0 answers
2k views

Facebook restFB : Unsupported get request. Object with ID 'me' does not exist, cannot be loaded due to missing permissions

My facebook app is approved and has publish_pages, manage_pages permissions approved. Everything worked fine till yesterday. I am seeing the below exception on the following line Connection myPages = ...
Oceandrive's user avatar
0 votes
0 answers
15 views

DownloadData comes in which package of restfb?

I got some task regarding restfb and I am totally new to this subject. I took one of the samples from search forums but there is no package given for DownloadData. I searched but couldn't find it. ...
kajal nadhawadekar's user avatar
0 votes
1 answer
84 views

How can I shorten timeout times using restfb request?

I am using FacebookClient class and publish function when requesting. I want to shorten timeout times. How can I do it?
Enes Körhan's user avatar
0 votes
1 answer
545 views

What's the correct way to obtain a page access token with restfb?

From my application I need to post images in a photo album of a Facebook Page. Following resfb docs I'm implementing the OAuth flow. In particular I created the login url this way: FacebookClient ...
davioooh's user avatar
  • 24k
0 votes
0 answers
104 views

Restfb - Why when I fetch my admined groups the app throws OAuthException: (#200) Permissions error (code 200, subcode null)

I'm programming in Java and I'm trying to fetch all the Facebook groups which I am the admin. Thus, I've created an app called "Secrets" in Facebook Graph API Explorer and checked all the ...
Eli Van Rock's user avatar
0 votes
1 answer
918 views

how to add restfb. jar to maven project on Apache NetBeans IDE 11.1? No libraries category in Project - >properties

I have a project in which i use Apache Netbeans IDE 11.1 and I want to use Facebook API by adding "restFB.jar" to my project in previous versions of NetBeans, there was "Libraries" category in ...
Eng.mohammad's user avatar
0 votes
1 answer
377 views

Is there any way to get feeds from public facebook pages using spring social, restfb, etc

I am trying to get feeds of public facebook pages in my java application. I am using graph api. I keep getting an error. Error listed below. I have generated the access token several times. ...
Affan Daud Khan's user avatar
0 votes
2 answers
266 views

Receive Userobject but every entry is null (facebook restfb)

I'm building a form and want to fetch fields like "first_name" and "last_name" by e.g. facebook or google data but only receive an object with every entry is "null" I've tryed go add a custom ...
John Johnson's user avatar
0 votes
1 answer
76 views

How to post Video with custom thumbnail picture using RestFB?

I can publish video with description using RestFB. I want to add thumbnail picture to video. How can I do that? I tried to add some Parameter when publish as Parameter.with("thumb", BinaryAttachment....
alien man's user avatar
0 votes
1 answer
480 views

How to publish to Instagram with RestFB in Java?

I'm trying to do a simple app that can publish photos to my business Instagram page. I've been looking around on the internet and I couldn't find a way to publish on it. The Business Account in ...
Dragon Of War's user avatar
-1 votes
1 answer
100 views

How do I retrieve video custom labels through the RestFB API using Java?

I'm creating a java application that pulls data from facebook videos using RestFB. How can I retrieve the custom labels from each video? Although I'm able to pull the normal data from each video, ...
Tom Good's user avatar
-1 votes
1 answer
414 views

Not able to post in my facebook wall using java

I am trying to post a message on my facebook wall using Java. I have marked all the permissions. But I am getting the exception "FacebookOAuthException". Kindly help in resolving this. Thanks in ...
Kutty's user avatar
  • 722
0 votes
1 answer
60 views

How to retrieve user ids of all users of a fb graph application?

I cannot find a method in restfb to find all the userids of the users who have connected to my facebook application. I am using fbgraphapi version 3.2 I have tried an old method, friends.getAppUsers, ...
RRux's user avatar
  • 1
0 votes
0 answers
583 views

Get Instagram emails through Facebook graph API

I have an application, that obtains user's Facebook access token with instagram_basic permission and gets information about the user's Facebook and Instagram pages. I am able to get Instagram ...
lopushen's user avatar
  • 1,127
0 votes
1 answer
164 views

Comment Count API Facebook Restfb Java

I've been programming a lot with restfb, but I'm not able to do a counting of comments, only the comments without the answers, the image can better illustrate.enter image description here Example ...
Ruberlan Wesley's user avatar
0 votes
1 answer
101 views

RestFB Batch Request Parameters not accounted

I am using RESTFB for my facebook desktop client. I have this piece of code. for (String page : pageIds) { requests.add(new BatchRequest.BatchRequestBuilder((page + "/feed")).body(...
Abhijeet's user avatar
  • 687
-1 votes
1 answer
163 views

Get all photos from posts on a Page

I have the necessary permissions from facebook. I am using RESTFB, I see the methods getFullPicture and getPicture in Post.class but unable to make anything out of it. How to get all the photos from a ...
Abhijeet's user avatar
  • 687
1 vote
0 answers
548 views

How do I get monetization insights for my page with Facebook API using java?

For some reason i get the error: "Received Facebook error response of type OAuthException: (#200) Monetization metrics are only visible for Page admins with access to monetization insights. (code 200,...
Tom Good's user avatar
1 vote
1 answer
996 views

How to access Data from posts in FB pages

I have a requirement of getting data, to be specific, images from posts on those public pages in FB. I registered an app on Facebook and tried to access the page data it says: To use 'Page Public ...
Abhijeet's user avatar
  • 687
0 votes
0 answers
296 views

How do I access 'me/accounts' access tokens through java using restfb?

I'm trying to access the details of the Facebook pages I'm an admin on through restfb. I can get my user details but when I try to get the details from 'me/accounts' it just returns null. I've tried ...
Tom Good's user avatar
0 votes
1 answer
915 views

RestFB: Getting list of users who liked a post

I need to get the name of each like on each post on a group page. Since I first have to get some data from the original post, I'm trying to make a connection then iterate through the likes and get a ...
Jackie's user avatar
  • 145
-1 votes
2 answers
568 views

How do i use RestFB IgUser getBusinessDiscovery()?

In the FB Graph API explorer the call to get business_discovery data uses the Instagram id for any user (in this case my own account) and uses a "username" to indicate the 3rd-party account from which ...
Reinaldo's user avatar
  • 131
0 votes
1 answer
216 views

Login in Facebook using restfb API (Java)

public void login() { String domain = "https://www.iscte.pt/"; String appId = "27298787851280"; String authUrl = "https://graph.facebook.com/oauth/authorize?type=user_agent&client_id="+...
Mariana's user avatar
1 vote
1 answer
1k views

RestFB instagram integration

Does anyone has some experience with this? I was trying to find some tutorial for basic operations at least, I found only RestFb java docs, which is not very descriptive. What I need: getting ...
Stanislav Skotnicky's user avatar
1 vote
1 answer
138 views

RestFB - How to verify Application Id from received User Access Token

In RestFB, after getting Facebook Client Object through User access token FacebookClient facebookClient = new DefaultFacebookClient(accessToken, VERSION_2_12); How to verify the application Id for ...
srv's user avatar
  • 432
0 votes
0 answers
151 views

Obtain Facebook Events using restfb

I need to obtain all public events from my fb page. It's not possible using an App access token anymore: "Requires a valid Page or User access token with basic permissions." - https://developers....
dtrunk's user avatar
  • 4,715
0 votes
0 answers
230 views

Upload video to Facebook page with Graph API - RestFB

I've been trying to upload a video to my FB page using the Graph API through RestFB Java library. I am having an issue with the access token when accessing it through the Graph API explorer. To ...
Usman Khan's user avatar
0 votes
1 answer
37 views

Facebook Api null exception

I'm trying to get like data or comment data but the .getData() always return null and i don't know why My code: @SuppressWarnings("deprecation") FacebookClient fClient = new ...
CriticalError's user avatar
0 votes
1 answer
105 views

RestFB getting Conversations

Iam using restfb to get in touch with Facebook from our application. I have link to the conversation https://www.facebook.com/prasannapatireddy/posts/234992897106899?comment_id=263969987542523 Now ...
user3278232's user avatar
0 votes
0 answers
153 views

Before May 1st, I could use the RestFB upload video, but now how I could upload video use by RestFB 2.8.0?

1, get authorizeURL FacebookClient client = new DefaultFacebookClient(Version.LATEST); ScopeBuilder scope = new ScopeBuilder(); scope.addPermission(FacebookPermissions....
abner du's user avatar
3 votes
2 answers
2k views

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 ...
anks's user avatar
  • 79
0 votes
2 answers
115 views

Resfb OAUTH Token Never expires

What kind of permission do I need for the application that can read posts and comments from Facebook public pages. I don't have a web or Mobile Application. I want to run the code from my PC using ...
Muhammad Shahid's user avatar
0 votes
1 answer
68 views

RestFB - I can only get 5 friends from friend list

This is my code: Connection<User> myFriends = fb.fetchConnection("me/friends", User.class); myFriends.getData(); //List size just = 5 myFriends.getTotalCount(); // this method return 52 (I ...
kien vu's user avatar
  • 75
1 vote
0 answers
128 views

android - Get facebook page post without user login

I'm trying to create an android app that shows the facebook public page post. I tried to use facebook android sdk and it seems that the app needs to be review but my app does'nt need to login the user,...
user avatar

1
2 3 4 5
8