https://github.com/restfb/restfb
RestFB is a simple and flexible Facebook Graph API client written in Java.
https://github.com/restfb/restfb
facebook facebook-ads facebook-messenger graph-api instagram-api java messenger-platform threads-api
Last synced: about 13 hours ago
JSON representation
RestFB is a simple and flexible Facebook Graph API client written in Java.
- Host: GitHub
- URL: https://github.com/restfb/restfb
- Owner: restfb
- License: mit
- Created: 2011-09-11T03:06:54.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2026-01-19T15:48:31.000Z (7 days ago)
- Last Synced: 2026-01-19T16:35:40.927Z (7 days ago)
- Topics: facebook, facebook-ads, facebook-messenger, graph-api, instagram-api, java, messenger-platform, threads-api
- Language: Java
- Homepage: http://restfb.com
- Size: 18 MB
- Stars: 760
- Watchers: 58
- Forks: 423
- Open Issues: 33
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README


# RestFB (http://restfb.com)
## What it is
RestFB is a pure Java Facebook Graph API client with no external dependencies.
It was created by [Mark Allen](http://revetkn.com) and is maintained by [Norbert Bartels](https://www.phpmonkeys.de/) along with a worldwide team of contributors.
## Licensing
RestFB uses other open-source software - see the `LICENSE.*.txt` files.
RestFB itself is open source software released under the terms of the MIT License.
## Installation
RestFB is a single JAR - just drop it into your app and you're ready to go. Download it from Maven Central:
[](https://mvnrepository.com/artifact/com.restfb/restfb)
## Building it Yourself
Just type
mvn package
and the jars will be built and can be found in the `target` folder.
## Usage and examples
We provide well-curated [documentation](https://restfb.com/documentation/) with many code examples. These
are all clearly commented and give a good overview of the functionality RestFB provides.
Additionally, you can take a look at the integration tests [here](https://github.com/restfb/restfb/tree/master/src/test/java/com/restfb/integration) on GitHub. Some interesting use cases are exercised there and you can get a good idea of the different features that are provided by RestFB.
There is also the [example project](https://github.com/restfb/restfb-examples) on GitHub. It contains a suite of tools that can be triggered via Maven calls. Additionally, for the fetching and publishing example, you can find
a JavaFX code sample, that shows how you can use an embedded browser to fetch a user access token.
## Sponsors and Backers
You like RestFB and you like to support the development, but you cannot contribute any code? Then we have good news for
you. We added the *sponsor* button to this repository, and you can join the list of sponsors with a simple click.
Please check the different tiers. We have a suitable for everyone. Depending on the tier, you even get a place
on the official [RestFB](https://restfb.com) website with your name, company logo, link and more.
## Getting in touch
Facebook has suspended the RestFB page without providing any clear or understandable reason for the action.
Therefore we cannot provide support via Facebook anymore - sounds strange, but it is what it is.
* **[GitHub Issues](https://github.com/restfb/restfb/issues/new)**: If you have ideas, bugs, or problems with RestFB, just open a new issue.
* **[Bluesky](https://bsky.app/profile/restfb.com)**: You can follow us on BlueSky to get the latest updates.
* **[LinkedIn](https://www.linkedin.com/company/restfb/)**: You can get in touch with us here and get the latest updates:
* **[Stackoverflow](https://stackoverflow.com/questions/tagged/restfb)**: Questions about RestFB are answered on Stackoverflow. We'll help you there, too.
* **[Google Groups](http://groups.google.com/group/restfb)**: If you'd like to talk to other RestFB users, just send a message to our Google Group!