Facebook应用程序错误或我的错误奇怪的事情发生在我身上

Facebook应用程序错误或我的错误奇怪的事情发生在我身上,facebook,Facebook,我创建了一个facebook应用程序,该应用程序创建新图像并将其上传到用户的相册中,但当用户使用该应用程序时,该图像会上传到我的相册中。这听起来很有趣,但让我震惊的是,他们的照片怎么能上传到我身上。如果我有任何错误,请检查我的代码 $access_token = 'ABCDEFGHIJKLMN'; $graph_url = "https://graph.facebook.com/me/albums?" . "access_token=". $access_token

我创建了一个facebook应用程序,该应用程序创建新图像并将其上传到用户的相册中,但当用户使用该应用程序时,该图像会上传到我的相册中。这听起来很有趣,但让我震惊的是,他们的照片怎么能上传到我身上。如果我有任何错误,请检查我的代码

     $access_token = 'ABCDEFGHIJKLMN';
     $graph_url = "https://graph.facebook.com/me/albums?"
     . "access_token=". $access_token;
     $album_name = 'Klu report';  
     $postdata = http_build_query(
     array(
      'name' => $album_name,
      'message' => 'sai ram'
        )
      );
     $opts = array('http' =>
     array(
      'method'=> 'POST',
      'header'=>
        'Content-type: application/x-www-form-urlencoded',
      'content' => $postdata
      )
     );
     $context  = stream_context_create($opts);
     $result = json_decode(file_get_contents($graph_url, false, 
       $context));

     $album_id = $result->id;

     $graph_url= "https://graph.facebook.com/" 
      . $album_id ."/photos?"
      . "url=" . urlencode('https://yourkishore.com/facebook/'.$output)
      . "&message=" . urlencode('I got my Placements report get yours here : https://apps.facebook.com/yourkishore')
      . "&method=POST"
      . "&access_token=" .$access_token;
      echo '<html><body>';
      file_get_contents($graph_url);
      echo '</body></html>';
$access_token='ABCDEFGHIJKLMN';
$graph_url=”https://graph.facebook.com/me/albums?"
. “访问令牌=”$接入令牌;
$album_name='Klu报告';
$postdata=http\u构建\u查询(
排列(
'name'=>$album\u name,
'消息'=>'赛拉姆'
)
);
$opts=array('http'=>
排列(
'方法'=>'发布',
'标题'=>
'内容类型:application/x-www-form-urlencoded',
“内容”=>$postdata
)
);
$context=stream\u context\u create($opts);
$result=json\u decode(文件\u获取\u内容($graph\u url,false,
美元);;
$album_id=$result->id;
$graph_url=”https://graph.facebook.com/" 
. $相册\u id。“/photos?”
. “url=”。urlencode('https://yourkishore.com/facebook/“.$output)
. “&message=”。URLENCDE('我收到我的就业报告,请在这里收到你的报告:https://apps.facebook.com/yourkishore')
. “&method=POST”
. “&access_-token=”.$access_-token;
回声';
文件获取内容($graph\u url);
回声';

Facebook API认为这张照片应该去的用户与
访问令牌直接关联。从那里开始调试。在调试器中放置一些来自不同用户的access_令牌,看看您得到了什么