I`m writing an application in PHP which searches for a company on different social platforms (Facebook, Google+) by name, address, ZIP and phone number. The most important for me now, is Facebook. What I found so far, is Graph API search functionality:
/search?q={COMPANY_NAME}&type=page
But this only uses company name as search parameter. Any ideas how we could do this also by using name, address, ZIP and phone number as search fields?
Found something, finally. Search on Facebook can be made by company name using Graph. The result looks something like this:
{
"data":
[
{
"category": "Company",
"category_list": [
{
"id": "209889829023118",
"name": "Landmark"
}
],
"name": "Pixar",
"id": "107673092595794"
}
}
Then you can make a request by id, in this case 107673092595794
to access the address, phone number or any additional data about company.