Changed the Facebook example to conform to the OAuth 2.0 server-side flow
This commit is contained in:
1 parent
db37744fa3
commit
de8f0d621d
1 file changed
+3
-4
@@ -16,14 +16,13 @@ public class FacebookExample
|
||||
public static void main(String[] args)
|
||||
{
|
||||
// Replace these with your own api key and secret
|
||||
String apiKey = "151212568269315";//"your_api_key";
|
||||
String apiSecret = "783080a95ff0e1e7266c8022b2e95fa2";//"your_api_secret";
|
||||
String apiKey = "your_app_id";
|
||||
String apiSecret = "your_api_secret";
|
||||
OAuthService service = new ServiceBuilder()
|
||||
.provider(FacebookApi.class)
|
||||
.apiKey(apiKey)
|
||||
.apiSecret(apiSecret)
|
||||
//.callback("http://www.example.com/oauth_callback/")
|
||||
.callback("https://github.com/diegossilveira/")
|
||||
.callback("http://www.example.com/oauth_callback/")
|
||||
.build();
|
||||
Scanner in = new Scanner(System.in);
|
||||
|
||||
|
||||
Reference in new issue
Block a user