Skip to content

Instantly share code, notes, and snippets.

@jboulhous
Created August 5, 2013 03:39
Show Gist options
  • Save jboulhous/6153325 to your computer and use it in GitHub Desktop.
Save jboulhous/6153325 to your computer and use it in GitHub Desktop.
Seach for facebook pages
function getUrl(query,type,callback){
var access = Meteor.user().services.facebook.accessToken
var url = 'https://graph.facebook.com/search?'
url += $.param({
q:query,
type : type,
access_token : access
});
return $.get(url,callback);
}
getUrl('Cocacola','page',function(){
console.log(this)
console.log(arguments)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment