Stream.getFilters
From Facebook Developer Wiki
Contents |
Description
This method returns any filters associated with a user's home page stream. You can use these filters to narrow down a stream you want to return with stream.get or when you query the stream FQL table.
Parameters
| Required | Name | Type | Description | |
| optional | uid | int | The user ID for the user whose stream filters you are returning. Note: This parameter applies only to Web applications and is required by them only if the session_key is not specified. Facebook ignores this parameter if it is passed by a desktop application. | |
|---|---|---|---|---|
| session_key | string | The session key of the logged in user. The session key is automatically included by our PHP client. Web applications don't need an active session to make this call as long as you pass a user ID and that user has an active session with your application. Desktop applications must always pass a session key. |
Example Requests
$facebook->api_client->stream_getFilters(<uid>);
Response
This method returns an array of data containing the fields from the stream_filter_(FQL) table.
FQL Equivalent
FQL queries take the form: SELECT <fields> FROM <table> WHERE <conditions>
This function is similar to doing the following FQL query, with the appropriate parameters specified (note you can SELECT any fields from the stream_filter (FQL) table):
SELECT filter_key FROM stream_filter WHERE uid=<currentUser>
Notes
You can call this method using a session secret, and not the application secret (for example, for a Facebook Connect site or desktop application).
