Finding the id of a certain page in facebook using PHP

by guruprasad 2014-09-09 11:25:28

To Find the page id of a certain page in facebook:
   
    $url="https://graph.facebook.com/yourpagename";
    $content=file_get_contents($url);
    $x=json_decode($content);
    echo "page-id:".$x->id;

Tagged in:

626
like
0
dislike
0
mail
flag

You must LOGIN to add comments