Enviar búsqueda
Cargar
Facebook
•
Descargar como PPTX, PDF
•
0 recomendaciones
•
336 vistas
Dan Michael Molina
Seguir
Denunciar
Compartir
Denunciar
Compartir
1 de 8
Descargar ahora
Recomendados
Bacbkone js
Bacbkone js
Артём Курапов
Google 2
Google 2
Sy Buenavista
How kris-writes-symfony-apps-london
How kris-writes-symfony-apps-london
Kris Wallsmith
How Kris Writes Symfony Apps
How Kris Writes Symfony Apps
Kris Wallsmith
20. CodeIgniter edit images
20. CodeIgniter edit images
Razvan Raducanu, PhD
Migrare da symfony 1 a Symfony2
Migrare da symfony 1 a Symfony2
Massimiliano Arione
12. edit record
12. edit record
Razvan Raducanu, PhD
17. CodeIgniter login simplu cu sesiuni
17. CodeIgniter login simplu cu sesiuni
Razvan Raducanu, PhD
Recomendados
Bacbkone js
Bacbkone js
Артём Курапов
Google 2
Google 2
Sy Buenavista
How kris-writes-symfony-apps-london
How kris-writes-symfony-apps-london
Kris Wallsmith
How Kris Writes Symfony Apps
How Kris Writes Symfony Apps
Kris Wallsmith
20. CodeIgniter edit images
20. CodeIgniter edit images
Razvan Raducanu, PhD
Migrare da symfony 1 a Symfony2
Migrare da symfony 1 a Symfony2
Massimiliano Arione
12. edit record
12. edit record
Razvan Raducanu, PhD
17. CodeIgniter login simplu cu sesiuni
17. CodeIgniter login simplu cu sesiuni
Razvan Raducanu, PhD
8. vederea inregistrarilor
8. vederea inregistrarilor
Razvan Raducanu, PhD
BEAR DI
BEAR DI
Akihito Koriyama
Beyond Posts & Pages - Structured Content in WordPress
Beyond Posts & Pages - Structured Content in WordPress
John Eckman
Keep It Simple Security (Symfony cafe 28-01-2016)
Keep It Simple Security (Symfony cafe 28-01-2016)
Oleg Zinchenko
FamilySearch Reference Client
FamilySearch Reference Client
Dallan Quass
Matters of State
Matters of State
Kris Wallsmith
Borrados
Borrados
orlanodavidescobar
Amp Up Your Admin
Amp Up Your Admin
Amanda Giles
Goodbye hook_menu() - Routing and Menus in Drupal 8
Goodbye hook_menu() - Routing and Menus in Drupal 8
Exove
Advanced jQuery
Advanced jQuery
sergioafp
Who Needs Ruby When You've Got CodeIgniter
Who Needs Ruby When You've Got CodeIgniter
ciconf
An Introduction to Jquery
An Introduction to Jquery
Phil Reither
Love and Loss: A Symfony Security Play
Love and Loss: A Symfony Security Play
Kris Wallsmith
J queryui
J queryui
Inbal Geffen
How Kris Writes Symfony Apps
How Kris Writes Symfony Apps
Kris Wallsmith
The Web beyond "usernames & passwords" (OSDC12)
The Web beyond "usernames & passwords" (OSDC12)
Francois Marier
Kick start with j query
Kick start with j query
Md. Ziaul Haq
Kasdorf, EPUB 3: Not Your Father’s EPUB
Kasdorf, EPUB 3: Not Your Father’s EPUB
National Information Standards Organization (NISO)
Real Time App with Node.js
Real Time App with Node.js
Jxck Jxck
Symfony CoP: Form component
Symfony CoP: Form component
Samuel ROZE
Php if
Php if
nurhardianti98
Eden Hackathon Benilde (Mysql & SMTP)
Eden Hackathon Benilde (Mysql & SMTP)
Dan Michael Molina
Más contenido relacionado
La actualidad más candente
8. vederea inregistrarilor
8. vederea inregistrarilor
Razvan Raducanu, PhD
BEAR DI
BEAR DI
Akihito Koriyama
Beyond Posts & Pages - Structured Content in WordPress
Beyond Posts & Pages - Structured Content in WordPress
John Eckman
Keep It Simple Security (Symfony cafe 28-01-2016)
Keep It Simple Security (Symfony cafe 28-01-2016)
Oleg Zinchenko
FamilySearch Reference Client
FamilySearch Reference Client
Dallan Quass
Matters of State
Matters of State
Kris Wallsmith
Borrados
Borrados
orlanodavidescobar
Amp Up Your Admin
Amp Up Your Admin
Amanda Giles
Goodbye hook_menu() - Routing and Menus in Drupal 8
Goodbye hook_menu() - Routing and Menus in Drupal 8
Exove
Advanced jQuery
Advanced jQuery
sergioafp
Who Needs Ruby When You've Got CodeIgniter
Who Needs Ruby When You've Got CodeIgniter
ciconf
An Introduction to Jquery
An Introduction to Jquery
Phil Reither
Love and Loss: A Symfony Security Play
Love and Loss: A Symfony Security Play
Kris Wallsmith
J queryui
J queryui
Inbal Geffen
How Kris Writes Symfony Apps
How Kris Writes Symfony Apps
Kris Wallsmith
The Web beyond "usernames & passwords" (OSDC12)
The Web beyond "usernames & passwords" (OSDC12)
Francois Marier
Kick start with j query
Kick start with j query
Md. Ziaul Haq
Kasdorf, EPUB 3: Not Your Father’s EPUB
Kasdorf, EPUB 3: Not Your Father’s EPUB
National Information Standards Organization (NISO)
Real Time App with Node.js
Real Time App with Node.js
Jxck Jxck
Symfony CoP: Form component
Symfony CoP: Form component
Samuel ROZE
La actualidad más candente
(20)
8. vederea inregistrarilor
8. vederea inregistrarilor
BEAR DI
BEAR DI
Beyond Posts & Pages - Structured Content in WordPress
Beyond Posts & Pages - Structured Content in WordPress
Keep It Simple Security (Symfony cafe 28-01-2016)
Keep It Simple Security (Symfony cafe 28-01-2016)
FamilySearch Reference Client
FamilySearch Reference Client
Matters of State
Matters of State
Borrados
Borrados
Amp Up Your Admin
Amp Up Your Admin
Goodbye hook_menu() - Routing and Menus in Drupal 8
Goodbye hook_menu() - Routing and Menus in Drupal 8
Advanced jQuery
Advanced jQuery
Who Needs Ruby When You've Got CodeIgniter
Who Needs Ruby When You've Got CodeIgniter
An Introduction to Jquery
An Introduction to Jquery
Love and Loss: A Symfony Security Play
Love and Loss: A Symfony Security Play
J queryui
J queryui
How Kris Writes Symfony Apps
How Kris Writes Symfony Apps
The Web beyond "usernames & passwords" (OSDC12)
The Web beyond "usernames & passwords" (OSDC12)
Kick start with j query
Kick start with j query
Kasdorf, EPUB 3: Not Your Father’s EPUB
Kasdorf, EPUB 3: Not Your Father’s EPUB
Real Time App with Node.js
Real Time App with Node.js
Symfony CoP: Form component
Symfony CoP: Form component
Similar a Facebook
Php if
Php if
nurhardianti98
Eden Hackathon Benilde (Mysql & SMTP)
Eden Hackathon Benilde (Mysql & SMTP)
Dan Michael Molina
Unit 3 - for php application Sessions.pptx
Unit 3 - for php application Sessions.pptx
mythili213835
Silex meets SOAP & REST
Silex meets SOAP & REST
Hugo Hamon
Php
Php
Linh Tran
Daily notes
Daily notes
meghendra168
Lithium Best
Lithium Best
Richard McIntyre
10. view one record
10. view one record
Razvan Raducanu, PhD
Separation of concerns - DPC12
Separation of concerns - DPC12
Stephan Hochdörfer
21. CodeIgniter search
21. CodeIgniter search
Razvan Raducanu, PhD
Be RESTful (Symfony Camp 2008)
Be RESTful (Symfony Camp 2008)
Fabien Potencier
logic321
logic321
logic321
Drupal Development (Part 2)
Drupal Development (Part 2)
Jeff Eaton
Symfony2. Form and Validation
Symfony2. Form and Validation
Vladimir Doroshenko
Add edit delete in Codeigniter in PHP
Add edit delete in Codeigniter in PHP
Vineet Kumar Saini
Image upload in php MySql
Image upload in php MySql
Ishaq Shinwari
15. CodeIgniter editarea inregistrarilor
15. CodeIgniter editarea inregistrarilor
Razvan Raducanu, PhD
画像Hacks
画像Hacks
Yusuke Wada
HirshHorn theme: how I created it
HirshHorn theme: how I created it
Paul Bearne
Add loop shortcode
Add loop shortcode
Peter Baylies
Similar a Facebook
(20)
Php if
Php if
Eden Hackathon Benilde (Mysql & SMTP)
Eden Hackathon Benilde (Mysql & SMTP)
Unit 3 - for php application Sessions.pptx
Unit 3 - for php application Sessions.pptx
Silex meets SOAP & REST
Silex meets SOAP & REST
Php
Php
Daily notes
Daily notes
Lithium Best
Lithium Best
10. view one record
10. view one record
Separation of concerns - DPC12
Separation of concerns - DPC12
21. CodeIgniter search
21. CodeIgniter search
Be RESTful (Symfony Camp 2008)
Be RESTful (Symfony Camp 2008)
logic321
logic321
Drupal Development (Part 2)
Drupal Development (Part 2)
Symfony2. Form and Validation
Symfony2. Form and Validation
Add edit delete in Codeigniter in PHP
Add edit delete in Codeigniter in PHP
Image upload in php MySql
Image upload in php MySql
15. CodeIgniter editarea inregistrarilor
15. CodeIgniter editarea inregistrarilor
画像Hacks
画像Hacks
HirshHorn theme: how I created it
HirshHorn theme: how I created it
Add loop shortcode
Add loop shortcode
Facebook
1.
//set facebook permission
$permission = array('email', 'publish_stream', 'offline_access', 'create_event', 'user_about_me', 'user_birthday', 'user_events', 'user_groups', 'user_likes', 'user_relationships', 'user_relationship_details', 'user_videos', 'user_website', 'publish_stream', 'manage_friendlists', 'user_actions.video', 'read_stream', 'publish_actions'); //facebook app config $config = array('fb_key' => '325679064192776', 'fb_secret' => '5bdd22dde7ab5c51cb9f184cb47fd5bc', 'fb_redirect' => 'http://erwin.com/facebook.php');
2.
// instantiate the
object facebook authentication $auth = eden('facebook')->auth($config['fb_key'], $config['fb_secret'], $config['fb_redirect']); $fbLogin = $auth->getLoginUrl($permission); if(isset($_GET['code'])) { $access = $auth->getAccess($_GET['code']); $_SESSION['token'] = $access['access_token']; header('Location: /facebook.php'); }
3.
// instantiate the
object graph $graph = eden('facebook')->graph($_SESSION['token']); $user = $graph->getUser(); $permissions = $graph->getPermissions(); $picture = $graph->getPictureUrl(); $note = $graph->createNote('me', 'note', 'eden'); $logOut = $graph->getLogoutUrl($config['fb_redirect']);
4.
// instantiate link
object $link = eden('facebook')->link($_SESSION*'token'+, ‘http://www.youtube.com'); //trigger create to post $link->create();
5.
// instantiate event
object $event = eden('facebook')->event($_SESSION['token'], 'Event Title', 'September 07, 2012 6:46pm', 'September 10, 2012 7:46pm'); //trigger create to create event $event->create();
6.
// instantiate post
object $post = eden('facebook')->post($_SESSION['token'], 'POSTING'); $post->create(); $post->setTitle() ->setPicture() // ->setVideo() ->setDescription() ->setLink() ->setIcon() ->create();
7.
// instantiate fql
object $fql = eden('facebook')->fql($_SESSION['token']); $friends = $fql->query('SELECT uid1, uid2 FROM friend WHERE uid1="'.$user['id'].'"'); echo count($friends).'<br />'; shuffle($friends); foreach($friends as $i => $friend ) { $info = $fql->search() ->setTable('user') ->filterByUid($friend['uid2']) ->getRows(); echo '<img src="'.$info[0]['pic_big'].'"/>'; echo $info[0]['first_name']; }
8.
$stream = $fql->query('SELECT
filter_key FROM stream_filter WHERE uid='.$user['id']); $streams = $fql->search() ->setTable('stream_filter') ->filterByUid($user['id']) ->getRows(); $likes = $fql->search() ->setTable('like') ->filterByUserId($user['id']) ->getRows(); $userPost = $fql->search() ->setTable('status') ->filterByUid($friends[0]['uid2']) ->getRows();
Descargar ahora