FacebookClientExtensions.GetFacebookObjectAsync Method (FacebookClient, String)
Gets the Facebook object located at a given path.
Namespace: Microsoft.AspNet.Mvc.Facebook.Client
Assembly: Microsoft.AspNet.Mvc.Facebook (in Microsoft.AspNet.Mvc.Facebook.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function GetFacebookObjectAsync ( _
client As FacebookClient, _
objectPath As String _
) As Task(Of Object)
'Usage
Dim client As FacebookClient
Dim objectPath As String
Dim returnValue As Task(Of Object)
returnValue = client.GetFacebookObjectAsync(objectPath)
public static Task<Object> GetFacebookObjectAsync(
this FacebookClient client,
string objectPath
)
[ExtensionAttribute]
public:
static Task<Object^>^ GetFacebookObjectAsync(
FacebookClient^ client,
String^ objectPath
)
static member GetFacebookObjectAsync :
client:FacebookClient *
objectPath:string -> Task<Object>
public static function GetFacebookObjectAsync(
client : FacebookClient,
objectPath : String
) : Task<Object>
Parameters
- client
Type: FacebookClient
The client.
- objectPath
Type: System.String
The object path.
Return Value
Type: System.Threading.Tasks.Task<Object>
A Facebook object.
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