February 07, 2012, 08:53:51 pm
Maltego Forum

Username
Password

Pages: [1]
Print
Author Topic: Facebook API  (Read 51185 times)
AndrewMacPherson
Administrator
Full Member
*****
Posts: 132


« on: October 07, 2009, 12:42:35 pm »

It is possible to build a transform that integrates with the facebook API using the FSQL language, see the following links:

http://developers.facebook.com/get_started.php -- getting started, usual info
http://wiki.developers.facebook.com/index.php/FQL -- Facebook Query Language
http://svn.facebook.com/svnroot/platform/clients/packages/facebook-platform.tar.gz -- facebook PHP lib

Definitely want to check out the FQL Tables for your queries:
http://wiki.developers.facebook.com/index.php/FQL_Tables

And probably the user table specifically to pull user information:
http://wiki.developers.facebook.com/index.php/User_%28FQL%29



You can call an FQL query like remotely like this(in php here):
$result = $facebook->api_client->fql_query($query);

Basically you need to register an application, get the application and secret key and then you can do something like this:

<?php

// the facebook client library
include_once './php/facebook.php';

// some basic library functions
#include_once 'lib.php';
$API_KEY = 'YOUR_API_KEY_GOES_HERE';
$SECRET_KEY = 'YOUR_SECRET_KEY_HERE';
$facebook = new Facebook($API_KEY, $SECRET_KEY);
$user_details = $facebook->api_client->fql_query("SELECT uid,first_name,last_name,name,pic,timezone,sex,hometown_location,significant_other_id,relationship_status,current_location,proxied_email,profile_url,username,website,is_blocked FROM user WHERE name='<full name here>'");

print_r($user_details);




Logged
AndrewMacPherson
Administrator
Full Member
*****
Posts: 132


« Reply #1 on: October 07, 2009, 06:54:16 pm »

Some things that suck:

* Cant search via email address like you can in the web app (although i havent been through it all, so if you have an idea let me know!)
* Probably against Terms of Use
Logged
dclemens
Newbie
*
Posts: 8


« Reply #2 on: April 14, 2010, 10:11:03 am »

Andrew,
In the new version of Maltego did you guys use the FB API , server side or client side scripts?

-Thanks,
Daniel
Logged
AndrewMacPherson
Administrator
Full Member
*****
Posts: 132


« Reply #3 on: April 14, 2010, 12:42:38 pm »

Hi Dan,

The demo at BHEU used some scraping ( of the mobile sites ) as well as the server side FB API from here ( http://wiki.developers.facebook.com/index.php/API with FQL - http://wiki.developers.facebook.com/index.php/Fql.query )

-AM
Logged
toprngr
Newbie
*
Posts: 5


« Reply #4 on: August 04, 2010, 07:23:04 am »

Yes, I think it is possible as the language is quite familiar and similar too. Just that the problem is that I am not sure whether the system, accepts the language, as far as I know, it uses the same concept as any other languages as well and mainly Facebook uses Ajax. I am not very sure about the usability but there is one thing I can make sure of. You can download examples or templates from the web, it is readily available.
Logged

Pages: [1]
Print
Jump to: