Version comparison. Confluence's rendering of what changed between two versions of this page.
Recovered from the Internet Archive snapshot of
/pages/diffpagesbyversion.action?pageId=13763563&selectedPageVersions=13&selectedPageVersions=14
taken on 2016-08-09.
Extracting content from Facebook to Mediawiki
|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (3)
View Page History
...* Proof of concept - can get data from Facebook and update wiki with minimal user action.
* Would like to develop browser bookmarklet that user could use to transfer photo/album they're currently viewing in Facebook to the wiki. \\
* Would like to develop browser bookmarklet that user could use to transfer photo/album they're currently viewing in Facebook to the wiki. \\
JavaScript code placed in path.to/yourwiki/index.php/MediaWiki:Common.js (requires Facebook - [http://connect.facebook.net/en_US/all.js] \- and jQuery libraries):
{code}
var curr_url = window.location.href;
var curr_url = window.location.href;
... // app, and response.authResponse supplies
// the user's ID, a valid access token, a signed
// the user's ID, a valid access token, a signed
// request, and the time the access token
// and signed request each expire
var uid = response.authResponse.userID;
var uid = response.authResponse.userID;
... });
} else if (response.status === 'not_authorized') {
} else if (response.status === 'not_authorized') {
// the user is logged in to Facebook,
// but has not authenticated your app
} else {
} else {
...