Explicited that you need a personal pair of keys to use Facebook's example
This commit is contained in:
1 parent
1f055d7eeb
commit
8e23e81c57
1 file changed
+5
-2
@@ -16,10 +16,13 @@ public class FacebookExample
|
|||||||
|
|
||||||
public static void main(String[] args)
|
public static void main(String[] args)
|
||||||
{
|
{
|
||||||
|
// Replace these with your own api key and secret
|
||||||
|
String apiKey = "your_api_key";
|
||||||
|
String apiSecret = "your_api_secret";
|
||||||
OAuthService service = new ServiceBuilder()
|
OAuthService service = new ServiceBuilder()
|
||||||
.provider(FacebookApi.class)
|
.provider(FacebookApi.class)
|
||||||
.apiKey("anonymous")
|
.apiKey(apiKey)
|
||||||
.apiSecret("anonymous")
|
.apiSecret(apiSecret)
|
||||||
.callback("http://www.example.com/oauth_callback/")
|
.callback("http://www.example.com/oauth_callback/")
|
||||||
.build();
|
.build();
|
||||||
Scanner in = new Scanner(System.in);
|
Scanner in = new Scanner(System.in);
|
||||||
|
|||||||
Reference in new issue
Block a user