facebook4j.api
Interface PermissionMethods

All Known Subinterfaces:
Facebook

public interface PermissionMethods

Author:
Ryuji Yamashita - roundrop at gmail.com

Method Summary
 boolean deleteAllPermissions()
          This method is an alias of: revokeAllPermissions() .
 boolean deleteAllPermissions(String userId)
          This method is an alias of: revokeAllPermissions() .
 boolean deletePermission(String permissionName)
          This method is an alias of: revokePermission(String) .
 boolean deletePermission(String userId, String permissionName)
          This method is an alias of: revokePermission(String, String) .
 List<Permission> getPermissions()
          Returns the permissions granted the current user to the current application.
 List<Permission> getPermissions(String userId)
          Returns the permissions granted a user to the current application.
 boolean revokeAllPermissions()
          Revokes all permissions from the current application.
 boolean revokeAllPermissions(String userId)
          Revokes all permissions from the current application.
 boolean revokePermission(String permissionName)
          Revokes a specific permission from the current application.
 boolean revokePermission(String userId, String permissionName)
          Revokes a specific permission from the current application.
 

Method Detail

getPermissions

List<Permission> getPermissions()
                                throws FacebookException
Returns the permissions granted the current user to the current application.

Returns:
permission names
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#permissions - Facebook Developers

getPermissions

List<Permission> getPermissions(String userId)
                                throws FacebookException
Returns the permissions granted a user to the current application.

Parameters:
userId - the ID of a user
Returns:
permission names
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#permissions - Facebook Developers

revokeAllPermissions

boolean revokeAllPermissions()
                             throws FacebookException
Revokes all permissions from the current application.

Returns:
true if revoke is succressful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#permissions - Facebook Developers

revokeAllPermissions

boolean revokeAllPermissions(String userId)
                             throws FacebookException
Revokes all permissions from the current application.

Parameters:
userId - the ID of a user
Returns:
true if revoke is succressful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#permissions - Facebook Developers

revokePermission

boolean revokePermission(String permissionName)
                         throws FacebookException
Revokes a specific permission from the current application.

Parameters:
permissionName - permission name
Returns:
true if revoke is succressful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#permissions - Facebook Developers

revokePermission

boolean revokePermission(String userId,
                         String permissionName)
                         throws FacebookException
Revokes a specific permission from the current application.

Parameters:
userId - the ID of a user
permissionName - permission name
Returns:
true if revoke is succressful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#permissions - Facebook Developers

deleteAllPermissions

boolean deleteAllPermissions()
                             throws FacebookException
This method is an alias of: revokeAllPermissions() .

Returns:
true if revoke is succressful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#permissions - Facebook Developers

deleteAllPermissions

boolean deleteAllPermissions(String userId)
                             throws FacebookException
This method is an alias of: revokeAllPermissions() .

Parameters:
userId - the ID of a user
Returns:
true if revoke is succressful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#permissions - Facebook Developers

deletePermission

boolean deletePermission(String permissionName)
                         throws FacebookException
This method is an alias of: revokePermission(String) .

Parameters:
permissionName - permission name
Returns:
true if revoke is succressful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#permissions - Facebook Developers

deletePermission

boolean deletePermission(String userId,
                         String permissionName)
                         throws FacebookException
This method is an alias of: revokePermission(String, String) .

Parameters:
userId - the ID of a user
permissionName - permission name
Returns:
true if revoke is succressful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#permissions - Facebook Developers


Copyright © 2019. All rights reserved.