Newbie Facebook Error Question

Discussion in 'PHP' started by bdunndchi, Jul 20, 2008.

  1. #1
    I'm just learning the develop FB apps. I uploaded the Facebook libraries to my server as instructed, set up my config.php file, and made a very basic index.php file. When I attempt to access the index.php file, I get this error:

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /homepages/16/d244193075/htdocs/FB/php/facebook.php on line 38


    Anyone encountered this error before and can guide me the right direction? Thanks.:confused:
     
    bdunndchi, Jul 20, 2008 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    You're gonna have to post your code. Seems like a silly error that can easily be fixed, though.
     
    nico_swd, Jul 21, 2008 IP
  3. lfhost

    lfhost Peon

    Messages:
    232
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Your probably using the PHP 5 API on a PHP 4 server, you have to use the correct version for it to work, you will get more direct answers from the FB developer forum.
     
    lfhost, Jul 21, 2008 IP
  4. Fl1p

    Fl1p Active Member

    Messages:
    511
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    58
    #4
    Seems like you have an extra curly bracket somewhere, post some code here and we'll see...
     
    Fl1p, Jul 21, 2008 IP
  5. kumardilu6

    kumardilu6 Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    send ur error to my mail
     
    kumardilu6, Jul 21, 2008 IP
  6. bdunndchi

    bdunndchi Member

    Messages:
    91
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #6
    Correct. Thanks everyone for the help. The problem was that my server automatically designated all .php files to PHP 4. I modified by .htaccess to change it to PHP 5 and it all worked. Thanks again!
     
    bdunndchi, Jul 24, 2008 IP