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 api: what is the replacement for all the feed_* methods?
I see all the feed_* methods are deprecated... (I am using version 3.0.2).
What replaces them? How do I publish something to the user's feed.

flybywire
- 261,858
- 191
- 397
- 503
0
votes
1 answer
facebook-java-api: fql_query returns null
I'm trying to fetch logged-in first name using fql_query.
i tried the following code:
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import javax.servlet.http.*;
import javax.servlet.*;
import…

ufk
- 30,912
- 70
- 235
- 386
0
votes
1 answer
Redirecting Facebook 'offline_access' permission page
I am trying to get users' permission for 'offline_access' in an iFrame Facebook application coded with the Facebook Java API. I understand that I need to obtain an 'indefinite session key' after the users approves my application. Currently, I can…

tomato
- 5,644
- 13
- 43
- 48
0
votes
2 answers
facebook4j retrieve different image size from my facebook posts
i am using facebook4j to load home posts facebook.getHome() and i am getting the profile image and the post image as follows:
facebook4j.User fromUser = facebook.getUser(fbHomePost.getFrom().getId(),
new Reading().fields("picture"));
if…

Sameeh Harfoush
- 610
- 1
- 8
- 22
0
votes
1 answer
GET photos from Facebook Event wall (including public photos of not-friends)
I have been trying to issue a GET request to Facebook using the graph API to retrieve all the photos posted to an event wall. I want to have them so they can be shown like a "living scrapbook" on the TV screen.
I issued a GET request to…

Avogado
- 124
- 3
0
votes
1 answer
Combined FaceBook client and server side authenticaion
I have the following use case
My application on iOS is using the FaceBook iOS SDK to authenticate with FB
The application then make a REST call over https to my server to register the FB account to their service account (the service I am…

user1177292
- 273
- 6
- 18
0
votes
1 answer
Can I import the friend's Email Address or Phone Number from Facebook through javascript api?
Is it require any permission except allow to my app. My code is as follows..
FB.api({ method: 'fql.query',
query: 'SELECT name,pic_square,birthday,sex,profile_url,website,email,email_hashes FROM user
WHERE uid='+friend.id },
…
0
votes
0 answers
Facebook post text on wall - access token always NULL
I am dealing for a long time with this problem. I have registered my app on facebook but I stil getting this error:
{"error":{"message":"An active access token must be used to query information about the current…

Smolda
- 882
- 5
- 13
- 34
-1
votes
1 answer
How to set callback_url to facebook subscription to get facebook realtime updates using java graph api?
I have used the below link to set the subscription for facebook…

Ram
- 51
- 1
- 1
- 2
-1
votes
1 answer
How to Post of facebook wall during pageload using javascript api?
The below code works perfectly.. On clicking the fb:login-button, it posts the message on facebook wall of the person who has logged in.
But, i want this to happen immediately after the page loads and not after clicking the button. If the user is…

Anuya
- 8,082
- 49
- 137
- 222
-2
votes
1 answer
Java Desktop Application which connects to Facebook
I have to develop a Java application which connects to Facebook and allows me to sign in and chat with my friends. I did a lot of research on the internet but I couldn't find a way to do it, so please can someone help me.

Bogdan Chende
- 179
- 1
- 3
- 10
-3
votes
1 answer
I should want to publish post from by java web application (tomcat)
I've created a facebook software that allow a web application (tomcat) to publish a post in my wall.
I used facebook-java-api-3.0.2 library and for make this operation FacebookJsonRestClient.stream_publish() method.
In the posts are present message,…

Stefano Errani
- 1
- 1