n_openid
n_openid

Reputation: 93

facebook search api

Does anyone know if the facebook search api http://developers.facebook.com/docs/api#search allow us to perform OR queries?

Upvotes: 3

Views: 3822

Answers (3)

Yoshio
Yoshio

Reputation: 146

Sorry, OR queries is not possible anymore.

Upvotes: 0

nov matake
nov matake

Reputation: 958

Try "keyword1 | keyword2" as search query string. https://graph.facebook.com/search?q=Smart.fm+%7C+iKnow&type=post

Upvotes: 2

Tech
Tech

Reputation: 214

var searchQueryString = 'search?q=' + query + '&type=' + type FB.api('/' + searchQueryString, function (response) {

    });

The above one is the example of how you can search from facebook. query -- the search keyword

type -- type of the search(eg. 'post' gives you the posts with that keyword)

before using the above query, you need to add the reference of the conncet.js.

here is the code for the same.

http://connect.facebook.net/en_GB/all.js

Add this script in your html before the function

Mark as answer if this helps you, so that the other people will not have any trouble in identifying what they want.

Hope this helps happy coiding

Upvotes: 0

Related Questions