PowerExchange for Facebook User Guide

PowerExchange for Facebook User Guide

Query Parameter for Facebook Resources

Query Parameter for Facebook Resources

Use the query parameter to specify the search criteria.
When you create a Facebook data object, you specify the query parameter that the Data Integration Service uses to search for Facebook data. The query parameter must include the mandatory parameter. Each resource has one mandatory parameter.
You can use Facebook search operators in the query parameter for all the resources. The operators are defined in the Facebook developer documentation. For example, you specify the following query parameter to extract the pages that contain the keywords BMW and limit the number of results to 100:
QUERY=BMW&limit=100
The following table describes the mandatory parameter for each resource:
Resource
Mandatory Parameter
Description
Page-Feed
PAGE_ID
Page feed search. Specify the ID or name of a page for the news feed you want to retrieve from the page. For example, you specify the following parameter to extract news feed from a page:
PAGE_ID=natgeotv.india
or
PAGE_ID=62103854902
The query parameter does not support a comma separated list of IDs or names.
Page-Info
PAGE_ID
Page search. Specify the Page-Info query parameter in the following formats:
  • In the following query parameter, specify the ID of the page you want to retrieve:
    PAGE_ID=131747896861126
  • In the following query parameter, specify the name of the page you want to retrieve:
    PAGE_ID=Samsung
  • In the following query parameter, specify a list of IDs or names of the pages you want to retrieve:
    PAGE_ID=file:///export/qa_adp/FB_Page_ID.txt
Friends
USER
Current user. Specify the user ID or the Facebook operator
me
for the list of friends of the current user. For example, you specify the following query parameter to extract a list of IDs and names of the friends of the active user's profile:
USER=me
Group Feed
GROUP_ID
Group feed search. Specify the ID or name of the group for the group news feed you want to retrieve. The query parameter does not support a comma separated list of IDs or names. For example, you specify the following parameter to extract information about the news feed of the group:
GROUP_ID=Harvard
or
GROUP_ID=218871661504742
Group Info
GROUP_ID
Group search. Specify the Group Info query parameter in the following formats:
  • In the following query parameter, specify the ID of the group for the group information you want to retrieve:
    GROUP_ID=218871661504742
  • In the following query parameter, specify a list of user IDs of the group for the group information you want to retrieve:
    GROUP_ID= file:///export/qa_adp/FB_Profile_ID.txt
Group Members
GROUP_ID
Group search. Specify the ID of the group for the list of members you want to retrieve. For example, you specify the following parameter to extract information about the list of members in a group.
GROUP_ID=218871661504742
Profile Feed
USER
Current user or user. Specify the Profile Feed query parameter in the following formats:
  • In the following query parameter, specify the user ID to extract the news feeds of the user:
    USER=100003672900818
  • In the following query parameter, specify the user name to extract the news feed of the user:
    USER=chris12
  • In the following query parameter, specify the Facebook operator
    me
    for the news feeds of the current user:
    USER=me
Self
USER
Current user or user. Specify the Self query parameter in the following formats:
  • In the following query parameter, specify the user ID for the profile of the user you want to extract:
    USER=100003672900818
  • In the following query parameter, specify the user name for the profile of the user you want to extract: :
    USER=chris12
  • In the following query parameter, specify the Facebook operator
    me
    for the profile of the current user:
    USER=me
  • In the following query parameter, specify a list of user IDs or user names for the profile of the user:
    USER=file:///export/qa_adp/FB_Profile_ID.txt
Search-Event
QUERY
Search keyword. Specify the keyword to search for events. For example, you specify the following query parameter to extract the events that contain the keywords Apple Developer:
QUERY=Apple Developer
Search-Group
QUERY
Search keyword. Specify the keyword to search for groups. For example, you specify the following query parameter to extract the groups that contain the keywords Jackson:
QUERY=Jackson
Search-Page
QUERY
Search keyword. Specify the keyword to search for pages. For example, you specify the following query parameter to extract the pages that contain the keywords BMW:
QUERY=BMW
Search-Post
QUERY
Search keyword. Specify the keyword to search for posts. For example, you specify the following query parameter to extract the posts that contain the keywords iPad:
QUERY=iPad

0 COMMENTS

We’d like to hear from you!