Facebook Open Graph – how to pass parameters in URL?-Collection of common programming errors

If I will try to pass this URL into Open Graph

$url = 'http://abc.com/index.php';
$facebook->api('/me/url_app:action','POST', array('something'=>$url));

everything is working well. But if I try to add some parameters, like

$url = 'http://abc.com/index.php?a=b&c=d';
$facebook->api('/me/url_app:action','POST', array('something'=>$url));

then I will get this error

Fatal error: Uncaught Exception: Object at URL 'http://abc.com/index.php?a=b&c=d' of type 'url_app:action' is invalid because the given value '' for property 'og:url' could not be parsed as type 'url'. thrown in _PATH_/base_facebook.php on line 1050

Why I cannot add some parameters to the URL address?

EDIT Also, here is the PHP function for encoding link:

function encodeURIComponent($str) {
    $revert = array('%21'=>'!', '%2A'=>'*', '%27'=>"'", '%28'=>'(', '%29'=>')', '%3D'=>'=', '%3F'=>'?');
    return strtr(rawurlencode($str), $revert);
}