Ankündigung

Einklappen
Keine Ankündigung bisher.

Class 'CURLFile' not found in muss ich da was includen? Fabook Developer

Einklappen

Neue Werbung 2019

Einklappen
X
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Class 'CURLFile' not found in muss ich da was includen? Fabook Developer

    Class 'CURLFile' not found


    PHP-Code:
    if($session) {

      try {

        
    // Upload to a user's profile. The photo will be in the
        // first album in the profile. You can also upload to
        // a specific album by using /ALBUM_ID as the path     
        
    $response = (new FacebookRequest(
          
    $session'POST''/me/photos', array(
            
    'source' => new CURLFile('Bilderordner/Desert.jpg''image/jpg'), // <- wird nicht gefunden
            
    'message' => 'Waste'
          
    )
        ))->
    execute()->getGraphObject();

        
    // If you're not using PHP 5.5 or later, change the file reference to:
        // 'source' => '@/path/to/file.name'

        
    echo "Posted with id: " $response->getProperty('id');

      } catch(
    FacebookRequestException $e) {

        echo 
    "Exception occured, code: " $e->getCode();
        echo 
    " with message: " $e->getMessage();

      }   

    }

    Was muss ich installieren damit es funktioniert oder was fehlt da 
    PHP Version 5.4.16  müsste ja kein Problem sein 

  • #2
    Zitat von Darknet Beitrag anzeigen
    Was muss ich installieren damit es funktioniert oder was fehlt da
    PHP Version 5.4.16 müsste ja kein Problem sein
    http://www.php.net/manual/en/class.curlfile.php

    (PHP 5 >= 5.5.0)

    Kommentar

    Lädt...
    X