Popular recipes tagged "facebook"http://code.activestate.com/recipes/tags/facebook/popular/2013-07-08T04:33:58-07:00ActiveState Code RecipesSend Messages to millions of facebook Users (Python)
2013-07-08T04:33:58-07:00AJay Kumarhttp://code.activestate.com/recipes/users/4187119/http://code.activestate.com/recipes/578594-send-messages-to-millions-of-facebook-users/
<p style="color: grey">
Python
recipe 578594
by <a href="/recipes/users/4187119/">AJay Kumar</a>
(<a href="/recipes/tags/facebook/">facebook</a>).
</p>
<p>This script will allow you to send Messages to people who have a username on facebook from an email id you specify in the script.Although message will not be sent to their inbox,if you're not a friend but it will be sent to other category.</p>
Easy way to use Graph Facebook API without ad-hoc libraries (Ruby)
2012-11-20T14:14:27-08:00Filippo Squillacehttp://code.activestate.com/recipes/users/4174931/http://code.activestate.com/recipes/578343-easy-way-to-use-graph-facebook-api-without-ad-hoc-/
<p style="color: grey">
Ruby
recipe 578343
by <a href="/recipes/users/4174931/">Filippo Squillace</a>
(<a href="/recipes/tags/api/">api</a>, <a href="/recipes/tags/facebook/">facebook</a>, <a href="/recipes/tags/http/">http</a>, <a href="/recipes/tags/ruby/">ruby</a>).
</p>
<p>I was painfully lokking for a simple function that allow easily make GET or POST requests in Ruby without using complex libraries such as Koala for accessing to the Facebook Graph. At the end I gave up and did it by myself,
so the function fb_api, based on net/http, is able to make GET or POST requests (depending if the request is for retrieving information of the graph or is for changing the graph such as post feed etc.).
It returns a dict from a JSON data structure.</p>
<p>This might be useful for your facebook app ;)</p>
Sync your facebook friends list to your address book on Mac/iPhone/iPad (Python)
2011-12-17T09:27:02-08:00Shao-chuan Wanghttp://code.activestate.com/recipes/users/4168519/http://code.activestate.com/recipes/577986-sync-your-facebook-friends-list-to-your-address-bo/
<p style="color: grey">
Python
recipe 577986
by <a href="/recipes/users/4168519/">Shao-chuan Wang</a>
(<a href="/recipes/tags/address/">address</a>, <a href="/recipes/tags/book/">book</a>, <a href="/recipes/tags/facebook/">facebook</a>, <a href="/recipes/tags/sync/">sync</a>).
</p>
<p><strong>READ BEFORE YOU USE THE CODE*</strong></p>
<p><strong>Requirement</strong></p>
<ol>
<li>Mac OS with python obj-c wrapper built-in. Typically, Mac OS Snow leopard, or Lion comes with python wrapper of objc.</li>
<li>If you want to also sync to your iphone, simply enable iCloud feature provided by apple, and run this script on a macbook with iCloud enabled.</li>
<li>Need fbconsole module, which can be downloaded at <a href="https://github.com/facebook/fbconsole" rel="nofollow">https://github.com/facebook/fbconsole</a></li>
</ol>
<p>This script will download the profile pictures, first name, last name of your friends, and insert them into your address book if it does not exist.</p>