Maintenance Notice - PDF Generation
Dynamic PDF generation for web-based content is temporarily unavailable. This maintenance affects dynamic PDF files that are generated from either the HTML-based page or manual that you are viewing. Links that normally allow this functionality have been hidden, and will reappear as soon as the feature is restored.


Note: Access to static files, including PDF files that are not dynamically generated from our web-based content, is unaffected.

Jump to: navigation, search

Creating a Facebook Application

Important
The APIs and other features of social media sites may change with little warning. The information provided on this page was correct at the time of publication (22 February 2013).

If you do not have a Facebook account, create one. The name of this account appears as the developer of the application you create.

On the web page http://developers.facebook.com/apps, click the Create New App button, enter a name and click Continue. Enter the Security Check text and click Continue.

On the resulting page,

  • Make a note of the Application ID and Application Secret.
  • Fill in other attributes, then click Save Changes.

To get your user short-lived access token, enter the following URL into a browser,
https://www.facebook.com/dialog/oauth?client_id=APPLICATION_ID&redirect_uri=https://www.facebook.com/connect/login_success.html&scope=PERMISSIONS&response_type=token

making the following substitutions:

  • For APPLICATION_ID, substitute the Application ID from Step 3.
  • For PERMISSIONS, substitute a comma-separated list of the permissions listed below. Genesys recommends that you use the full list, to ensure that FQL requests are processed successfully.

On the resulting page, click Go to App.

On the permissions page, click Allow. The resulting page displays the single word 'success'.

Make note of the long alphanumeric string following code= in the URL (excluding &expires=<number> at the end of the string)β€”this is your access token.

To check when the access token expires, go to https://developers.facebook.com/tools/debug and enter in the access token from the previous step.

  1. If your access token is short lived, you can extend it by entering the following URL in a browser, substituting the Application Id for APPLICATION_ID, the Application Secret for APPLICATION_SECRET, and the token from step 7 for TOKEN:
    https://graph.facebook.com/oauth/access_token?grant_type=fb_exchange_token&client_id=APPLICATION_ID&client_secret=APPLICATION_SECRET&fb_exchange_token=TOKEN
  2. This produces a screen with a single line of text consisting of access_token= followed by a long alphanumeric string.
    Make a note of this string. It is the value of the Social Messaging Server configuration option x-facebook-access-token. &expires=<number> at the end of the string must not be included into the x-facebook-access-token configuration option for Social Messaging Server.


List of Permissions

This is a complete list of the permission codes that can be used in the URL given in Step 4:


email publish_actions user_about_me user_actions.music user_actions.news user_actions.video user_activities user_birthday
user_education_history user_events user_games_activity user_groups user_hometown user_interests user_likes user_location
user_notes user_photos user_questions user_relationship_details user_relationships user_religion_politics user_status user_subscriptions
user_videos user_website user_work_history friends_about_me friends_actions.music friends_actions.news friends_actions.video friends_activities
friends_birthday friends_education_history friends_events friends_games_activity friends_groups friends_hometown friends_interests friends_likes
friends_location friends_notes friends_photos friends_questions friends_relationship_details friends_relationships friends_religion_politics friends_status
friends_subscriptions friends_videos friends_website friends_work_history ads_management create_event create_note export_stream
friends_online_presence manage_friendlists manage_notifications manage_pages photo_upload publish_checkins publish_stream read_friendlists
read_mailbox read_insights read_page_mailboxes read_requests read_stream rsvp_event share_item sms
status_update user_online_presence video_upload xmpp_login

Next Steps

Deploy Social Messaging Server with a Facebook Channel category:Social Messaging Server category:eServices Social Media Solution Guide

This page was last edited on November 20, 2018, at 17:40.

Feedback

Comment on this article:

blog comments powered by Disqus