Created
August 5, 2013 03:39
-
-
Save jboulhous/6153325 to your computer and use it in GitHub Desktop.
Seach for facebook pages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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