The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
| [ | |
| "United States" => "us", | |
| "Afghanistan" => "af", | |
| "Albania" => "al", | |
| "Algeria" => "dz", | |
| "American Samoa" => "as", | |
| "Andorra" => "ad", | |
| "Angola" => "ad", | |
| "Anguilla" => "ai", | |
| "Antarctica" => "aq", |
| How to get a Facebook Page Access Token that doesn't expire Never! | |
| - Go to http://developers.facebook.com/tools/explorer/ | |
| - Get a User Access Token with a permission "manage_pages" | |
| - Convert this short-lived access token into a long-lived one by making this Graph API call: | |
| https://graph.facebook.com/v2.6/oauth/access_token?client_id=<your FB App ID >&client_secret=<your FB App secret>&grant_type=fb_exchange_token&fb_exchange_token=<your short-lived access token> | |
| - Make a call Graph API: | |
| https://graph.facebook.com/v2.6/<your personal account FB user id>/accounts?access_token=<your long-lived access token> | |
| - The returned access_token has no expiration unless you change your password or not more admin of the target page or deauthorize FB page |
| // Run this from the commandline: | |
| // phantomjs runner.js | ffmpeg -y -c:v png -f image2pipe -r 24 -t 10 -i - -c:v libx264 -pix_fmt yuv420p -movflags +faststart output.mp4 | |
| var page = require('webpage').create(), | |
| address = 'http://s.codepen.io/phanan/fullembedgrid/YPLewm?type=embed&safe=true&_t=1424767252279', | |
| duration = 3, // duration of the video, in seconds | |
| framerate = 24, // number of frames per second. 24 is a good value. | |
| counter = 0, | |
| width = 500, | |
| height = 500; |