6

I am using facebook graph API to get the business detail by "type=page" , but for some business name show empty result

I have to use url

http://graph.facebook.com/search?q="Business Neme"&type=page

Then I get

{ "data": [

] }

please give me any solution to get full information of data using type=page

Thanks

Khoyendra Pande
  • 1,627
  • 5
  • 25
  • 42

3 Answers3

1

Use this, it returns results just fine:

http://graph.facebook.com/search?q=Business%20Name&type=page
gotnull
  • 26,454
  • 22
  • 137
  • 203
1

I got why graph.facebook showing like this- If any business profile secure then it will show this type of results.

Khoyendra Pande
  • 1,627
  • 5
  • 25
  • 42
1

You should URL encode your query as Fluvio shown earlier.

http://graph.facebook.com/search?q=%22Business%20Name%22&type=page

or

http://graph.facebook.com/search?q="Business Name"&type=page

You should get the same result in both queries.

Alexcode
  • 1,598
  • 7
  • 15