Searching the Marketplace
Problem
I need to search the Marketplace.
Solution
Use the Marketplace.search()
method:
$results = $facebook->api_client->marketplace_search(null, null, 'donuts');
The first two parameters are optional category and subcategory filters:
$results = $facebook->api_client->marketplace_search('JOBS', null, 'donuts');
Discussion
Marketplace.search()
returns a multidimensional array in which each element is a listing
containing the fields found in Table 8-13
in Listing Table.
Get Facebook Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.