O'Reilly logo

Facebook Cookbook by Jay Goldman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required