Hi Guys, Well I am new to FaceBook Graph API or FaceBook API in general but that doesn't stop me to share if I come up with something useful. Why do you need to know your FaceBook ID? I am a WordPress developer too and there are many social plugins that need to know your FaceBook ID. But that's not the only reason, another reason is exactly why you are reading this. Anyway lets jump on How To First Download the latest PHP SDK from GitHub. Here is the URL https://github.com/facebook/facebook-php-sdk Extract the archive to your current working directory or to somewhere where you place your external libraries. The Code Example [crayon-6002893002346074983126/] So as you can see that it is dead simple and I can get my ID from above array as $user["id"] This post actually shows how to use/create a FaceBook Object using your appId and secret If you haven't created your FaceBook Application yet, here is a link to create one https://developers.facebook.com/apps/ I hope this helps Cheers … [Read more...]
Recent Comments