Facebook 将图像发布到源为的用户源不起作用

Facebook 将图像发布到源为的用户源不起作用,facebook,Facebook,我正在尝试创建一个fb应用程序使用用户配置文件图片。应用程序将生成一个新图像,该图像应发布到用户提要。我正在尝试使用源代码,但它不起作用。这并没有给出完整的图像。它提供缩略图,而不是发布完整的图像。这是我的密码 $canvas = imagecreatetruecolor($crop_width,$crop_height); imagecopy($canvas,$currentimage,0,0,0,0,$crop_width,$crop_height); $t

我正在尝试创建一个fb应用程序使用用户配置文件图片。应用程序将生成一个新图像,该图像应发布到用户提要。我正在尝试使用源代码,但它不起作用。这并没有给出完整的图像。它提供缩略图,而不是发布完整的图像。这是我的密码

     $canvas = imagecreatetruecolor($crop_width,$crop_height);

     imagecopy($canvas,$currentimage,0,0,0,0,$crop_width,$crop_height);

     $test = $data['user_id'].'test.jpg';

     imagejpeg($canvas, $test,100);

     $new = imagecreatetruecolor(150,150);

     imagecopyresized($new,$canvas,0,0,0,0,150,150,$w,$crop_height);

     $resize1 = $data['user_id'].'resize1.jpg';

     imagejpeg($new, $resize1 ,100);

     $source1 = 'black.jpg';

     $background = imagecreatefromjpeg($source1);

     $resize = imagecreatefromjpeg($resize1);

     imagecopy($background,$resize,100,250,0,0,150,150);

     $output = $data['user_id'].'output.jpg';

     imagejpeg($background,$output,100);

     echo '<div align="center"><img src="'.$output.'"></div>';  
     unlink($test);

     unlink($resize1);

     $access_token = "ABCDEFGHIJKLM";
     $graph_url ="https://graph.facebook.com/me/feed?access_token=".$access_token."&method=post&source=http://www.Google.es/images/srpr/nav_logo39.png&message=logo";
     $user_permissions = json_decode(file_get_contents($graph_url));
      print_r($user_permissions);
请帮我创建一个完美的fb应用程序