FB应用程序中的“此帖子包含阻止的URL”错误

My webhost is 000webhost.com I've set up an FB app which needs to post on the user's wall. But FB gives this error "this post contains a blocked URL".

Here is my code

require_once("facebook.php");
$facebook = new Facebook(array( 'appId' => $app_id, 'secret' => $app_secret, 'cookie' => true ));


$attachment =  array(
        'access_token' => $params['access_token'],
        'message' => "Hello, here is a post",
        'name' => "",
        'link' => "http://www.facebook.com",
        'description' => "Write here your description",
        );

$result = $facebook->api('/me/feed', 'POST', $attachment);

What is wrong? Why am I getting this error?

You are not allowed to link to facebook.com. Also you dont need to set the accestoken if the user is already loggedin in your application. Try another url:

require_once("facebook.php");
$facebook = new Facebook(array( 'appId' => $app_id, 'secret' => $app_secret, 'cookie' => true ));


$attachment =  array(
        'message' => "Hello, here is a post",
        'name' => "",
        'link' => "http://www.example.com",
        'description' => "Write here your description",
        );

$result = $facebook->api('/me/feed', 'POST', $attachment);