Question

I'm using facebook4j api (http://facebook4j.org/en/index.html) for access to user data on facebook, so for the login authorization i must provide a acess token, so i found this api: (https://github.com/fernandezpablo85/scribe-java) and from this example (https://github.com/fernandezpablo85/scribe-java/blob/master/src/test/java/org/scribe/examples/FacebookExample.java) i'm trying to get the access token, in the params builder i have to set the callback url:

OAuthService service = new ServiceBuilder()
    .provider(FacebookApi.class)
    .apiKey(Assets.FACEBOOK_APPID)
    .apiSecret(Assets.FACEBOOK_APPSECRET)
    .callback()
    .build();

But my app is client-side only, so what callback url must i provide?

Was it helpful?

Solution

See here:

redirect_uri. The URL that you want to redirect the person logging in back to. This URL will capture the response from the Login Dialog. If you are using this in a webview within a desktop app, this must be set to https://www.facebook.com/connect/login_success.html.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top