Application programming interface

449 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
449
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Application programming interface

  1. 1. Omar Medeiros Jadalla
  2. 2.  Acessar dados do usuário Publicar conteúdo em seu nome Compartilhar conteúdo Enviar mensagens privadas Adicionar/Seguir amigos Curtir páginas(Facebook)
  3. 3.  Criar o aplicativo Conectar o aplicativo Requisitar permissão ao usuário  Chave do Aplicativo  Chave Secreta do Aplicativo  Chave do usuário  Chave secreta do usuário(twitter)
  4. 4.  $facebook = new Facebook(array( appId => App_ID , secret => App_Secret )); $connection = new TwitterOAuth( CONSUMER_KEY, CONSUMER_SECRET, oauth_token, oauth_token_secret );
  5. 5.  $params = array( access_token => $token); $me = $facebook->api(/me, GET, $params); echo $me[first_name]; $me= $connection->get(users/show, array(screen_name => omarjadalla)); echo $me>name;
  6. 6.  $params = array( access_token => $token, link => ‘google.com’, message => ‘ola mundo’ ); $facebook->api(/.id_facebook./feed, POST, $params); $connection->post( statuses/update, array( status => ‘ola mundo’ ));

×