Technologx Posted June 24, 2016 Share Posted June 24, 2016 Facebook You can allows users to sign in on your community with their Facebook account. This is a great way to make it easier for users to get started on your community and increase the number of signups. In addition, users who sign in with Facebook can have their profile photo automatically synced with Facebook and can even import their status updates and allow them to automatically share content they post on your community to Facebook. This guide covers everything you need to know to set up this integration. Tip If you enable either the "Allow Status Imports?" or "Users can share immediately when posting?" settings for Facebook login, make sure you read and follow the instructions in Step Five below. Step One: Create a Facebook App In order to use Facebook to log in on your community, you need to create an "application" through the Facebook Developer site. This gives Facebook some information about your community and a special key that is needed to complete the set up. Go to https://developers.facebook.com/apps and sign in with your Facebook account if you are not already signed in. Click the button to add an app in the top-right. Choose the option for a website. Type the name of your community and create the application. Leave the option about a test app off, choose the category which best matches your community and create the application. On the next screen, you can ignore the part about the SDK, and just fill in the URL to your site below. Click the link to to continue to the dashboard. Step Two: Update App Settings There's a few more pieces of information you need to give Facebook about your community before continuing. On the dashboard for your app on Facebook's site, click the "Settings" link the sidebar. Fill in a Contact Email and save the form. It is also a good idea to upload an App Icon so that when users sign in with Facebook they see your logo rather than a generic icon on the login screen. You can also set a Privacy Policy URL so users see a link to that on the sign in screen. These are normally optional, but if you intend to enable the "Allow Status Imports?" or "Users can share immediately when posting?" settings (discussed in Step Five), it is required. To do this: On the dashboard for your app on Facebook's site, click the "App Details" link the sidebar. Under "Contact Info" fill in any details you like. It is a good idea to include a Privacy Policy URL (which is required if you are going to enable the settings discussed in Step Five) but you can also fill in the other fields to show additional information on the sign in dialog. Under "Icons" upload a logo for your community and save the form. Step Three: Link your Facebook App with your Community Back on the dashboard for your Facebook App you will see a box like this at the top of the page: You need to copy and paste the App ID and App Secret into the Admin CP on your community. Go to Admin CP -> System -> Login Handlers and click the "Edit" icon for Facebook and enter those details on that screen. Tip If you enable either the "Allow Status Imports?" or "Users can share immediately when posting?" settings for Facebook login, make sure you read and follow the instructions in Step Five below. After saving, you need to enable the login handler. Make sure the badge next to Facebook says "Enabled", and click it to toggle if it doesn't. Step Four: Enable your App Now you need to set your Facebook App to be ready for use. Back on the dashboard for your app on Facebook's site, click the "App review" link the sidebar. Click the toggle to make your application live and confirm the popup. Users will now be able to sign in with Facebook on your community. Optional Step Five: App Review for Status Integration When setting up Facebook login, there are two settings which, if enabled, you need to perform additional steps to set up: "Allow Status Imports?" or "Users can share immediately when posting?". Because these settings allow your community to read from and write to the user's timeline on Facebook, Facebook requires that before you can use these features you must submit an application to them to review this functionality. If you want to enable either of these settings, you need to do the following: If you have not already uploaded an App Icon and set a Privacy Policy URL as discussed in Step Two, do that now. Enable the settings as desired and then sign in with Facebook on your site. You will see a message that some permissions have not been submitted for approval, you can ignore that warning for now and press "OK" to continue logging in. If you are enabling the "Users can share immediately when posting?" setting, you need to perform this action so that Facebook knows it works correctly. Submit a topic or other content on your community and when you do so, check the "Share on Facebook" checkbox. Back on the dashboard for your app on Facebook's site, click the "App review" link the sidebar. Click "Start a Submission". If you are enabling the "Allow Status Imports?" setting, check the "user_posts" checkbox. If you are enabling the "Users can share immediately when posting?" setting, check the "publish_actions" checkbox. Click the "Add X Items" button. If you are enabling the "Allow Status Imports?" setting, click the "Add Notes" button for the "user_posts" permission and fill in the form explaining how your community will allow users to import posts from the user's timeline into the statuses feature on your community. You will need to select the "Web" platform and provide both instructions and a screencast of how Facebook can test the feature. Suggested instructions are: Quote 1. On the home page, click "Existing User? Sign In" in the top-left and then click "Sign in with Facebook" from the dropdown. 2. Click on your name on the top-left and then click "Profile". 3. Click "Edit Profile" and then enable the "Enable status updates?" setting to enable the site's status update feature. 4. Click on your name on the top-left and then click "Account Settings". 5. Click the "Facebook" tab. Observe how your latest timeline post is saved providing context to the user. 6. Enable the "Update my status here with my Facebook status" setting and save the form. 7. Click the "Synchronise Now" button. 8. Click on your name on the top-left and then click "Profile". 9. Observe how your latest timeline post has been imported and shows alongside other content from the site. If you are enabling the "Users can share immediately when posting?" setting, click the "Add Notes" button for the "publish_actions" permission and fill in the form explaining how your community will allow users to share content they create on your community to their Facebook timeline. You will need to select the "Web" platform and provide both instructions and a screencast of how Facebook can test the feature. Suggested instructions are: Quote 1. On the home page, click "Existing User? Sign In" in the top-left and then click "Sign in with Facebook" from the dropdown. 2. Click the "+Create" button in the top-left and then choose "Topic" from the dropdown. 3. Submit a topic, making sure you check the "Share on Facebook" checkbox before submitting. Upload at least 4 screenshots showing the Facebook integration on your site. For example, you might show the "Sign in with Facebook" button, the homepage after the user has signed in, the Facebook screen in Account Settings, and the "Share on Facebook" button on the topic submission screen. Submit the review. You should be advised how long the review will take. Once Facebook have approved your review, the additional features will be available on your community. 1 Quote <p style="text-align: center;"> <img alt="newforumsig2a8b7.png" class="ipsImage" src="https://technologx.com/applications/core/interface/imageproxy/imageproxy.php?img=http://upicme.technologx.com/images/newforumsig2a8b7.png&key=39dac093df23a0bac3413cace79b784bbd9c7b204556aeca70f3d3b64bd6f656"> </p> Be sure to click the green up arrow if I've helped you any or you like my uploads. Thank you it really helps! Also if possible if you download my files please review them thank you? Link to comment Share on other sites More sharing options...
pumbaaa Posted October 26, 2016 Share Posted October 26, 2016 i keep getting this error Quote Warning: fsockopen() [function.fsockopen]: unable to connect to ssl://graph.facebook.com:443 (Connection refused) in /home/a8265359/public_html/Forum/ips_kernel/facebook/facebookoauth.php on line 308 any help will be appriciated Quote Link to comment Share on other sites More sharing options...
Lokiro Posted November 4, 2016 Share Posted November 4, 2016 thank you to explain how I had so much misery to integrate the login system via twitter and facebook Quote Link to comment Share on other sites More sharing options...
Technologx Posted December 4, 2016 Author Share Posted December 4, 2016 Have no idea as I pulled this from Invision Powers website Quote <p style="text-align: center;"> <img alt="newforumsig2a8b7.png" class="ipsImage" src="https://technologx.com/applications/core/interface/imageproxy/imageproxy.php?img=http://upicme.technologx.com/images/newforumsig2a8b7.png&key=39dac093df23a0bac3413cace79b784bbd9c7b204556aeca70f3d3b64bd6f656"> </p> Be sure to click the green up arrow if I've helped you any or you like my uploads. Thank you it really helps! Also if possible if you download my files please review them thank you? Link to comment Share on other sites More sharing options...
markisac Posted December 14, 2016 Share Posted December 14, 2016 thanks for detailed tutorial will try this thanks 1 Quote Link to comment Share on other sites More sharing options...
Uhacks Posted March 12, 2017 Share Posted March 12, 2017 Some images do not look right. Quote Link to comment Share on other sites More sharing options...
mr-pimpen Posted August 4, 2018 Share Posted August 4, 2018 giving an update to this for members who needs help and don't know where to add the callback Valid OAuth Redirect URIs https://www.site/oauth/callback/ Client OAuth Settings don't for get to set the https on if you are using https Approved Items you only need those to Quote when I load your site, I was like a vampire, slept for thousands of years and just now is my first glimpse of light haha. Link to comment Share on other sites More sharing options...
Humaniac Posted August 6, 2018 Share Posted August 6, 2018 Verry helpful tutorial for some users. Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.