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
11
votes
5 answers
Upload photo to Facebook with Facebook Android SDK in Android
I'm new to Android. I'm searching for load photo to facebook by authorization, getting access_token. How to do this? Please give me a sample code in Java.

sanjana
- 119
- 1
- 1
- 3
8
votes
4 answers
FB error:Expected 1 '.' in the input between the postcard and the payload
I have finished my app and then tried it on 3 FB accounts and it was ok,
but the 4th have a permanent error (it cannot get an access token):
com.restfb.exception.FacebookOAuthException: Received Facebook error response of type OAuthException:…

Talik
- 103
- 1
- 5
8
votes
5 answers
Is there an up-to-date Facebook Java SDK?
I can't seem to find one that's been updated recently. If none, is there a good Java library for doing the necessary signature verification, base64 decoding, etc operations needed to interact with Facebook's API?
UPDATE: I'm using Spring Social…

at.
- 50,922
- 104
- 292
- 461
6
votes
1 answer
Facebook Ads API how to get all campaigns that are in draft status
I have created a Ads and campaigns in Facebook Ads Manager. But they are not yet published
I have tried the following API call to get a list of all the campaigns I have created,
/v3.2/act_XXXX/campaigns
But I am getting an empty response,
{
…

r123
- 578
- 8
- 26
5
votes
4 answers
Extracting user id from Facebook Javascript SDK session object
I am using Facebook's Javascript SDK "FB.ui" to pull up an OAuth dialog. Once you click allow, I need to capture the session object, extract the user id and use it further in my script. For some reason I cannot get this working properly, I keep…

Yev
- 2,051
- 9
- 27
- 46
5
votes
3 answers
Is it possible to have a 'background' Facebook App?
I need a Facebook application that kind of sit in the 'background' of user operations. Once the app is installed by the user, it will keep on sending the user's status updates, new friend connections etc to another web app of mine. It will keep on…

tomato
- 5,644
- 13
- 43
- 48
5
votes
2 answers
Login to facebook a button to open a new activity
I am trying to login to facebook once the user clicks on a button and then once successfully logged in, the new activity is created.
This is the code of the main activity so far!
import android.app.Activity;
import android.content.Intent;
import…

defiant
- 3,161
- 11
- 41
- 65
4
votes
1 answer
Are there any good Java API for facebook?
I've played around a bit with twitter4j and found it absolutely wonderful. Now I've been looking into the equivalent for facebook but so far haven't had much luck finding a decent project.
I looked into facebook-java-api but it appears that they…

Aaron
- 23,450
- 10
- 49
- 48
3
votes
2 answers
Android ACTION_SEND Intent and Google Analytics - how do I know what they picked?
We are using Google Analytics to track what features of our application are being used and how, but this question could also apply to any situation where you want to know what a user did after calling the ACTION_SEND Intent.
Basically, I want to use…

Chris Lalande
- 213
- 2
- 12
3
votes
0 answers
creating facebook short lived token from long lived token
Our app does not have a Facebook login. We have our own login that does not tie to Facebook login any way.
Our server uses a never expire token to make api calls (server to server) as majority of the calls will need to update/manipulate things in…

Bhavin
- 427
- 3
- 15
3
votes
1 answer
OOAuthException: An active access token must be used to query information about the current user
I am using restfb java sdk for adding facebook login in my app
i have already created a test app but when i try to get the detail of the user following error message displayed
[FacebookOAuthException: Received Facebook error response of type…

swaheed
- 3,671
- 10
- 42
- 103
3
votes
0 answers
automatically minimized chat tabs
We must call fu.init in hideFlashCallback to pause our game. When the user is in the another page to open chat tabs to our game, the game will pause automatically.
Is there a method like FB API or something at the beginning of the loading game,…

Xiang Ubao
- 31
- 1
2
votes
1 answer
Get access_token with java
After my request for the access_token i see it on a blank html page, on FB url and not on my address. Exactly like in FB doc:
http://developers.facebook.com/attachment/auth_token.png
I want it to redirect to my url so i can do the check:
…

Talik
- 103
- 1
- 5
2
votes
4 answers
How can i get access_token and then use it?
In my web application i want users to login with their facebook account. I am doing it by redirecting url.
…

Piscean
- 3,069
- 12
- 47
- 96
2
votes
1 answer
How to download facebook report using Insights API Asynchronous Jobs?
Hi I'am new to facebook marketing API. I want to download account complete report in csv format for which I am using Insights API Asynchronous Jobs , Using which I am able to get "report_run_id" and after that I made api request for this link .Its…

eshwar chettri
- 310
- 4
- 16