Skip to content

Instantly share code, notes, and snippets.

@a14m
a14m / facebook.rb
Last active September 14, 2024 02:27
Gist for manually OAuth2 facebook for Rails APIs
# lib/omniauth/facebook.rb
require 'httparty'
module Omniauth
class Facebook
include HTTParty
# The base uri for facebook graph API
base_uri 'https://graph.facebook.com/v2.3'
Highcharts.Chart.prototype.callbacks.push(function(chart) {
var hasTouch = document.documentElement.ontouchstart !== undefined,
mouseTracker = chart.pointer,
container = chart.container,
mouseMove;
mouseMove = function (e) {
if (hasTouch) {
if (e && e.touches && e.touches.length > 1) {
mouseTracker.onContainerTouchMove(e);
# Meer vertalingen: https://github.com/plataformatec/devise/wiki/I18n
nl:
devise:
confirmations:
confirmed: 'Je account is bevestigd.'
send_instructions: 'Je ontvangt via e-mail instructies hoe je je account kan bevestigen.'
send_paranoid_instructions: 'Als je e-mailadres bestaat in de database, ontvang je via e-mail instructies hoe je je account kan bevestigen.'
failure:
already_authenticated: 'Je bent al ingelogd.'