• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Application programming interface
 

Application programming interface

on

  • 262 views

 

Statistics

Views

Total Views
262
Views on SlideShare
262
Embed Views
0

Actions

Likes
0
Downloads
1
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Application programming interface Application programming interface Presentation Transcript

    • Omar Medeiros Jadalla
    •  Acessar dados do usuário Publicar conteúdo em seu nome Compartilhar conteúdo Enviar mensagens privadas Adicionar/Seguir amigos Curtir páginas(Facebook)
    •  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)
    •  $facebook = new Facebook(array( appId => App_ID , secret => App_Secret )); $connection = new TwitterOAuth( CONSUMER_KEY, CONSUMER_SECRET, oauth_token, oauth_token_secret );
    •  $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;
    •  $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’ ));