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’ )
Leave a Reply