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
var HTTPS = require('https'); | |
var QueryString = require('querystring'); | |
/** | |
* Facebook API Wrapper | |
* @constructor | |
* @param {Object} info Info about the Facebook application | |
*/ | |
var Client = function (info) { | |
if (!info.id) { |
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
import urllib2 | |
import json | |
import sys | |
import os | |
import re | |
import time | |
import rfc822 | |
import sqlite3 | |
import datetime |
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
#!/usr/bin/env python | |
# -*- coding: iso-8859-1 -*- | |
__version__ = "$Revision: 0.1 $" | |
__author__ = "Pierrick Terrettaz" | |
__date__ = "2011-11-28" | |
import sys | |
import re | |
import urllib | |
import httplib |
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
#!/usr/bin/env python | |
# encoding: utf-8 | |
""" | |
fbsearch.py | |
[email protected] | |
""" | |
import facepy | |
import csv | |
fieldnames = [u'category', u'name', u'id'] |
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
/*! | |
* jQuery JavaScript Library v1.7.1 | |
* http://jquery.com/ | |
* | |
* Copyright 2012, Rodrigo Nery | |
* Dual licensed under the MIT or GPL Version 2 licenses. | |
* http://jquery.org/license | |
* | |
* Copyright 2012, Rodrigo Nery | |
* Released under the MIT, BSD, and GPL Licenses. |
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
from facepy import GraphAPI | |
import facepy | |
import re | |
import json | |
#meta variables | |
access_token = 'your_token' | |
page_id = 'the_page' # input page id here | |
base_query = page_id + '/feed?limit=300' |
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
#@@@@@Sorry: this code has been deprecated in 2015, April 30 with new Facebook 2.0 API version | |
import urllib.request | |
import json | |
def search(texto): | |
#pegue o access_token | |
#em https://developers.facebook.com/tools/explorer | |
url = 'https://graph.facebook.com/search?q=' | |
tail = '&type=post&access_token=<copie aqui o access_token>' | |
resp = urllib.request.urlopen(url+texto+tail).read() |
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
// esse script terá que ficar no header.php | |
window.fbAsyncInit = function() { | |
FB.init({ | |
appId : 'app id', | |
status : true, // check login status | |
cookie : true, // enable cookies to allow the server to access the session | |
xfbml : true // parse XFBML | |
}); |
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 partition( array, left, right ) { | |
var pivot = array[Math.floor((left + right)/2)], | |
i = left, | |
j = right; | |
while ( i <= j ) { | |
while ( array[i] < pivot ) { | |
i++; |
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); | |
} |
OlderNewer