396
questions
1
vote
0
answers
35
views
RestFB page post with param scheduled_publish_time
public static void uploadVideo(String token, String urlVideo) {
FacebookClient fbClient = new DefaultFacebookClient(token, Version.LATEST);
long scheduledTime = System.currentTimeMillis() / ...
0
votes
1
answer
37
views
Mocking an object without a getter
I want to mock a function that has following code -
// Getting all ad insights objects from API
Connection<AdsInsights> insightsConnection = facebookClient.fetchConnection(
adAccountId + ...
-1
votes
1
answer
87
views
How do i publish videos to a facebook page's story?
i have been trying to publish videos on a facebook page's story, but i havent been successful, i have tried using their apis and integrating with restfb as well, As for restfb, i was able to post on a ...
0
votes
0
answers
27
views
Why restfb library fails updating Facebook Page info?
I need to be able to update (using any API in JAVA) the info of my Facebook Pages, such as address, opening time hours, email, tel etc., but, I have not been successful.
I have tried restfb library ...
0
votes
0
answers
86
views
Why Facebook Page Address does not get updated Using Graph API v19.0?
I'm working with the Facebook Graph API v19.0 to update my Facebook Page's address details. According to the documentation, I can use a POST request to the /page_id endpoint with parameters I want to ...
-1
votes
1
answer
144
views
How to edit the photo of a Facebook post in Graph Facebook API?
I want to write a JAVA program to create posts including images, for our clients Facebook pages.
using this endpoint https://graph.facebook.com/{{page_id}}/photos
and defining the page_access_token, ...
0
votes
0
answers
28
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(...
-1
votes
1
answer
40
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 ...
0
votes
1
answer
77
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 ...
0
votes
2
answers
297
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 ...
0
votes
1
answer
524
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 ...
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 ...
0
votes
1
answer
1k
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.
...
0
votes
0
answers
338
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 ...
0
votes
0
answers
69
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 ...
0
votes
1
answer
79
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 ...
0
votes
0
answers
53
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 ...
0
votes
0
answers
65
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 ...
1
vote
1
answer
132
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 ...
0
votes
1
answer
564
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 ...
0
votes
0
answers
873
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,...
1
vote
2
answers
475
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/...
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 = ...
0
votes
0
answers
16
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.
...
0
votes
1
answer
90
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?
0
votes
1
answer
628
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 ...
0
votes
0
answers
116
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 ...
0
votes
1
answer
957
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 ...
0
votes
1
answer
378
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.
...
0
votes
2
answers
279
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 ...
0
votes
1
answer
80
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....
0
votes
1
answer
506
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 ...
-1
votes
1
answer
105
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, ...
-1
votes
1
answer
417
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 ...
0
votes
1
answer
71
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, ...
0
votes
0
answers
593
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 ...
0
votes
1
answer
168
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 ...
0
votes
1
answer
111
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(...
-1
votes
1
answer
173
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 ...
1
vote
0
answers
606
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,...
1
vote
1
answer
1k
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 ...
0
votes
0
answers
308
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 ...
0
votes
1
answer
1k
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 ...
-1
votes
2
answers
586
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 ...
0
votes
1
answer
217
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="+...
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 ...
1
vote
1
answer
158
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 ...
0
votes
0
answers
154
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....
0
votes
0
answers
236
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 ...
0
votes
1
answer
44
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 ...