New web

Web pattern library, style and technical reference

Sidebar Components

Facebook widget

A Facebook widget can be used in your sidebar to display the posts from a specific public Facebook page, the posts can be display as a test-only list, or in a carousel that will also display any relevant images attached to the displayed posts.

Facebook - Page Timeline

Facebook timeline widget

Asset setup

Asset type Standard page (with nested content)
Nested content asset #237973

Available variables

Variable Name Type Example Default
facebook_page required text TheUniversityofNewcastleAustralia - none -
Can be found by looking at the end of your page URL,
eg. http://www.facebook.com/TheUniversityofNewcastleAustralia
Alternatively, you can use a numeric Facebook ID which all people, pages and groups have, you can find ou the correct numeric ID here.
facebook_count optional number (1-10) 5 3
number of statuses to display in list/carousel
facebook_title optional text UON on Facebook - none -
defaults to name of facebook page eg. "The University of Newcastle, Australia"
facebook_carousel optional booloean false
setting to true switches widgets from list to carousel, including images

Technical info

REST Resource #237973 - Facebook - Page Timeline
Feeds https://graph.facebook.com/v2.9/%globals_get_facebook_page%/posts?fields=id,message,link,icon,picture,object_id,created_time,comments.limit(0).summary(true),likes.limit(0).summary(true),shares&limit=20&access_token=136340366440546|a789e5bf66d890eaa8b04c3f7ef5548f
https://graph.facebook.com/v2.9/%globals_get_facebook_page%/?fields=name,username,fan_count&access_token=136340366440546|a789e5bf66d890eaa8b04c3f7ef5548f

Facebook - Page Timeline - Carousel

Facebook carousel widget

Asset setup

Asset type Standard page (with nested content)
Nested content asset #237973

Available variables

Variable Name Type Example Default
facebook_page required text TheUniversityofNewcastleAustralia - none -
Can be found by looking at the end of your page URL,
eg. http://www.facebook.com/TheUniversityofNewcastleAustralia
Alternatively, you can use a numeric Facebook ID which all people, pages and groups have, you can find ou the correct numeric ID here.
facebook_count optional number (1-10) 5 3
number of statuses to display in list/carousel
facebook_title optional text UON on Facebook - none -
defaults to name of facebook page eg. "The University of Newcastle, Australia"
facebook_carousel optional booloean false
setting to true switches widgets from list to carousel, including images

Technical info

REST Resource #237973 - Facebook - Page Timeline
Feeds https://graph.facebook.com/v2.9/%globals_get_facebook_page%/posts?fields=id,message,link,icon,picture,object_id,created_time,comments.limit(0).summary(true),likes.limit(0).summary(true),shares&limit=20&access_token=136340366440546|a789e5bf66d890eaa8b04c3f7ef5548f
https://graph.facebook.com/v2.9/%globals_get_facebook_page%/?fields=name,username,fan_count&access_token=136340366440546|a789e5bf66d890eaa8b04c3f7ef5548f