After creating a Facebook page where we will pull our data, we have to create an app to get an appId and appSecret keys. Those keys are required to use the Facebook PHP SDK and do our queries like pulling Facebook photos, events, videos, and feeds. Here’s a step by step tutorial on how to get those keys.
Here’s the link where you would start: create a Facebook app. On the pop up, specify your app name (the name of your website or app) and app namespace (used for your Facebook app URL e.g., http://apps.facebook.com/yournamespace)
You’ll be asked to enter a security code to verify that you’re a human and not a bot or malware that creates random Facebook apps. After entering the text in the box, click the “Continue” button.
Congrats! now you can copy your Facebook appId and appSecret. See the arrows below.
Prepare your App ID and App Secret keys, we’ll use it to get your access token, here’s how:
Replace YOUR_APP_ID and YOUR_APP_SECRET with your own and run the link on the browser.