// Path: src/main/java/org/ominidi/facebook/configuration/FacebookConfig.java
// @Getter
// @Setter
// @Configuration
// @ConfigurationProperties(prefix = "facebook")
// public class FacebookConfig {
//     private String graphAccessTokenUri;
//     private Map<String, String> page = new HashMap<>();
//     private Map<String, String> application = new HashMap<>();
// }
// 
// Path: src/main/java/org/ominidi/facebook/client/ClientFactory.java
// @Configuration
// @Import(FacebookConfig.class)
// public class ClientFactory {
// 
//     @Autowired
//     private FacebookConfig facebookConfig;
// 
//     public FacebookClient getClient() {
//         String appId = facebookConfig.getApplication().get("app_id");
//         String appSecret = facebookConfig.getApplication().get("app_secret");
// 
//         FacebookClient.AccessToken token = new DefaultFacebookClient(Version.VERSION_2_8).obtainAppAccessToken(appId, appSecret);
//         return new DefaultFacebookClient(token.getAccessToken(), appSecret, Version.VERSION_2_8);
//     }
// }
// 
// Path: src/main/java/org/ominidi/facebook/exception/ConnectionException.java
// public class ConnectionException extends Exception {
//     public ConnectionException(String message) {
//         super(message);
//     }
// 
//     public ConnectionException(String message, Throwable cause) {
//         super(message, cause);
//     }
// 
//     public ConnectionException(Throwable cause) {
//         super(cause);
//     }
// }


import java.util.Map;
import com.restfb.Connection;
import com.restfb.FacebookClient;
import com.restfb.Parameter;
import com.restfb.exception.FacebookException;
import com.restfb.json.JsonObject;
import org.ominidi.facebook.configuration.FacebookConfig;
import org.ominidi.facebook.client.ClientFactory;
import org.ominidi.facebook.exception.ConnectionException;
import org.springframework.stereotype.Repository;

package org.ominidi.facebook.repository;


@Repository
public class PageFeed implements ConnectionAware {
    private FacebookClient client;


// Path: src/main/java/org/ominidi/facebook/configuration/FacebookConfig.java
// @Getter
// @Setter
// @Configuration
// @ConfigurationProperties(prefix = "facebook")
// public class FacebookConfig {
//     private String graphAccessTokenUri;
//     private Map<String, String> page = new HashMap<>();
//     private Map<String, String> application = new HashMap<>();
// }
// 
// Path: src/main/java/org/ominidi/facebook/client/ClientFactory.java
// @Configuration
// @Import(FacebookConfig.class)
// public class ClientFactory {
// 
//     @Autowired
//     private FacebookConfig facebookConfig;
// 
//     public FacebookClient getClient() {
//         String appId = facebookConfig.getApplication().get("app_id");
//         String appSecret = facebookConfig.getApplication().get("app_secret");
// 
//         FacebookClient.AccessToken token = new DefaultFacebookClient(Version.VERSION_2_8).obtainAppAccessToken(appId, appSecret);
//         return new DefaultFacebookClient(token.getAccessToken(), appSecret, Version.VERSION_2_8);
//     }
// }
// 
// Path: src/main/java/org/ominidi/facebook/exception/ConnectionException.java
// public class ConnectionException extends Exception {
//     public ConnectionException(String message) {
//         super(message);
//     }
// 
//     public ConnectionException(String message, Throwable cause) {
//         super(message, cause);
//     }
// 
//     public ConnectionException(Throwable cause) {
//         super(cause);
//     }
// }


// Path: src/main/java/org/ominidi/facebook/repository/PageFeed.java
import java.util.Map;
import com.restfb.Connection;
import com.restfb.FacebookClient;
import com.restfb.Parameter;
import com.restfb.exception.FacebookException;
import com.restfb.json.JsonObject;
import org.ominidi.facebook.configuration.FacebookConfig;
import org.ominidi.facebook.client.ClientFactory;
import org.ominidi.facebook.exception.ConnectionException;
import org.springframework.stereotype.Repository;

package org.ominidi.facebook.repository;


@Repository
public class PageFeed implements ConnectionAware {
    private FacebookClient client;


    private FacebookConfig config;
