Interface FacebookEndpoints
-
public interface FacebookEndpoints
Interface for accessing the Facebook Endpoints.Facebook provides several endpoints that are used for working with the Graph API and working with Facebook in general. This interface provides methods to access the different urls.
The default implementation is
FacebookEndpoints
. That class provides the access to Facebook and should be used in productive environments.This interface provides some fields with the default URLs so custom implementation can directly use these or modify the url or provide a completely custom one. This is possible without extending our default implementation.
In tests, a custom implementation can be used to mock the Facebook service. The implementing class only needs to provide urls to the mock service and the custom class is set in the
DefaultFacebookClient
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
FacebookEndpoints.Endpoint
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default String
getFacebookEndpoint()
returns the Facebook URLdefault String
getGraphEndpoint()
returns the Facebook Graph API endpoint URLdefault String
getGraphVideoEndpoint()
returns the Facebook Graph API Video endpoint URLdefault String
getInstagramApiEndpoint()
default String
getInstagramEndpoint()
default String
getInstagramOAuthEndpoint()
default String
getReelUploadEndpoint()
returns the Facebook Reel Upload endpoint URLdefault String
getThreadsApiEndpoint()
default String
getThreadsBaseEndpoint()
-
-
-
Method Detail
-
getFacebookEndpoint
default String getFacebookEndpoint()
returns the Facebook URL- Returns:
- the Facebook URL
-
getGraphEndpoint
default String getGraphEndpoint()
returns the Facebook Graph API endpoint URL- Returns:
- the Facebook Graph API endpoint URL
-
getGraphVideoEndpoint
default String getGraphVideoEndpoint()
returns the Facebook Graph API Video endpoint URL- Returns:
- the Facebook Graph API Video endpoint URL
-
getReelUploadEndpoint
default String getReelUploadEndpoint()
returns the Facebook Reel Upload endpoint URL- Returns:
- the Facebook Reel Upload endpoint URL
-
getInstagramEndpoint
default String getInstagramEndpoint()
-
getInstagramApiEndpoint
default String getInstagramApiEndpoint()
-
getInstagramOAuthEndpoint
default String getInstagramOAuthEndpoint()
-
getThreadsBaseEndpoint
default String getThreadsBaseEndpoint()
-
getThreadsApiEndpoint
default String getThreadsApiEndpoint()
-
-