Facebook Developers
DocsToolsSupportNewsApps
Log In
  • Social Plugins
  • Facebook Login
  • Open Graph
  • Facebook APIs
    • Graph API
    • FQL
    • Open Graph
    • Dialogs
    • Chat
    • Internationalization
    • Ads
  • Games
  • Payments
  • App Center
  • Promote Your App
  • iOS
  • Android
  • JavaScript
  • PHP
  • More SDKs
  • Tables
    • album
    • app_role
    • application
    • apprequest
    • checkin
    • comment
    • comments_info
    • connection
    • cookies
    • column
    • developer
    • domain
    • domain_admin
    • event
    • event_member
    • family
    • friend
    • friendlist
    • friendlist_member
    • friend_request
    • group
    • group_member
    • insights
    • like
    • link
    • link_image_src
    • link_stat
    • location_post
    • mailbox_folder
    • message
    • note
    • notification
    • object_url
    • offsite_conversion_event
    • page
    • page_admin
    • page_blocked_user
    • page_global_brand_child
    • page_fan
    • page_milestone
    • permissions
    • permissions_info
    • photo
    • photo_src
    • photo_tag
    • place
    • privacy
    • privacy_setting
    • profile
    • profile_tab
    • profile_view
    • question
    • question_option
    • question_option_votes
    • review
    • score
    • standard_friend_info
    • standard_user_info
    • status
    • stream
    • stream_filter
    • stream_tag
    • subscription
    • table
    • thread
    • translation
    • unified_message
    • unified_message_count
    • unified_message_sync
    • unified_thread
    • unified_thread_action
    • unified_thread_count
    • unified_thread_sync
    • url_like
    • user
    • video
    • video_tag

profile

API Reference › FQL › profile

Description

A profile for a user, group, page, event, or application as represented in FQL. This data represents certain (typically publicly) viewable data and can be thought of as a parent class of the user, group, page, event, or application tables

Columns

NameDescription

can_post

bool

Whether the current user can post to the objects profile wall

id

id

A 64-bit int representing the user, group, page, event, or application ID

name

string

The full name of the object being queried

pic

string

The URL to the small-sized profile picture for the object being queried. The image can have a maximum width of 50px and a maximum height of 150px. This URL may be blank

pic_big

string

The URL to the largest-sized profile picture for the object being queried. The image can have a maximum width of 200px and a maximum height of 600px. This URL may be blank

pic_crop

struct

Size information for the picture. The image is pre-cropped and square

uri

string

The URL to the largest-sized square profile picture for the object being queried

width

int32

The pixel dimensions of this picture

height

int32

The pixel dimensions of this picture

left

float

Always 0. Included for compatibility only

top

float

Always 0. Included for compatibility only

right

float

Always 1. Included for compatibility only

bottom

float

Always 1. Included for compatibility only

pic_small

string

The URL to the small-sized profile picture for the object being queried. The image can have a maximum width of 50px and a maximum height of 150px. This URL may be blank

pic_square

string

The URL to the square profile picture for the object being queried. The image can have a maximum width and height of 50px This URL may be blank

type

string

The type of profile, one of user, group, page, event, or application

url

string

The URL to an object's profile or Page. If the object has a username, url contains the username

username

string

The username or alias of the object being queried

Examples

  • SELECT ... FROM profile WHERE id = A
  • SELECT ... FROM profile WHERE name = A
  • SELECT ... FROM profile WHERE username = A
Note: Additional filters on other columns can be specified but they may make the query less efficient.

Permissions

The permission you need to read the profile table depend on the object being queried:

User:

  • no access_token to access all fields except url which requires a valid access_token.

Group:

  • no access_token for an open group.
  • a valid access_token for a closed or secret group.

Page:

  • no access_token required.

Event:

  • no access_token for an open event.
  • a valid access_token for a private event that the user has been invited to and has not removed.

Application:

  • no access_token required.
Facebook © 2013 · English (US)
AboutAdvertisingCareersPlatform PoliciesPrivacy Policy