In developing Easy Export, I created a cron script that updates the user’s fbml on their profile page periodically. It worked great, but after some time I started getting the following execption thrown:

 'Invalid parameter', on line 1520 in facebookapi_php5_restlib.php

After looking into it, I realized it’s because I was trying to set the fbml on a user who previously had the application installed, but had since removed it. So to fix it, you can either ignore the error (empty try/catch block around setFBML) or check whether the user has the application added before trying to make this call – via users_getInfo( $user_id, ‘has_added_app’ )

About Shane
Shane is the creator of task management system TaskShot and musician's helper SongKeyFinder

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

   
© 2012 ShaneLabs Suffusion theme by Sayontan Sinha