我收到了来自 Facebook 的 JSON 响应。如何检索$id
&的值$post_id
?
$response = json_decode ( file_get_contents($graph_url) );
$id = $response.id;
$post_id = $response.post_id;
print_r( $response );
print_r( $id );
print_r( $post_id );
输出:
stdClass Object ( [id] => 232160686920835 [post_id] => 231794566957447_232160693587501 )
没有输出$id
& $post_id
... ...