Share via


FacebookClientExtensions.GetCurrentUserPermissionsAsync Method

Gets the permissions granted by the current user.

Namespace:  Microsoft.AspNet.Mvc.Facebook.Client
Assembly:  Microsoft.AspNet.Mvc.Facebook (in Microsoft.AspNet.Mvc.Facebook.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function GetCurrentUserPermissionsAsync ( _
    client As FacebookClient _
) As Task(Of IList(Of String))
'Usage
Dim client As FacebookClient 
Dim returnValue As Task(Of IList(Of String))

returnValue = client.GetCurrentUserPermissionsAsync()
public static Task<IList<string>> GetCurrentUserPermissionsAsync(
    this FacebookClient client
)
[ExtensionAttribute]
public:
static Task<IList<String^>^>^ GetCurrentUserPermissionsAsync(
    FacebookClient^ client
)
static member GetCurrentUserPermissionsAsync : 
        client:FacebookClient -> Task<IList<string>> 
public static function GetCurrentUserPermissionsAsync(
    client : FacebookClient
) : Task<IList<String>>

Parameters

  • client
    Type: FacebookClient
    The client.

Return Value

Type: System.Threading.Tasks.Task<IList<String>>
A collection of permissions.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type FacebookClient. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.108) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.108).

See Also

Reference

FacebookClientExtensions Class

Microsoft.AspNet.Mvc.Facebook.Client Namespace