FacebookProxy

## FacebookProxy FacebookProxy |

## Synopsis

                        FacebookProxyPrivate;
                        FacebookProxy;
    RestProxy*          facebook_proxy_new                  (const char *api_key,
                                                             const char *app_secret);
    RestProxy*          facebook_proxy_new_with_session     (const char *api_key,
                                                             const char *app_secret,
                                                             const char *session_key);
    const char *        facebook_proxy_get_api_key          (FacebookProxy *proxy);
    void                facebook_proxy_set_app_secret       (FacebookProxy *proxy,
                                                             const char *secret);
    const char *        facebook_proxy_get_app_secret       (FacebookProxy *proxy);
    const char *        facebook_proxy_get_session_key      (FacebookProxy *proxy);
    void                facebook_proxy_set_session_key      (FacebookProxy *proxy,
                                                             const char *session_key);
    char *              facebook_proxy_sign                 (FacebookProxy *proxy,
                                                             GHashTable *params);
    char *              facebook_proxy_build_login_url      (FacebookProxy *proxy,
                                                             const char *frob);
    char *              facebook_proxy_build_permission_url (FacebookProxy *proxy,
                                                             const char *perms);

## Object Hierarchy

      GObject
       +----RestProxy
             +----FacebookProxy

## Properties

      "api-key"                  gchar*                : Read / Write / Construct Only
      "app-secret"               gchar*                : Read / Write / Construct
      "session-key"              gchar*                : Read / Write

## Description

## Details

### FacebookProxyPrivate

    typedef struct {
      char *api_key;
      char *app_secret;
      char *session_key;
    } FacebookProxyPrivate;

### FacebookProxy

    typedef struct _FacebookProxy FacebookProxy;

FacebookProxy has no publicly available members.

### facebook_proxy_new ()

    RestProxy*          facebook_proxy_new                  (const char *api_key,
                                                             const char *app_secret);

### facebook_proxy_new_with_session ()

    RestProxy*          facebook_proxy_new_with_session     (const char *api_key,
                                                             const char *app_secret,
                                                             const char *session_key);

### facebook_proxy_get_api_key ()

    const char *        facebook_proxy_get_api_key          (FacebookProxy *proxy);

Get the API key.

`proxy` : | an FacebookProxy
Returns : | the API key. This string is owned by FacebookProxy and should not be freed.

### facebook_proxy_set_app_secret ()

    void                facebook_proxy_set_app_secret       (FacebookProxy *proxy,
                                                             const char *secret);

### facebook_proxy_get_app_secret ()

    const char *        facebook_proxy_get_app_secret       (FacebookProxy *proxy);

Get the application secret for authentication.

`proxy` : | an FacebookProxy
Returns : | the application secret. This string is owned by FacebookProxy and should not be freed.

### facebook_proxy_get_session_key ()

    const char *        facebook_proxy_get_session_key      (FacebookProxy *proxy);

Get the current session key

`proxy` : | an FacebookProxy
Returns : | the session key, or `NULL` if there is no session yet. This string is owned by FacebookProxy and should not be freed.

### facebook_proxy_set_session_key ()

    void                facebook_proxy_set_session_key      (FacebookProxy *proxy,
                                                             const char *session_key);

Set the token.

`proxy` : | an FacebookProxy
`session_key` : | the session key

### facebook_proxy_sign ()

    char *              facebook_proxy_sign                 (FacebookProxy *proxy,
                                                             GHashTable *params);

### facebook_proxy_build_login_url ()

    char *              facebook_proxy_build_login_url      (FacebookProxy *proxy,
                                                             const char *frob);

### facebook_proxy_build_permission_url ()

    char *              facebook_proxy_build_permission_url (FacebookProxy *proxy,
                                                             const char *perms);

## Property Details

### The `"api-key"` property

      "api-key"                  gchar*                : Read / Write / Construct Only

The API key.

Default value: NULL

### The `"app-secret"` property

      "app-secret"               gchar*                : Read / Write / Construct

The application secret.

Default value: NULL

### The `"session-key"` property

      "session-key"              gchar*                : Read / Write

The session key.

Default value: NULL