How to get Facebook...
 
Notifications
Clear all

[Closed] How to get Facebook App ID and Secret Key

5 Posts
2 Users
4 Likes
30.6 K Views
Robert
(@robert)
Support Team Admin
Joined: 8 years ago
Posts: 10499
Topic starter  

Starting from wpForo 1.4.3 we integrated Facebook API in wpForo core. This allows to add Facebook login, content cross-posting, sharing and other features... At the moment only Facebook login is available. Other features will be added in future releases.

To start using Facebook features you should get Facebook App ID and Secret Key to fill the according wpForo options in Dashboard > Forums > Settings > API's admin page:

Please follow to these steps to get Facebook App ID and Secret Key

1. Login to your Facebook account.

2. Navigate to Facebook Developers page.

3. If you don’t have Facebook Developer Account you should register it before creating an Application. Click on the top right blue button (Register / Get Started), read the Privacy Policy and Terms. If you accept it set the option “Yes” and click on the [Next] button.

Select your country, insert your phone number and confirm it and click on the [Done] button.

4. Use the top right [My Apps] menu to start creating Facebook App. Click on the [Add New App] sub-menu.

5. Fill the Application name (you can enter website name) and contact email and click on [Create App ID] button.

6. Once App is created, you’ll be redirected to the App “Add a Product” dashboard. Find the “Facebook Login” box and click on [Set Up] button.

7. Choose the Web option (www circle).

8. insert your website URL and save it (don’t continue, just follow to the 9th step)

9. Using the left sidebar, navigate to Facebook Login > Settings page. Make sure “Client OAuth Login”, “Web OAuth Login” and “Enforce HTTPS” are set Yes.

 

Note: Please note that Facebook Applications are not available for http:// websites, those are only available for https:// secure websites.

10. Again, using the left sidebar, navigate to Settings > Basic page. Choose the Website Category, fill the Privacy Policy and terms URLs of your website, upload your website/company logo (optional). Make sure other data are correct and click on [Save Changes] button.

11. Turn ON the Facebook app Status button.

12. Copy Facebook Application Key and Secret and paste in according fields of the Facebook Section.

All is done! Just fill wpForo Facebook API fields and enable Facebook Login option:

Logout and check your forum Login and Register pages, there should be Facebook Login Button:

 

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.


   
OMTesla
(@omtesla)
Active Member
Joined: 8 years ago
Posts: 217
 

Hi

I did this and it still stays to NO in the 5th step, when i set it to Yes it display a message.

You must provide a valid Privacy Policy URL in order take your app Live. Go to App Details and make sure it is valid.

But i not have such URL on my site.

I have try to Log In with my facebook on my site and it say registration is disabled which is controlled by my s2member, not sure why  it say that as i try to log in with facebook not register. 


   
Robert
(@robert)
Support Team Admin
Joined: 8 years ago
Posts: 10499
Topic starter  

It seems it needs to be a real privacy policy for your app - you can't just link to facebook's developer policy, that has nothing to do with how you use the data you retrieve from users of your app

If not, and you're using a real privacy policy URL:

  1. Check it's definitely a valid URL that Facebook's Debug Tool can reach

  2. Try saving the basic settings - including privacy policy URL, then going back and changing the other settings you need

I have try to Log In with my facebook on my site and it say registration is disabled which is controlled by my s2member, not sure why it say that as i try to log in with facebook not register.

In this case you'll not be able to use this feature. Facebook and all future social login buttons creates account when they don't find an account with social network email. You can't be logged-in in WordPress/wpForo without an account. So it automatically creates a new account on first login.

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.


   
OMTesla reacted
OMTesla
(@omtesla)
Active Member
Joined: 8 years ago
Posts: 217
 

I understand now, thanks for reply.

Maybe i will enable registration of a free account with facebook then they will have to upgrade.  👍 


   
Robert
(@robert)
Support Team Admin
Joined: 8 years ago
Posts: 10499
Topic starter  

I leave here wpForo FB App settings screenshot to make things easier.

 

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.


   
jeanne and doviettrung37 reacted