Facebook API input sanitization

Discussion in 'PHP' started by ThomasTwen, Mar 2, 2010.

  1. #1
    For all those of you using the Facebook API for PHP: I just ran into an issue concerning Facebook User IDs/Facebook Page IDs when trying to sanitize get variables passed amongst different php files. As usual, I used intval() to avoid SQL Injections, but intval() will kill all values above a certain limit - and some Facebook IDs are above. Any ideas for a workaround here?
     
    ThomasTwen, Mar 2, 2010 IP
  2. Sky AK47

    Sky AK47 Member

    Messages:
    298
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    45
    #2
    Sky AK47, Mar 2, 2010 IP