The Facebook Java API represents the java SDK for the Facebook Ads API (aka Marketing API) which is used by application developers to create, manage and measure ad campaigns that run on Facebook.
Questions tagged [facebook-java-api]
87 questions
0
votes
1 answer
Facebook java business sdk 7.0.0 lib is missing AdsInsights class member data
Marketing API v7.0 (java lib: facebook-java-business-sdk.7.0.0)
I recently jumped from v5.0 to v7.0 and discovered that the following fields disappeared from the AdsInsights…

Rich Johns
- 81
- 4
0
votes
1 answer
Uploading Image in Friend's Wall/account in Facebook Through Android
I want to upload an image to my friend's account/wall using Facebook Api Through My application in android.
I am able to upload the image to my account, but now I am trying to make it more functional and trying to upload the image on friend's…

Jaydeep Khamar
- 5,975
- 3
- 32
- 30
0
votes
1 answer
How to get a Facebook Ad Account's Conversions using the Java FB Business SDK?
I'm trying to get the clicks, spend, and conversions from an Ad Account over a certain time frame, so I downloaded sample code from FB to do so. After a few adjustments I was able to get it running, but it only prints the clicks and spend.
I…

Robert Johnstone
- 21
- 1
- 4
0
votes
1 answer
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 post comment facebook
My code
Post post =…

Ruberlan Wesley
- 1
- 1
0
votes
1 answer
AdSets api call Facebook
I am using Java SDK for marketing API from Facebook. I have problems with reading the Insights. I call the adsets of my account and for each adset I call the getInsights() function. Between requests for insights of tow different adsets I have a…

Mara M
- 153
- 1
- 1
- 10
0
votes
1 answer
Does an app need to be public for Marketing API use only
I am a developer and to use the marketing API I must have an app. I have this app and it is currently in development mode. Is it necessary to make this app public?
My initial thinking was 'no' and I have been successfully using the API via this…

Al Ducent
- 288
- 2
- 6
0
votes
1 answer
Java SDK for Facebook Ads API 2.10 missing AdsInsights.getFieldImpressionDevice() method
Currently using Facebook Ads SDK for Java v2.9 and trying to upgrade to v2.10 or v2.11. However, neither of the newer versions has the method getFieldImpressionDevice on the AdInsights object? I haven't found any change log info that discusses a…

Al Ducent
- 288
- 2
- 6
0
votes
1 answer
Unable to get ad insights in Facebook's Marketing API
As described in the marketing API, I have registered an app got my app key and and id, generated a token with ads permissions, list pages permission as well. The app is not yet submitted for approval.
When I try to get the list of ad accountsz…

NikhilWanpal
- 2,960
- 3
- 23
- 40
0
votes
1 answer
unknown host exception while accessing graph.facebook.com
I'm getting an java.net.unknownhostexception while accessing the URL but i'm able to access through browser.
public static void main(String[] args) throws IOException, JSONException`enter code here`
{
JSONObject json =…

harish
- 143
- 3
- 10
0
votes
2 answers
Android Facebook "You have already authorised appname"
I have integrated the Facebook SDK into my Android app (authenticating to Firebase). I am requesting "email" and "public_profile" permissions. I am testing this on a phone without the Facebook app, so the following is happening in Chrome through…

Jakob Kristensen
- 1,647
- 3
- 12
- 22
0
votes
2 answers
Facebook Login With Android
i need help to integrate facebook with my android app
my manifest are this:

Rhuan Caetano
- 285
- 3
- 9
0
votes
1 answer
FacebookXmlRestClient NotSerializableException on Google AppEngine
I've tried to follow the facebook-java-api filter example but i got this expection when
i attempted to save to the client object to the session. The code is being hosted on the google appengine platform.
java.lang.RuntimeException:…

emeraldjava
- 10,894
- 26
- 97
- 170
0
votes
0 answers
Facebook integration in web application
How to solve error of getting same user information in login with Facebook for different user in my web application developed in Java?
Here is the main connection class to connect with facebook.
public class FBConnection
{
public static final…

Nilesh Patel
- 127
- 2
- 9
0
votes
1 answer
Get posts from a user using restfb
I want to fetch the public posts from a user(not page) using restfb. I have added all permission in User Data Permissions and Extended Permissions in Graph API Explorer. Still i am not getting the results.
But i can take the posts from a page using…

din_oops
- 698
- 1
- 9
- 27
0
votes
1 answer
Is there a way to fetch more than 25 photos from an album with Facebook4j
I am using facebook4j to fetch photos from albums on a facebook webpage in order to make a gallery on my website.
However I cannot get more than 25 photos at once (even if there is more in the album and that the count is correct…

Labe
- 1,262
- 2
- 20
- 30