Questions tagged [facebook4j]

Facebook4J is an open-sourced, mavenized Java library. With Facebook4J, you can easily integrate your application with the Facebook API. Facebook4J is an unofficial library.

Facebook4J is an unofficial Java library for the Facebook Graph API.

Facebook4J is featuring:

59 questions
6
votes
2 answers

Getting posts from a page using Facebook4j api

I'm wondering if there's a way to use the Facebook4J API to get all (or even recent) posts from a facebook page? I know it's possible to get all posts from a user's wall or feed, but I can't find anything in the API or the documentation that shows…
YYZ
  • 749
  • 4
  • 8
  • 18
3
votes
0 answers

Facebook API not returning message_tags with app token

I'm trying to get users mentions (message_tags) included in comments. I execute this query from Facebook explorer : GET/v2.10/ 1575295176130351_1877507262575806?fields=comments{message_tags} When I'm authentified as an application with an app token…
3
votes
2 answers

Facebook API get new comments to posts

I am using Facebook4j to access the Facebook API for a Page. I can get a list of new posts for a Page, using connection.getFeed() and get the comments for a Post using: post.getComments() But I also want to be able to get new comments to the page…
James
  • 17,965
  • 11
  • 91
  • 146
2
votes
1 answer

Replying to comment with facebook4j

I want to reply a comment of my page's post with facebook4j. Now I can only retrieve replies of comment. I can't reply the comment. I have comment id. What should I do? Does facebook4j support to reply specific comment? Thanks
Pyae Phyo Aung
  • 161
  • 1
  • 1
  • 10
2
votes
0 answers

How To Post a Sale to a Facebook Group using Facebook4J?

So I'm working on an application that would post something that I want to sell to all of the facebook groups that I'm a part of. I've sort of familiarized myself with Facebook4J already (I can log in, post status, etc....), but I don't know how to…
2
votes
1 answer

Unable to read facebook comments using facebook4j

I am trying to read facebook comments from a post using facebook4j library.And it returns only post but not comments for that post. It is always return empty even there are more comments in any post. Could anyone guide me the correct way to get all…
2
votes
2 answers

Facebook API send messages

I'm trying to figure out how to, or if it is allowed or possible to send messages using the Facebook API. I am using the Facebook graph API from Facebook4j. It seems that I can get a user's messages from getInbox(), but I can't see anyway to create…
James
  • 17,965
  • 11
  • 91
  • 146
2
votes
1 answer

facebook4j post from is null

I am using the Facebook API from Java with Facebook4j. I have two servers, on the one that uses Facebook 2.3 API when I get the from of a post, Post post = connection.getFeed().get(0); post.getFrom(); I get the user, but in the server that uses…
James
  • 17,965
  • 11
  • 91
  • 146
2
votes
1 answer

how to post a picture to user group using facebook4j api using facebook groupid

How to post a picture to user group using facebook4j api using facebook groupid. PostUpdate post = new PostUpdate(new URL("projectUrl")).picture(new URL("projectUrl/waz24.jpg")).name("Facebook4J - A Java library for the Facebook Graph…
1
vote
1 answer

How to apply permissions with Facebook4j?

I downloaded the latest jar file from: http://facebook4j.github.io/en/index.html This is my code: Facebook fb = new FacebookFactory().getInstance(); fb.setOAuthAppId("ID", "Pass"); fb.setOAuthAccessToken(new AccessToken(accesstoken)); // I get from…
kien vu
  • 75
  • 2
  • 9
1
vote
0 answers

Update facebook users profile informations via Graph API

I've created test users in my fb app and I need to personilize their profiles adding work positions, city, phone number, addresses and other informations. Is it possible to do that programmatically? Cause I've tested some Java API (Spring Social…
1
vote
1 answer

How to get Facebook Rate Limit Header using Facebook4J?

According to Facebook Docs If your app is making enough calls to be considered for rate limiting by our system, we return an X-App-Usage HTTP header. [...] When any of these metrics exceed 100 the app will be rate limited. I am using Facebook4J to…
lgfischer
  • 1,718
  • 3
  • 13
  • 22
1
vote
1 answer

Why does the function getcommentcount of facebook4j return null

I'm using facebook4j to get the Number of replies of a comment but, actually, it returns null whatever the id_comment is Here is the code that i'm using to get the comment ; i have the ids in an excel file enter code herepublic class…
1
vote
0 answers

Facebook4j Getting the id of who is posting a comment

Good morning. Actually I was using netvizz to get data from some pages, but I need more information than what I get. Now, I have the id_comment, and I need the id of the user who posted this comment. I'm using this code and I need to know who…
1
vote
0 answers

facebook4J always returns null when calling getUser()

So I got an application that I want to some facebook data with the help of facebook4j library. My method below takes an users facebook id and tries to retrieve the user profile with it, but it always returns null. I have checked serveral id¨s but…
juppe
  • 11
  • 1
1
2 3 4