Support and Documentation

Facebook

You can post messages to Facebook directly from Brightspot.

Connecting Brightspot to a Facebook App

To post to your Facebook account from Brightspot, you need to connect Brightspot to an existing Facebook app.

Note

Perform the steps in this section from a Brightspot instance running over HTTPS. Facebook does not allow connections from sites running over HTTP.

Procedure. To connect Brightspot to a Facebook app:
  1. In Brightspot, switch to the site from which you will be connecting to Facebook. For details, see Switching between sites.

  2. From the Navigation Menu, select Social > Services.

  3. In the Services widget, click New Facebook Service. The New Facebook Service widget appears.

    new-fb-service.png
  4. In the New Facebook Service widget, do the following:

    1. In the Name field, type a name for the service.

    2. In the App ID and App Secret fields, paste the values from your Facebook console.

    3. Click Save. Your Brightspot instance is now connected to a Facebook app, and a URL with two query parameters appears in your browser's address bar.

    4. In your browser's URL, copy into a text editor the value for the query parameter id. This is your Facebook's service ID within Brightspot, and you'll need this value when establishing redirect URIs in your Facebook app's settings.

      Service ID in Brightspot URL
      Figure 186. Service ID in Brightspot URL


    5. Proceed to Adding callback URIs to a Facebook app.

Adding callback URIs to a Facebook app

The procedure in the section Connecting Brightspot to a Facebook App generated a service ID that you pasted into a text editor. With that service ID you add two callback URIs to your Facebook app that allow your Brightspot instance to log in to Facebook and to post to profiles and pages. The callback URIs have the following formats:

https://my-domain.com/_social/services/facebook/connect?serviceId=<serviceID>&action=USER_AUTH_CALLBACK
https://my-domain.com/_social/services/facebook/connect?serviceId=<serviceID>&action=PAGES_AUTH_CALLBACK
  1. Return to Facebook's Client OAuth Settings widget for your app.

    fb-client-oauth.png
  2. In the Valid OAuth Redirect URIs field, enter the two callback URIs for your Brightspot instance: one for action=USER_AUTH_CALLBACK and another for action=PAGES_AUTH_CALLBACK.

    fb-redirect-uris.png
  3. Click Save Changes.