Sviluppare applicazioni FB usando
Drupal
Drupal Social Club - Social tag #drupalsocialclub
+
Drupal bros,
say hello to first
Drupal Social Club!
Chi siamo?
Paolo Mainardi, sviluppatore
PHP, CTO di Twinbit e Stefano Mainardi,
fondatore del network italiano sviluppatore PHP, CEO di
ILDN Twinbit e fondatore del
network italiano ILDN
Piacere di conoscervi!
Piacere di conoscervi!
paolo@twinbit.it
stefano@twinbit.it
twitter : paolomainardi
twitter : stefanomainardi
Piacere, io sono Drupal! :-)
Drupal = MAKE IT EASY
non reinventiamo la ruota
Drupal overview
il core
+ 750 Moduli disponibili
+ 1200 Sviluppatori (senza contare i contributor)
+ 40 lingue di localizzazione
+ Community internazionale attiva e competente
+ Drupal.org è una miniera d’oro!
Adatto per lo sviluppo di Social Network ed applicazioni Sociali
Drupal overview
simple third-party integration
Drupal overview
simple third-party integration
Drupal overview
simple third-party integration
- Collezionare dati da tutte le piattaforme e creare nuovi mashup
Drupal overview
simple third-party integration
- Collezionare dati da tutte le piattaforme e creare nuovi mashup
- Integrare nel nostro progetto servizi esterni
Drupal overview
simple third-party integration
- Collezionare dati da tutte le piattaforme e creare nuovi mashup
- Integrare nel nostro progetto servizi esterni
- Portare traffico e visitatori!
Integrazione con i commenti
FB Comments box ?
“A Comments Box is a standalone social widget for any website or iframe application.”
http://wiki.developers.facebook.com/index.php/Comments_Box
E’ possibile integrare la form dei commenti di Facebook all’interno della nostra
applicazione.
FB Comments box
<fb:comments></fb:comments>
FB Comments box
FB Comments box
FB Comments box
Ok bellissimo....ma come funziona ??
1) Crea un applicazione su facebook
http://www.facebook.com/developers
2) AppID, API key, Secret API key
3) Configurazione principale
4) Configurazione Drupal
COOL!
hook_init()
“This hook is run at the beginning of the page request. It is typically used to set up global parameters which are
needed later in the request. when this hook is called, all modules are already loaded in memory.
For example, this hook is a typical place for modules to add CSS or JS that should be present on every page.
This hook is not run on cached pages - though CSS or JS added this way will be present on a cached page.”
Esempio: Scriviamo nel feed facebook dell’utente che ha lasciato un commento.
Cos’altro possiamo fare ?
FQL
Facebook query language
Javascript client
var api = FB.Facebook.apiClient;
api.fql_query("SELECT fields FROM user WHERE uid = "+fbuid+");
PHP Client
facebook_client()->api_client->fql_query("SELECT $fields FROM user WHERE uid = $fbuid");
XFBML
Ricordate la form dei commenti ?
<fb:comments></fb:comments>
• fb:connect-form
• fb:eventlink
• fb:name
• fb:photo
• .......
http://wiki.developers.facebook.com/index.php/XFBML
E le canvas page ?
Modulo FB
http://drupal.org/project/fb
Questions?
That’s all
folks!
Rimaniamo in contatto!
Stefano Mainardi Paolo Mainardi
stefano@twinbit.it paolo@twinbit.it
twitter : stefanomainardi twitter : paolomainardi
Ci vediamo al prossimo Drupal Social Club!
0 comments
Post a comment