CONNEXION
  • RetourJeux
    • Sorties
    • Hit Parade
    • Les + populaires
    • Les + attendus
    • Soluces
    • Tous les Jeux
    • Gaming
  • RetourActu Gaming
    • News
    • Astuces
    • Tests
    • Previews
    • Toute l'actu gaming
  • RetourBons plans
    • Bons plans
    • Bons plans Smartphone
    • Bons plans Hardware
    • Bons plans Image et Son
    • Bons plans Amazon
    • Bons plans Cdiscount
    • Bons plans Decathlon
    • Bons plans Fnac
    • Tous les Bons plans
  • RetourJVTech
    • Actus High-Tech
    • Intelligence Artificielle
    • Smartphones
    • Mobilité urbaine
    • Hardware
    • Image et son
    • Tutoriels
    • Tests produits High-Tech
    • Guides d'achat High-Tech
    • JVTech
  • RetourCulture
    • Actus Culture
    • Culture
  • RetourVidéos
    • A la une
    • Gaming Live
    • Vidéos Tests
    • Vidéos Previews
    • Gameplay
    • Trailers
    • Chroniques
    • Replay Web TV
    • Toutes les vidéos
  • RetourForums
    • Hardware PC
    • PS5
    • Switch 2
    • Xbox Series
    • Switch
    • Pokemon pocket
    • FC 25 Ultimate Team
    • League of Legends
    • Tous les Forums
  • PC
  • PS5
  • Xbox Series
  • Switch 2
  • PS4
  • One
  • Switch
  • iOS
  • Android
  • MMO
  • RPG
  • FPS
En ce moment Genshin Impact Valhalla Breath of the wild Animal Crossing GTA 5 Red dead 2
Liste des sujets

[PHP] Tweeter une photo

GoldenPig
GoldenPig
Niveau 2
03 juin 2013 à 17:19:08

Hello,

J'arrive à poster un tweet.
$results = $connection->post("statuses/update", array("status"=>$_POST["tweet"]));

Je n'arrive pas à poster une image...

$results = $connection->post('POST', 'statuses/update_with_media', array('status' => $_POST['tweet'], 'media[]' => 'twitt.jpg'));

Code qui me renvoie :
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in C:\.........\OAuth.php on line 301

Si je mets:
$results = $connection->request('POST', 'statuses/update_with_media', array('status' => $_POST['tweet'], 'media[]' => 'twitt.jpg'));

J'obtiens:
Fatal error: Call to undefined method TwitterOAuth::request() in C:\xampp\htdocs\rolls\TestRoll\post.php on line 45

Help please...

Nicokiller_com
Nicokiller_com
Niveau 9
10 juin 2013 à 17:06:03

http://stackoverflow.com/questions/7519572/twitter-image-sharing

Sous forums
  • Aide à l'achat Mac
  • Création de Jeux
  • Linux
  • Création de sites web
  • Programmation
  • Internet
  • Steam Deck
  • Macintosh
  • Hardware