Facebook API question

Discussion in 'PHP' started by Fracisc, Apr 5, 2011.

  1. #1
    I am trying to delete a photo album.

    I have this but it is not working:
    $facebook->api('/me/albums/'.$classname['name'].'','POST',array('method'=> 'delete'));
    Code (markup):
    Any idea whats wrong?
     
    Fracisc, Apr 5, 2011 IP
  2. codeartist

    codeartist Peon

    Messages:
    96
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    make sure you have following permission 'fileUpload' => true
    check below the script

    $facebook = new Facebook(array(
    'appId' => 'your appid',
    'secret' => 'your secret key',
    'cookie' => true,
    'fileUpload' => true
    ));
     
    codeartist, Apr 6, 2011 IP
  3. Fracisc

    Fracisc Well-Known Member

    Messages:
    3,670
    Likes Received:
    10
    Best Answers:
    1
    Trophy Points:
    195
    #3
    I had it set but still not working..
     
    Fracisc, Apr 11, 2011 IP