Skip to main content

Find your Facebook ID - a 5-second easy tool for locating your Facebook numeric personal ID




   <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    <script>
        $(document).ready(function ($) {

            $("#btnGetPageId").click(function () {

                var companyName = $("#txtKey").val();
                //alert(
companyName);
                $.ajax({
                    //url: "https://graph.facebook.com/gate6agency",
                    url: "https://graph.facebook.com/" +
companyName,
                    type: "GET",
                    cache: false,
                    dataType: "JSON",
                    contentType: "application/json",
                    success: function (data) {
                        console.log(data);
                        alert("page Id :" + data.id);
                    }
                });
            });

        });
    </script>


    <div>
        <label for="fb_profile_url"  >
           
Enter Facebook Page Name:
        </label>
        <input id="txtKey" type="text" placeholder="Your Page Name" value="gate6agency" />
        <input id="btnGetPageId" type="button" value="Lookup numeric ID..."  >
    </div>

Comments