Facebook Page Data

On this Page

Snap type:

Read


Description:

This Snap retrieves data for a page based on the page ID or page name.

  • Expected upstream Snaps: File reader followed by any file Parser.
  • Expected downstream Snaps: Any file Formatter followed by File Writer.
  • Expected inputPage namePage IDSince timeUntil time.
  • Expected output: Provides the output data for the supplied Page ID or the Page name for specified dates (the Since time and the Until time), and the selected operation.


Prerequisites:

[None]


Support and limitations:Works in Ultra Pipelines.
Account: 
  • This Snap uses account references created on the Accounts page of SnapLogic Manager to handle access to this endpoint. See Configuring Facebook Accounts for information on setting up this type of account.


Views:
InputThis Snap has at most one document input view.
Output

This Snap has exactly one document output view. The data passed through looks like this:

id: 
 metadata: 
type:
name: 
from:  {id:, metadata:, type:, name:, category:Local Business} 
   id:
   metadata:, 
   type:, 
   name: 
   category: 

message: , 
picture: 
link: 
caption: 
description: 
source:, 
application:, 
icon: 
attribution:, 
privacy:  {value:, description:, friends:, networks:, deny:, allow:} 
  value:
  description:
  friends: 
  networks:, 
  deny: 
  allow: 

feedTargeting: , 
likesCount: 
likes:  {totalCount:0, data:{, ...}} 
totalCount: 0
  data:  [{, ...}, {, ...}, {, ...}] 
    {id:, metadata:, type:null, name:} 
      id:
      metadata:, 
      type:, 
      name: 
      ...


createdTime: 
updatedTime:
objectId: , 
statusType: shared_story
  story: null, 
  comments: null, 
  place: null, 
  to: [ ], 
  actions:  [{, ...}, {, ...}] 
    {name:Comment, link:} 
      name: Comment
      link: 
    {name:Like, link:} 
      name: Like
      link: https://www.facebook.com/151165601564012/posts/1171921349488427

properties: [ ], 
withTags: [ ], 
messageTags: { }, 
shares:  {count:} 
  count:

adminCreator: null, 
sharesCount: 
commentsCount: 

ErrorThis Snap has at most one document error view and produces zero or more documents in the view.

Settings

Label


Required. The name for the Snap. You can modify this to be more specific, especially if you have more than one of the same Snap in your pipeline.

Page name



The page name for which data has to be fetched.

Default value: [None]

Page ID


The ID of the page from which data has to be fetched. If the Page name and the Page ID are both provided, the Page ID has preference.

Default value: [None]


Since time


The date specified (in the format of: yyyy-mm-dd) that marks the beginning of the period of the data to be fetched.
Default value: [None]


Until time


The date specified (in the format of: yyyy-mm-dd) that marks the end of the period of the data to be fetched.

Default value: [None]


Operation name


Required. The operation for which data from a page has to be fetched. Options available include:

  • PageData
  • Likes
  • Comments
  • PageInfo

Default value: PageData


Snap Execution

Select one of the three modes in which the Snap executes. Available options are:

  • Validate & Execute: Performs limited execution of the Snap, and generates a data preview during Pipeline validation. Subsequently, performs full execution of the Snap (unlimited records) during Pipeline runtime.
  • Execute only: Performs full execution of the Snap during Pipeline execution without generating preview data.
  • Disabled: Disables the Snap and all Snaps that are downstream from it.


Example


The example assumes that you have configured & authorized a valid Facebook account (see Configuring Facebook Accounts  to be used with this Snap. The following Page Data Snap retrieves page data from a Facebook page with a Facebook page name, GaianSolutionsIndiaPvtLtd:

Similarly, you can also retrieve page data using a Facebook page ID. In this example, the Snap retrieves page data from January 1st 2016 to May 27th 2016 for the page ID, 401484913294377:

After a successful validation of the above Snap, you will see a data preview that shows the Facebook page data as shown below: 


 

Snap Pack History

 Click to view/expand
ReleaseSnap Pack VersionDateTypeUpdates
4.27main12833 StableUpgraded with the latest SnapLogic Platform release.
4.26main11181 StableUpgraded with the latest SnapLogic Platform release.
4.25main9554 StableUpgraded with the latest SnapLogic Platform release.
4.24main8556
 
Stable

Upgraded with the latest SnapLogic Platform release.

4.23main7430
 
StableUpgraded with the latest SnapLogic Platform release.
4.22main6403
 
StableUpgraded with the latest SnapLogic Platform release.
4.21snapsmrc542
 
StableUpgraded with the latest SnapLogic Platform release.
4.20snapsmrc535
 
StableUpgraded with the latest SnapLogic Platform release.
4.19snaprsmrc528
 
StableUpgraded with the latest SnapLogic Platform release.
4.18snapsmrc523
 
StableUpgraded with the latest SnapLogic Platform release.
4.17ALL7402
 
Latest

Pushed automatic rebuild of the latest version of each Snap Pack to SnapLogic UAT and Elastic servers.

4.17snapsmrc515
 
Stable

Added the Snap Execution field to all Standard-mode Snaps. In some Snaps, this field replaces the existing Execute during preview check box.

4.16snapsmrc508
 
StableUpgraded with the latest SnapLogic Platform release.
4.15snapsmrc500
 
StableUpgraded with the latest SnapLogic Platform release.
4.14snapsmrc490
 
StableUpgraded with the latest SnapLogic Platform release.
4.13

snapsmrc486

 
Stable

Upgraded with the latest SnapLogic Platform release.

4.12

snapsmrc480

 
StableUpgraded with the latest SnapLogic Platform release.
4.11snapsmrc465
 
StableUpgraded with the latest SnapLogic Platform release.
4.10

snapsmrc414

 
StableUpgraded with the latest SnapLogic Platform release.
4.9

snapsmrc405

 
Stable

Upgraded with the latest SnapLogic Platform release.

4.8

snapsmrc398

 
StableUpgraded with the latest SnapLogic Platform release.
4.7

snapsmrc382

 
StableUpgraded with the latest SnapLogic Platform release.
4.6

snapsmrc362

 
StableUpgraded with the latest SnapLogic Platform release.
4.5.1

rcmsf231

 
StableUpgraded with the latest SnapLogic Platform release.
4.5rcmsf231 StableUpgraded with the latest SnapLogic Platform release.
4.3.2NA Latest

Resolved an issue with Facebook Query where the error was not routing to error view for "com.restfb.exception.FacebookJsonMappingException".

4.2.2NA

  • Snap Pack updated to work with the latest Facebook API.
  • Deprecated: FetchConnections Snap and UserDetails Snap are no longer supported in the current Facebook API.
  • Search Snap: Post is no longer a supported object type for search.
January 2014NA

Initial release of this Snap Pack with Fetch Connections, Insights Data, Page Data, Query, Search.