I am trying to search a page by the domain by using the domain name, but I am getting amy results. My code looks like this:
$session = new FacebookSession('fb_access_token');
$session = FacebookSession::newAppSession();
$request = new FacebookRequest( $session, 'GET', '/search?q=example.com&type=page');
$response = $request->execute();
$graphObject = $response->getGraphObject();
$pages = $graphObject -> asArray();
Should I be doing something else to search for pages by the domain?
As per the doc , you can only search by name:
Type Description 'q' value
page Search for a Page. Name
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.