The v5.2 update of what? I'm assuming you meant JFBConnect v5.0.2, but if there's a JomRes v5.2, that will help.
My guess, if the page is going white, is that the code was copied wrong and that there's actually a PHP error on the page. Can you double-check you pasted it correctly? It gets confusing with the single quotes and double-quotes which are next to each other, so if you're typing it yourself, that may be where the problem is coming from.
If that still doesn't help and you're getting a white page, try setting Error Reporting to "Maximum" in the Joomla configuration area and see if there is a PHP error or not. That will help narrow down if it's a problem with our replacement or a problem with how you modified the code.
Thanks,
Alex