如何为现有Facebook企业主页创建或获取App ID与App Secret
Hey there! As someone who’s walked countless non-developer folks through getting Facebook app credentials for WordPress integrations, I’ll break this down into super clear, step-by-step actions—no coding know-how needed. Let’s dive in:
Step 1: Log into Facebook for Developers
Grab your company’s Facebook account (the one that manages your official Facebook Page) and head to the Facebook for Developers platform. Log in with those credentials—this ensures you’ll have access to link your company Page later.
Step 2: Create a New App
- Click the My Apps dropdown in the top-right corner, then select Create App.
- When prompted to choose an app type, pick Business (this is the best fit for company/brand integrations like your WordPress plugin use case).
- Fill in the basic details:
- App name: Use something descriptive, like “[Your Company Name] WordPress Facebook Event Display”
- App contact email: Enter your work email so Facebook can reach you if needed
- Click Create App ID, then complete the quick human verification prompt (just follow the on-screen instructions).
Step 3: Link Your Company Facebook Page
Once your app is created, you’ll land on its dashboard. Here’s how to connect your Page:
- From the left-hand menu, go to Settings > Basic.
- Scroll down to the Add Platform button, click it, and select Website (since we’re integrating with your WordPress website).
- In the Site URL field, paste your full WordPress website address (e.g.,
https://yourcompanywebsite.com), then hit Save Changes. - Back on the Basic settings page, look for the Facebook Pages section. Click Add, select your company’s official Facebook Page from the list, and confirm the authorization.
Step 4: Grab Your App ID and App Secret
This is the part you’ve been waiting for—they’re right on the same Settings > Basic page:
- App ID: It’s prominently displayed at the top of the page. Just copy that string of numbers.
- App Secret: You’ll see it right below the App ID, but it’s hidden by default. Click the Show button next to it, enter your Facebook account password when prompted, and it will reveal itself. Copy this too, but keep it secure—treat it like a password you wouldn’t share publicly.
Step 5: Plug Them Into Your WordPress Plugin
- Open your WordPress admin dashboard and navigate to the settings page of your Facebook event display plugin.
- Look for fields labeled Facebook App ID and App Secret (they might be under a “Facebook Integration” or “API Settings” tab).
- Paste the values you copied earlier into the respective fields, save the settings, and test out the plugin to make sure your Facebook events show up correctly.
Quick Tips to Avoid Headaches
- If your plugin isn’t pulling in events at first, double-check that your Facebook Page’s events are set to Public (private events won’t show up via the plugin).
- If you see a “development mode” warning, you can switch your app to Live status later: Go to App Review in the left menu, follow the prompts to add a privacy policy link (use your company’s existing privacy policy page URL) and complete any required verification steps.
内容的提问来源于stack exchange,提问作者Jess Kalbfleisch




