Adding a Facebook Profile or Cover Photo in Adobe Muse
Channel: Copy + Paste
Date: 15/12/2014

Ever wanted to have a author bio with your Facebook profile pic on it – that changed whenever you updated it on Facebook?  You can always download and re-upload your photo, but what if there was a way to have this done automatically for you?  No more searching: the answer is here!  This short Javascript code snippet will allow you to link an HTML frame in your Adobe Muse website to a Facebook cover or profile picture that will always automatically update.

Our copy-and-paste code in a text file viewable on Dropbox (since YT doesn't allow such things in descriptions):
https://www.dropbox.com/s/iddi1l0wyiquxh7/Adding%20a%20Facebook%20Profile%20or%20Cover%20Photo%20in%20Adobe%20Muse.txt?dl=0

Sources (mucho thanks to the following authors!):
Most of my inspiration was drawn from the fantastic WP Social Avatar plugin, and it served as the basis for my code:
https://wordpress.org/plugins/wp-social-avatar/

Inspiration drawn from the discussion and ideas here, though my method is a little bit different.
http://stackoverflow.com/questions/8125880/getting-facebooks-cover-photo-via-php-sdk-graph-api

Reference guide for Facebook requests:
https://developers.facebook.com/docs/graph-api/reference/v2.2/user/picture

Great place that helped me with the JSON coding:
http://www.w3schools.com/json/default.asp

Music credits:
"Wonder_Cycle" - Chris Zabriskie
(http://freemusicarchive.org/member/chriszabriskie)
"All Things Considered" - Lovira
(http://freemusicarchive.org/music/Lovira/Experiments/01_-_Lovira_-_All_things_considered)

Thanks for watching!