Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

Fix formatting README #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#Facebook client
# Facebook client

[![Build Status](https://travis-ci.org/jvm-bloggers/jvm-bloggers-facebook-client.svg?branch=master)](https://travis-ci.org/jvm-bloggers/jvm-bloggers-facebook-client)

##Configuration
## Configuration

The application requires two parameters at startup: application secret and user access token.

###Application secret
### Application secret
To get the application secret you have to be in admin role of [JVM Bloggers on Facebook](https://www.facebook.com/jvmbloggers).

Go to [the application dashboard](https://developers.facebook.com/apps/984518258323702/dashboard/). The secret is placed on the main page of it.

###Access token
### Access token
To grab a user access token two calls have to be made to Facebook Graph API:
* the first one for an authentication code:
`GET https://www.facebook.com/dialog/oauth?client_id={app-id}&redirect_uri={redirect-uri}&scope=manage_pages,publish_pages`
Expand All @@ -22,19 +22,19 @@ To grab a user access token two calls have to be made to Facebook Graph API:

`{redirect-uri}` can be anything based on *App Domain* defined on [the application settings page](https://developers.facebook.com/apps/984518258323702/settings/).

##Running
## Running

You need to **have kafka running** on the address specified in application.conf (by default localhost:9092) before starting the service.

###Docker
### Docker
To generate a Docker image simply run:
`./gradlew buildDocker`
The application as a Docker container can be started with the following command:
`docker run -e APP_SECRET=... -e ACCESS_TOKEN=... docker_image_name`

###IDE
### IDE
You can start the application from IDE as well.

The main class is `com.jvm_bloggers.facebook.client.Application`.

Two VM parameters have to be provided: `-Dfacebook.app.secret=...` and `-Dfacebook.user.access.token=...`
Two VM parameters have to be provided: `-Dfacebook.app.secret=...` and `-Dfacebook.user.access.token=...`