Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $access_token =
- "EAAIisKiH...";
- $link = "https://graph.facebook.com/me/feed?access_token=" . $access_token;
- // $jawi = file_get_contents($url);
- $feed = file_get_contents($link);
- $data = json_decode($feed, true);
- $id_latest_post = $data["data"][0]["id"];
- $komen_baru =
- "https://graph.facebook.com/" .
- $id_latest_post .
- "/comments?access_token=" .
- $access_token;
- $dapat_komen_baru = file_get_contents($komen_baru);
- $id_komen_baru = json_decode($dapat_komen_baru, true);
- $dapat_id_komen_baru = $id_komen_baru["data"][0]["id"];
- $ayat = $_GET["ayat"];
- $kerja =
- "https://graph.facebook.com/" .
- $dapat_id_komen_baru .
- "/comments?parents&message=" .
- $ayat .
- "&method=post&access_token=" .
- $access_token;
- $hantar = file_get_contents($kerja);
- print_r($hantar);
- // https://graph.facebook.com/me/727115214590544_842263419742389/comments?parents&message=haha&access_token=
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement