File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/main/java/org/scribe/builder/api Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 11package org .scribe .builder .api ;
22
3- import org .scribe .exceptions .*;
43import org .scribe .model .*;
54import org .scribe .utils .*;
65
76public class FacebookApi extends DefaultApi20
87{
98 private static final String AUTHORIZE_URL = "https://graph.facebook.com/oauth/authorize?response_type=token&client_id=%s&redirect_uri=%s" ;
9+
1010 @ Override
1111 public String getAuthorizationUrl (OAuthConfig config )
1212 {
13- if (OAuthConstants .OUT_OF_BAND .equals (config .getCallback ()))
14- throw new OAuthException ("Facebook does not support oob authentication." );
13+ Preconditions .checkValidUrl (config .getCallback (), "Must provide a valid url as callback. Facebook does not support OOB" );
1514 return String .format (AUTHORIZE_URL , config .getApiKey (), URLUtils .percentEncode (config .getCallback ()));
1615 }
1716}
You can’t perform that action at this time.
0 commit comments