Application programming interface
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Application programming interface

on

  • 321 views

 

Statistics

Views

Total Views
321
Views on SlideShare
321
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 Presentation Transcript

  • 1. Omar Medeiros Jadalla
  • 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.  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.  $facebook = new Facebook(array( appId => App_ID , secret => App_Secret )); $connection = new TwitterOAuth( CONSUMER_KEY, CONSUMER_SECRET, oauth_token, oauth_token_secret );
  • 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.  $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’ ));