com.liferay.portal.kernel.facebook
Class FacebookConnectUtil
java.lang.Object
com.liferay.portal.kernel.facebook.FacebookConnectUtil
public class FacebookConnectUtil
- extends java.lang.Object
- Author:
- Wilson Man, Brian Wing Shun Chan, Mika Koivisto
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FacebookConnectUtil
public FacebookConnectUtil()
getAccessToken
public static java.lang.String getAccessToken(long companyId,
java.lang.String redirect,
java.lang.String code)
throws SystemException
- Throws:
SystemException
getAccessTokenURL
public static java.lang.String getAccessTokenURL(long companyId)
throws SystemException
- Throws:
SystemException
getAppId
public static java.lang.String getAppId(long companyId)
throws SystemException
- Throws:
SystemException
getAppSecret
public static java.lang.String getAppSecret(long companyId)
throws SystemException
- Throws:
SystemException
getAuthURL
public static java.lang.String getAuthURL(long companyId)
throws SystemException
- Throws:
SystemException
getFacebookConnect
public static FacebookConnect getFacebookConnect()
getGraphResources
public static JSONObject getGraphResources(long companyId,
java.lang.String path,
java.lang.String accessToken,
java.lang.String fields)
getGraphURL
public static java.lang.String getGraphURL(long companyId)
throws SystemException
- Throws:
SystemException
getProfileImageURL
public static java.lang.String getProfileImageURL(javax.portlet.PortletRequest portletRequest)
getRedirectURL
public static java.lang.String getRedirectURL(long companyId)
throws SystemException
- Throws:
SystemException
isEnabled
public static boolean isEnabled(long companyId)
throws SystemException
- Throws:
SystemException
isVerifiedAccountRequired
public static boolean isVerifiedAccountRequired(long companyId)
throws SystemException
- Throws:
SystemException
setFacebookConnect
public void setFacebookConnect(FacebookConnect facebookConnect)