Skip to content

Commit

Permalink
fb_graph2 is obsolete. Removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
hhorikawa committed Jul 13, 2024
1 parent 4eb2068 commit 1af7760
Show file tree
Hide file tree
Showing 13 changed files with 3 additions and 329 deletions.
8 changes: 3 additions & 5 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,9 @@ if RUBY_VERSION != '3.3.1'
end

# Facebook.
# 2020年5月現在, 比較的最近までメンテナンスされているものは、次の2択:
# - https://github.com/nov/fb_graph2
# - https://github.com/arsduo/koala
# facebook_oauth は 2011年で終了している。
gem 'fb_graph2'
# ▲ 'fb_graph2' は rack-oauth2 v2 で動かなくなっている。もう使えない.
# koala はメンテナンスが継続している。
# 別サンプルをつくった; https://gitlab.com/netsphere/rails-examples/-/tree/main/rails7/

gem 'rack-oauth2'

Expand Down
17 changes: 0 additions & 17 deletions app/controllers/connect/facebook_controller.rb

This file was deleted.

1 change: 0 additions & 1 deletion app/controllers/dashboard_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ class DashboardController < ApplicationController
def show
@account = current_user
@clients = @account.clients
print Connect::Facebook.all.inspect # DEBUG
end
end
115 changes: 0 additions & 115 deletions app/models/connect/facebook.rb

This file was deleted.

29 changes: 0 additions & 29 deletions app/views/connect/facebook/_login_button.html.erb

This file was deleted.

1 change: 0 additions & 1 deletion app/views/top/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

<p>Admin login:
<ul>
<li><%= render 'connect/facebook/login_button' %></li> emailの提供を許可してください。
<li><%= render 'connect/google/login_button' %></li>
</ul>

Expand Down
26 changes: 0 additions & 26 deletions config/connect/facebook.yml.sample

This file was deleted.

17 changes: 0 additions & 17 deletions db/migrate/20110829024031_create_connect_facebooks.rb

This file was deleted.

11 changes: 0 additions & 11 deletions db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 0 additions & 48 deletions test/controllers/connect/facebook_controller_test.rb

This file was deleted.

11 changes: 0 additions & 11 deletions test/fixtures/connect/facebooks.yml

This file was deleted.

7 changes: 0 additions & 7 deletions test/models/connect/facebook_test.rb

This file was deleted.

41 changes: 0 additions & 41 deletions test/system/connect/facebooks_test.rb

This file was deleted.

0 comments on commit 1af7760

Please sign in to comment.