WHMCS设置:Facebook账号登录

2023年11月2日 | 分类: 【源码】

参考:https://docs.whmcs.com/Configuring_Sign-In_using_Facebook
参考:https://docs.tuya.com/cn/app/third-party/thirdpart-login/Facebook.html

 

  1. Create a Facebook App.
    1. Visit the Facebook developer portal.
    2. Log in to your Facebook account.
    3. Click Create App. Facebook-1.png
    4. Select Consumer as the app type. Facebook-2.png
    5. Click Continue.
    6. Enter an App Display Name. This is the name people will see when authorizing your app. We recommend using your company name here.
    7. Enter an App Contact Email. This email will be used for important communication about your app. Facebook-3.png
    8. Click Create App.
    9. Locate Facebook Login and click Set Up. Facebook-4.png
    10. Select Web as your platform. Facebook-5.png
    11. Enter the full URL to the root domain of your website. Facebook-6.png
    12. Click Save.
    13. Click Continue.
  2. Configure the required permissions.
    1. From the App Review menu, select Permissions and Features.
    2. Locate the public_profile option and click Get Advanced Access. Facebook-9.png
    3.  Agree to the request and click Confirm.
  3. Retrieve the App Credentials.
    1. Navigate to the Dashboard.
    2. From the Settings menu, select Basic.
    3. Click Show to view the App ID and Secret. Fb10.png
  4. Activate the app within WHMCS.
  5. Log in to the WHMCS Admin Area.
  6. Navigate to Configuration () > System Settings > Sign-In Integrations or, prior to WHMCS 8.0, Setup > Sign-In Integrations.
  7. Select Activate under the Facebook heading.
  8. Enter your Facebook App ID and your Facebook App Secret.
  9. Click Save & Activate.

WHMCS will attempt to validate and test the details you have entered. If the App ID and Secret are valid and successfully authenticate with the Facebook API, the values will be saved.

在Setting配置您的应用,在Basic部分,此时已经生成了Facebook App Id & Secret,但是完全生效需要填写正确的必要信息。

1. 注册一个Facebook 账号,或者已有的Facebook账号

2.登录https://developers.facebook.com/

用上面的facebook账号登录

3.点击我的应用

我的应用

4.创建一个应用

创建应用

5.选择应用类型

选择应用类型

6.填写基本信息

填写基本信息

点击创建后需输入facebook密码;

7.添加商品-登录

添加登录

8.选择登录类型-网络

选择登录类型-网络

9.获取appId和密钥

获取appId和密钥
公司验证

10.设置JSSDK登录

设置JSSDK登录