Fixes #3256, closes #3080: Updated scopes to Facebook API versions > 6 (removes deprecated Facebook user wall functionality).

This commit is contained in:
Mantas Masalskis 2021-03-16 15:24:09 +00:00 committed by Thorsten Eckel
parent 017a0b1d96
commit 6ab04260ea
33 changed files with 5328 additions and 543 deletions

View file

@ -58,8 +58,7 @@ include:
variables: variables:
RAILS_ENV: "production" RAILS_ENV: "production"
.template_browser-core_capybara: &template_browser-core_capybara .template_browser-capybara: &template_browser-capybara
stage: browser-core
dependencies: dependencies:
- browser:build - browser:build
extends: extends:
@ -68,6 +67,11 @@ include:
- .services_mysql_postgresql_elasticsearch_selenium_imap - .services_mysql_postgresql_elasticsearch_selenium_imap
variables: variables:
RAILS_ENV: "test" RAILS_ENV: "test"
.template_browser-core_capybara: &template_browser-core_capybara
extends:
- .template_browser-capybara
stage: browser-core
script: script:
- bundle exec rake zammad:ci:test:prepare - bundle exec rake zammad:ci:test:prepare
- bundle exec rspec --fail-fast -t type:system -t ~integration - bundle exec rspec --fail-fast -t type:system -t ~integration

View file

@ -3,8 +3,6 @@ include:
# browser-integration # browser-integration
- local: '/.gitlab/ci/browser-integration/capybara_chrome.yml' - local: '/.gitlab/ci/browser-integration/capybara_chrome.yml'
- local: '/.gitlab/ci/browser-integration/capybara_ff.yml' - local: '/.gitlab/ci/browser-integration/capybara_ff.yml'
- local: '/.gitlab/ci/browser-integration/facebook_chrome.yml'
- local: '/.gitlab/ci/browser-integration/facebook_ff.yml'
- local: '/.gitlab/ci/browser-integration/idoit_chrome.yml' - local: '/.gitlab/ci/browser-integration/idoit_chrome.yml'
- local: '/.gitlab/ci/browser-integration/otrs_chrome.yml' - local: '/.gitlab/ci/browser-integration/otrs_chrome.yml'
- local: '/.gitlab/ci/browser-integration/zendesk_chrome.yml' - local: '/.gitlab/ci/browser-integration/zendesk_chrome.yml'

View file

@ -1,6 +0,0 @@
facebook_chrome:
extends:
- .template_browser-integration
variables:
BROWSER: "chrome"
TEST_FILE: "test/integration/facebook_browser_test.rb"

View file

@ -1,6 +0,0 @@
facebook_ff:
extends:
- .template_browser-integration
variables:
BROWSER: "firefox"
TEST_FILE: "test/integration/facebook_browser_test.rb"

View file

@ -2,7 +2,6 @@ include:
- local: '/.gitlab/ci/integration/clearbit.yml' - local: '/.gitlab/ci/integration/clearbit.yml'
- local: '/.gitlab/ci/integration/email_helper_deliver.yml' - local: '/.gitlab/ci/integration/email_helper_deliver.yml'
- local: '/.gitlab/ci/integration/es.yml' - local: '/.gitlab/ci/integration/es.yml'
- local: '/.gitlab/ci/integration/facebook.yml'
- local: '/.gitlab/ci/integration/geo.yml' - local: '/.gitlab/ci/integration/geo.yml'
- local: '/.gitlab/ci/integration/otrs.yml' - local: '/.gitlab/ci/integration/otrs.yml'
- local: '/.gitlab/ci/integration/slack.yml' - local: '/.gitlab/ci/integration/slack.yml'

View file

@ -1,7 +0,0 @@
facebook:
extends:
- .template_integration
script:
- bundle exec rake zammad:db:init
- bundle exec rails test test/integration/facebook_test.rb
allow_failure: true

View file

@ -23,20 +23,23 @@ include:
# RSpec 3rd party integration tests are independent of the database # RSpec 3rd party integration tests are independent of the database
# therefore we need only one job and choose a random database for each run # therefore we need only one job and choose a random database for each run
rspec:mysql:integration: .rspec_integration_rules: &rspec_integration_rules
rules:
- if: $CI_MERGE_REQUEST_ID
when: never
- if: '$CI_COMMIT_BRANCH =~ /^private/ && $INTEGRATION_TESTS != null'
when: manual
allow_failure: true
- when: on_success
rspec:integration:
stage: test stage: test
extends: extends:
- .env_base - .env_base
- .services_mysql_postgresql - .services_mysql_postgresql
- .rspec_integration_rules
variables: variables:
RAILS_ENV: "test" RAILS_ENV: "test"
rules:
- if: $CI_MERGE_REQUEST_ID
when: never
- if: '$CI_COMMIT_BRANCH =~ /^private/'
when: manual
allow_failure: true
- when: on_success
script: script:
- bundle exec rake zammad:db:init - bundle exec rake zammad:db:init
- bundle exec rspec -t type:integration - bundle exec rspec -t type:integration

View file

@ -41,14 +41,8 @@ class ChannelFacebook extends App.ControllerSubContent
channel = App.Channel.find(channel_id) channel = App.Channel.find(channel_id)
if channel && channel.options && channel.options.sync if channel && channel.options && channel.options.sync
displayName = '-' displayName = '-'
if channel.options.sync.wall && channel.options.sync.wall.group_id
group = App.Group.find(channel.options.sync.wall.group_id)
displayName = group.displayName()
if !channel.options.sync if !channel.options.sync
channel.options.sync = {} channel.options.sync = {}
if !channel.options.sync.wall
channel.options.sync.wall = {}
channel.options.sync.wall.groupName = displayName
if channel.options && channel.options.pages if channel.options && channel.options.pages
for page in channel.options.pages for page in channel.options.pages
displayName = '-' displayName = '-'
@ -199,8 +193,6 @@ class AccountEdit extends App.ControllerModal
content: -> content: ->
if !@channel.options.sync if !@channel.options.sync
@channel.options.sync = {} @channel.options.sync = {}
if !@channel.options.sync.wall
@channel.options.sync.wall = {}
if !@channel.options.sync.pages if !@channel.options.sync.pages
@channel.options.sync.pages = {} @channel.options.sync.pages = {}
content = $( App.view('facebook/account_edit')(channel: @channel) ) content = $( App.view('facebook/account_edit')(channel: @channel) )
@ -218,7 +210,6 @@ class AccountEdit extends App.ControllerModal
) )
el.html(selection) el.html(selection)
groupSelection(@channel.options.sync.wall.group_id, content.find('.js-wall .js-groups'), 'wall')
if @channel.options.pages if @channel.options.pages
for page in @channel.options.pages for page in @channel.options.pages
pageConfigured = false pageConfigured = false

View file

@ -1,15 +1,6 @@
<div class="alert alert--danger hidden" role="alert"></div> <div class="alert alert--danger hidden" role="alert"></div>
<fieldset> <fieldset>
<h1><%- @T('Wall') %></h1>
<p class="description"><%- @T('Choose the group in which wall postings will get added to.') %></p>
<div class="js-wall">
<h2><%= @channel.options.user.name %></h2>
<div data-page-id="<%= @channel.options.user.id %>" class="js-groups"></div>
</div>
<hr>
<h1><%- @T('Pages') %></h1> <h1><%- @T('Pages') %></h1>
<p class="description"><%- @T('Choose the group in which page postings will get added to.') %></p> <p class="description"><%- @T('Choose the group in which page postings will get added to.') %></p>
<div class="js-pages"> <div class="js-pages">

View file

@ -15,19 +15,12 @@
<div class="action-block action-row"> <div class="action-block action-row">
<h2><%- @Icon('status', 'supergood-color inline') %> <%= channel.options.user.name %> <span class="text-muted"><%= channel.options.user.id %></span></h2> <h2><%- @Icon('status', 'supergood-color inline') %> <%= channel.options.user.name %> <span class="text-muted"><%= channel.options.user.id %></span></h2>
</div> </div>
<div class="action-flow action-flow--row">
<div class="action-block">
<h3><%- @T('Wall') %></h3>
<%= channel.options.user.name %> -> <%= channel.options.sync.wall.groupName %>
</div>
</div>
<div class="action-flow action-flow--row"> <div class="action-flow action-flow--row">
<div class="action-block"> <div class="action-block">
<h3><%- @T('Pages') %></h3> <h3><%- @T('Pages') %></h3>
<% if channel.options.pages: %> <% if channel.options.pages: %>
<% for page in channel.options.pages: %> <% for page in channel.options.pages: %>
<%= page.name %> -> <%= page.groupName %><br> <%= page.name %> -> <%= page.groupName %><br>
(<%= page.perms %>)<br>
<% end %> <% end %>
<% end %> <% end %>
</div> </div>

View file

@ -31,7 +31,8 @@ class ExternalCredential::Facebook
{ {
request_token: state, request_token: state,
#authorize_url: oauth.url_for_oauth_code(permissions: 'publish_pages, manage_pages, user_posts', state: state), #authorize_url: oauth.url_for_oauth_code(permissions: 'publish_pages, manage_pages, user_posts', state: state),
authorize_url: oauth.url_for_oauth_code(permissions: 'publish_pages, manage_pages', state: state), #authorize_url: oauth.url_for_oauth_code(permissions: 'publish_pages, manage_pages', state: state),
authorize_url: oauth.url_for_oauth_code(permissions: 'pages_manage_posts, pages_manage_engagement, pages_manage_metadata, pages_read_engagement, pages_read_user_content', state: state),
} }
end end
@ -56,7 +57,6 @@ class ExternalCredential::Facebook
id: page['id'], id: page['id'],
name: page['name'], name: page['name'],
access_token: page['access_token'], access_token: page['access_token'],
perms: page['perms'],
) )
end end
@ -84,7 +84,6 @@ class ExternalCredential::Facebook
user: user, user: user,
pages: pages, pages: pages,
sync: { sync: {
wall: {},
pages: [], pages: [],
} }
}, },

View file

@ -87,6 +87,41 @@ FactoryBot.define do
end end
end end
factory :facebook_channel do
area { 'Facebook::Account' }
options do
{
adapter: 'facebook',
user: {
id: ENV['FACEBOOK_ADMIN_USER_ID'],
name: "#{ENV['FACEBOOK_ADMIN_FIRSTNAME']} #{ENV['FACEBOOK_ADMIN_LASTNAME']}",
},
auth: {
access_token: ENV['FACEBOOK_ADMIN_ACCESS_TOKEN'],
},
sync: {
pages: {
ENV['FACEBOOK_PAGE_1_ID'] => {
group_id: Group.first.id,
}
}
},
pages: [
{
id: ENV['FACEBOOK_PAGE_1_ID'],
name: ENV['FACEBOOK_PAGE_1_NAME'],
access_token: ENV['FACEBOOK_PAGE_1_ACCCESS_TOKEN'],
},
{
id: ENV['FACEBOOK_PAGE_2_ID'],
name: ENV['FACEBOOK_PAGE_2_NAME'],
access_token: ENV['FACEBOOK_PAGE_2_ACCCESS_TOKEN'],
}
],
}
end
end
factory :google_channel do factory :google_channel do
area { 'Google::Account' } area { 'Google::Account' }
options do options do

127
spec/lib/facebook_spec.rb Normal file
View file

@ -0,0 +1,127 @@
require 'rails_helper'
RSpec.describe Facebook, use_vcr: true, current_user_id: 1 do
before do
VCR.configure do |c|
%w[
FACEBOOK_ADMIN_USER_ID
FACEBOOK_ADMIN_FIRSTNAME
FACEBOOK_ADMIN_LASTNAME
FACEBOOK_ADMIN_ACCESS_TOKEN
FACEBOOK_PAGE_1_ACCCESS_TOKEN
FACEBOOK_PAGE_1_ID
FACEBOOK_PAGE_1_NAME
FACEBOOK_PAGE_1_POST_ID
FACEBOOK_PAGE_1_POST_MESSAGE
FACEBOOK_PAGE_1_POST_COMMENT_ID
FACEBOOK_PAGE_2_ACCCESS_TOKEN
FACEBOOK_PAGE_2_ID
FACEBOOK_PAGE_2_NAME
FACEBOOK_CUSTOMER_ID
FACEBOOK_CUSTOMER_FIRSTNAME
FACEBOOK_CUSTOMER_LASTNAME
].each do |env_key|
c.filter_sensitive_data("<#{env_key}>") { ENV[env_key] }
end
end
travel_to '2021-02-13 13:37 +0100'
end
let(:page_access_token) { ENV['FACEBOOK_PAGE_1_ACCCESS_TOKEN'] }
let(:page_client) { described_class.new page_access_token }
let(:admin_access_token) { ENV['FACEBOOK_ADMIN_ACCESS_TOKEN'] }
let(:admin_client) { described_class.new admin_access_token }
let(:post) do
page_client
.client
.get_connection('me', 'feed', fields: 'id,from,to,message,created_time,permalink_url,comments{id,from,to,message,created_time}')
.first
end
let(:page) { admin_client.pages.first }
describe '#connect' do
it 'works' do
expect(page_client.client.get_object('me')['name']).to eq ENV['FACEBOOK_PAGE_1_NAME']
end
end
describe '#pages' do
it 'works' do
expect(admin_client.pages.pluck(:name)).to eq [ENV['FACEBOOK_PAGE_1_NAME'], ENV['FACEBOOK_PAGE_2_NAME']]
end
end
describe '#current_user' do
it 'works for user' do
expect(admin_client.current_user['name']).to eq "#{ENV['FACEBOOK_ADMIN_FIRSTNAME']} #{ENV['FACEBOOK_ADMIN_LASTNAME']}"
end
it 'works for page' do
expect(page_client.current_user['name']).to eq ENV['FACEBOOK_PAGE_1_NAME']
end
end
describe '#to_user' do
let(:posts) { page_client.client.get_connection('me', 'feed', fields: 'id,from,to,message,created_time,permalink_url,comments{id,from,to,message,created_time}') }
let(:user) { page_client.to_user(posts.first) }
it 'works' do
expect(user).to have_attributes(
firstname: ENV['FACEBOOK_CUSTOMER_FIRSTNAME'],
lastname: ENV['FACEBOOK_CUSTOMER_LASTNAME']
)
end
end
describe '#to_ticket' do
it 'works' do
ticket = page_client.to_ticket(post, Group.first.id, Channel.first, page)
expect(ticket.title).to eq ENV['FACEBOOK_PAGE_1_POST_MESSAGE']
end
end
describe '#to_article' do
it 'works' do
ticket = page_client.to_ticket(post, Group.first.id, Channel.first, page)
articles = page_client.to_article(post, ticket, page)
expect(articles.first[:body]).to eq ENV['FACEBOOK_PAGE_1_POST_MESSAGE']
end
end
describe '#to_group' do
let(:ticket) { page_client.to_group(post, Group.first.id, Channel.first, page) }
it 'parses title correctly' do
expect(ticket.title).to eq ENV['FACEBOOK_PAGE_1_POST_MESSAGE']
end
it 'parses body correctly', current_user_id: 1 do
expect(ticket.articles.first.body).to eq ENV['FACEBOOK_PAGE_1_POST_MESSAGE']
end
end
describe '#from_article' do
let(:ticket) { page_client.to_group(post, Group.first.id, Channel.first, page) }
let(:article) { create(:ticket_article, ticket: ticket, type_name: 'facebook feed comment', in_reply_to: ticket.articles.last.message_id) }
let(:response) do
page_client.from_article(
type: article.type.name,
to: article.to,
body: article.body,
in_reply_to: article.in_reply_to,
)
end
it 'works' do
expect(response['id']).to be_present
end
end
end

View file

@ -0,0 +1,73 @@
require 'rails_helper'
RSpec.describe Channel::Driver::Facebook, use_vcr: true do
before do
VCR.configure do |c|
%w[
FACEBOOK_ADMIN_USER_ID
FACEBOOK_ADMIN_FIRSTNAME
FACEBOOK_ADMIN_LASTNAME
FACEBOOK_PAGE_1_ACCCESS_TOKEN
FACEBOOK_PAGE_1_ID
FACEBOOK_PAGE_1_NAME
FACEBOOK_PAGE_1_POST_ID
FACEBOOK_PAGE_1_POST_COMMENT_ID
FACEBOOK_PAGE_2_ACCCESS_TOKEN
FACEBOOK_PAGE_2_ID
FACEBOOK_PAGE_2_NAME
FACEBOOK_CUSTOMER_ID
FACEBOOK_CUSTOMER_FIRSTNAME
FACEBOOK_CUSTOMER_LASTNAME
].each do |env_key|
c.filter_sensitive_data("<#{env_key}>") { ENV[env_key] }
end
end
travel_to '2021-02-13 13:37 +0100'
end
let!(:channel) { create(:facebook_channel) }
it 'tests full run' do # rubocop:disable RSpec/MultipleExpectations, RSpec/ExampleLength
ExternalCredential.create name: :facebook, credentials: { application_id: ENV['FACEBOOK_APPLICATION_ID'], application_secret: ENV['FACEBOOK_APPLICATION_SECRET'] }
channel.fetch
ticket = Ticket.last
ticket_initial_count = ticket.articles.count
expect(ticket.preferences['channel_fb_object_id']).to be_present
message_id = "#{ENV['FACEBOOK_PAGE_1_POST_ID']}_#{ENV['FACEBOOK_PAGE_1_POST_COMMENT_ID']}"
post_article = ticket.articles.find_by(message_id: message_id)
article = Ticket::Article.find_by(message_id: post_article.message_id)
ticket = article.ticket
expect(ticket.state.name).to eq 'new'
expect(article).to be_present
customer = ticket.customer
expect("#{customer.firstname} #{customer.lastname}").to eq "#{ENV['FACEBOOK_CUSTOMER_FIRSTNAME']} #{ENV['FACEBOOK_CUSTOMER_LASTNAME']}"
outbound_article = Ticket::Article.create(
ticket_id: ticket.id,
body: "What's your issue Bernd?",
in_reply_to: post_article.message_id,
type: Ticket::Article::Type.find_by(name: 'facebook feed comment'),
sender: Ticket::Article::Sender.find_by(name: 'Agent'),
internal: false,
updated_by_id: 1,
created_by_id: 1,
)
Scheduler.worker(true)
expect(ticket.reload.state.name).to eq 'open'
outbound_article = Ticket::Article.find(outbound_article.id)
expect(outbound_article).to be_present
expect(outbound_article.from).to eq ENV['FACEBOOK_PAGE_1_NAME']
expect(outbound_article.ticket.articles.count).to be ticket_initial_count + 1
end
end

View file

@ -11,7 +11,8 @@ Capybara.register_driver(:zammad_chrome) do |app|
}, },
chromeOptions: { chromeOptions: {
prefs: { prefs: {
'intl.accept_languages' => 'en-US' 'intl.accept_languages' => 'en-US',
'profile.default_content_setting_values.notifications' => 1, # ALLOW notifications
}, },
}, },
) )
@ -35,6 +36,7 @@ Capybara.register_driver(:zammad_firefox) do |app|
profile['intl.locale.matchOS'] = false profile['intl.locale.matchOS'] = false
profile['intl.accept_languages'] = 'en-US' profile['intl.accept_languages'] = 'en-US'
profile['general.useragent.locale'] = 'en-US' profile['general.useragent.locale'] = 'en-US'
profile['permissions.default.desktop-notification'] = 1 # ALLOW notifications
capabilities = Selenium::WebDriver::Remote::Capabilities.firefox( capabilities = Selenium::WebDriver::Remote::Capabilities.firefox(
firefox_profile: profile, firefox_profile: profile,

View file

@ -0,0 +1,22 @@
require 'rails_helper'
RSpec.describe 'Manage > Channels > Facebook', type: :system do
context 'when configuring app' do
before { visit '/#channels/facebook' }
it 'works', :use_vcr do
within :active_content do
click '.btn--success'
in_modal do
fill_in 'application_id', with: ENV['FACEBOOK_APPLICATION_ID']
fill_in 'application_secret', with: ENV['FACEBOOK_APPLICATION_SECRET']
click '.btn--success'
end
expect(page).to have_text('Configure App')
end
end
end
end

View file

@ -0,0 +1,62 @@
---
http_interactions:
- request:
method: get
uri: https://graph.facebook.com/me?access_token=<FACEBOOK_PAGE_1_ACCCESS_TOKEN>
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Etag:
- '"861755e903d7086e2efa081e780e9cc1849961b5"'
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- AbrPF1CnWFLzq2vi1cWRjoW
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- C+ij7sZ1LZd
X-Fb-Rev:
- '1003297438'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Pragma:
- no-cache
X-Fb-Rlafr:
- '0'
X-Business-Use-Case-Usage:
- '{"<FACEBOOK_PAGE_1_ID>":[{"type":"pages","call_count":1,"total_cputime":1,"total_time":1,"estimated_time_to_regain_access":0}]}'
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- 6HD769VaoKSff31CMgMVq3WFIHxACe4pAnx3EH3gbidAlBZVMUbc/FJ2G+Uce8TEqQIRMmARFnTvyui7emYyAQ==
Date:
- Thu, 11 Feb 2021 15:14:30 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '37'
body:
encoding: UTF-8
string: '{"name":"<FACEBOOK_PAGE_1_NAME>","id":"<FACEBOOK_PAGE_1_ID>"}'
http_version:
recorded_at: Thu, 11 Feb 2021 15:14:30 GMT
recorded_with: VCR 4.0.0

View file

@ -0,0 +1,62 @@
---
http_interactions:
- request:
method: get
uri: https://graph.facebook.com/me?access_token=<FACEBOOK_PAGE_1_ACCCESS_TOKEN>
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Etag:
- '"861755e903d7086e2efa081e780e9cc1849961b5"'
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- AHfjhnQbTCfVGncXGrigOST
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- C//HAb5LuU1
X-Fb-Rev:
- '1003324181'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Pragma:
- no-cache
X-Fb-Rlafr:
- '0'
X-Business-Use-Case-Usage:
- '{"<FACEBOOK_PAGE_1_ID>":[{"type":"pages","call_count":1,"total_cputime":1,"total_time":1,"estimated_time_to_regain_access":0}]}'
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- JvU2i0JbwdE7UuFc5/mM1Z1QYrTM9HDhc1YzSquMxUiqlG0RpJzV2C+dysEPvhsszkOrXr3PqmztyLGAlWCYhA==
Date:
- Thu, 18 Feb 2021 10:51:21 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '37'
body:
encoding: UTF-8
string: '{"name":"<FACEBOOK_PAGE_1_NAME>","id":"<FACEBOOK_PAGE_1_ID>"}'
http_version:
recorded_at: Thu, 18 Feb 2021 10:51:21 GMT
recorded_with: VCR 4.0.0

View file

@ -0,0 +1,62 @@
---
http_interactions:
- request:
method: get
uri: https://graph.facebook.com/me?access_token=<FACEBOOK_ADMIN_ACCESS_TOKEN>
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Etag:
- '"c74d1549500251fdcbe3e87746dbb3f2c9c91e51"'
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- AHTVf5Vd5vfBscmBmmRJgiZ
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- FfBYxbvUhWi
X-Fb-Rev:
- '1003324181'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Pragma:
- no-cache
X-App-Usage:
- '{"call_count":2,"total_cputime":0,"total_time":0}'
X-Fb-Rlafr:
- '0'
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- Rn16Aztp9wCXYU8VEo7YMZVamHhWg8RaX+fNwAt3VipJ6iZcOawjFooQdgQLRSwa2FmmYZkGRlrkieMe1PNWAg==
Date:
- Thu, 18 Feb 2021 10:51:21 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '45'
body:
encoding: UTF-8
string: '{"name":"<FACEBOOK_ADMIN_FIRSTNAME> <FACEBOOK_ADMIN_LASTNAME>","id":"<FACEBOOK_ADMIN_USER_ID>"}'
http_version:
recorded_at: Thu, 18 Feb 2021 10:51:21 GMT
recorded_with: VCR 4.0.0

View file

@ -0,0 +1,837 @@
---
http_interactions:
- request:
method: get
uri: https://graph.facebook.com/me/feed?access_token=<FACEBOOK_PAGE_1_ACCCESS_TOKEN>&fields=id,from,to,message,created_time,permalink_url,comments%7Bid,from,to,message,created_time%7D
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Etag:
- '"e8ff6b278cdfc08eb20e427dae10f2530d069f8a"'
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- ASC0nDM3MiMNIXJI7rbnBgU
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- ADVu+eZndRk
X-Fb-Rev:
- '1003303417'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Vary:
- Accept-Encoding
Pragma:
- no-cache
X-Fb-Rlafr:
- '0'
X-Business-Use-Case-Usage:
- '{"<FACEBOOK_PAGE_1_ID>":[{"type":"pages","call_count":1,"total_cputime":1,"total_time":1,"estimated_time_to_regain_access":0}]}'
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- ZxkdgWHedfoDpf3VTowIIXnvW13eUsliR//m1aBkcdTHLsTQJdm+LBreSS8Uy7Jh8AzPMnDZ4yiHmu4HjMW8JA==
Date:
- Fri, 12 Feb 2021 12:28:49 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '575'
body:
encoding: ASCII-8BIT
string: '{"data":[{"id":"<FACEBOOK_PAGE_1_ID>_<FACEBOOK_PAGE_1_POST_ID>","from":{"name":"<FACEBOOK_CUSTOMER_FIRSTNAME>
<FACEBOOK_CUSTOMER_LASTNAME>","id":"<FACEBOOK_CUSTOMER_ID>"},"to":{"data":[{"id":"<FACEBOOK_PAGE_1_ID>","name":"<FACEBOOK_PAGE_1_NAME>"}]},"message":"<FACEBOOK_PAGE_1_POST_MESSAGE>","created_time":"2021-02-04T15:16:24+0000","permalink_url":"https:\/\/www.facebook.com\/<FACEBOOK_PAGE_1_ID>\/posts\/<FACEBOOK_PAGE_1_POST_ID>\/","comments":{"data":[{"id":"<FACEBOOK_PAGE_1_POST_ID>_105667314885521","from":{"name":"<FACEBOOK_PAGE_1_NAME>","id":"<FACEBOOK_PAGE_1_ID>"},"message":"qqqqq","created_time":"2021-02-04T15:22:43+0000"},{"id":"<FACEBOOK_PAGE_1_POST_ID>_<FACEBOOK_PAGE_1_POST_COMMENT_ID>","from":{"name":"<FACEBOOK_CUSTOMER_FIRSTNAME>
<FACEBOOK_CUSTOMER_LASTNAME>","id":"<FACEBOOK_CUSTOMER_ID>"},"message":"dddd","created_time":"2021-02-04T15:23:13+0000"}],"paging":{"cursors":{"before":"WTI5dGJXVnVkRjlqZAFhKemIzSTZANVEExTmpZAM016RTBPRGcxTlRJeE9qRTJNVEkwTlRJeE5qTT0ZD","after":"WTI5dGJXVnVkRjlqZAFhKemIzSTZANVEExTmpZAM05UYzBPRGcxTkRrMU9qRTJNVEkwTlRJeE9UTT0ZD"}}}}],"paging":{"cursors":{"before":"QVFIUnZAPR1lId3h3MGQ3UE5IZAzFkTkNuY2hWdVpyb3hESzFfVnNCMGk3UTRxNkJ5Y0ZAFVVVualJKdE1HYktIemlTd2RvSUFzQnJaMWtrbFc2VHhyYjRZAakVaTWNzZATlvWHppaEROY3FXd3dWUS01NjdlVS1iSFdTeVo3ZA19NY3ByMWdw","after":"QVFIUnZAPR1lId3h3MGQ3UE5IZAzFkTkNuY2hWdVpyb3hESzFfVnNCMGk3UTRxNkJ5Y0ZAFVVVualJKdE1HYktIemlTd2RvSUFzQnJaMWtrbFc2VHhyYjRZAakVaTWNzZATlvWHppaEROY3FXd3dWUS01NjdlVS1iSFdTeVo3ZA19NY3ByMWdw"}}}'
http_version:
recorded_at: Fri, 12 Feb 2021 12:28:49 GMT
- request:
method: get
uri: https://graph.facebook.com/me/accounts?access_token=<FACEBOOK_ADMIN_ACCESS_TOKEN>
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Etag:
- '"3498ecea709a7cf2bacc6a7ea61ee283ab434235"'
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- A8yOVto3D4CybMc_edjIhLZ
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- D+U0x8CMDPr
X-Fb-Rev:
- '1003303417'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Vary:
- Accept-Encoding
Pragma:
- no-cache
X-App-Usage:
- '{"call_count":0,"total_cputime":0,"total_time":0}'
X-Fb-Rlafr:
- '0'
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- YV7qaueWlhQ5aKxo9ARB16uu9+91tmd9Q0wiG9E089G+hp2KeN282z1enL5ZrbZwpWhwdvKLM4QykZ1iudTLGw==
Date:
- Fri, 12 Feb 2021 12:28:49 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '629'
body:
encoding: ASCII-8BIT
string: '{"data":[{"access_token":"<FACEBOOK_PAGE_1_ACCCESS_TOKEN>","category":"Bed
and Breakfast","category_list":[{"id":"110321355709642","name":"Bed and Breakfast"}],"name":"<FACEBOOK_PAGE_1_NAME>","id":"<FACEBOOK_PAGE_1_ID>","tasks":["ANALYZE","ADVERTISE","MESSAGING","MODERATE","CREATE_CONTENT","MANAGE"]},{"access_token":"<FACEBOOK_PAGE_2_ACCCESS_TOKEN>","category":"Just
For Fun","category_list":[{"id":"129417183848258","name":"Just For Fun"}],"name":"<FACEBOOK_PAGE_2_NAME>","id":"<FACEBOOK_PAGE_2_ID>","tasks":["ANALYZE","ADVERTISE","MESSAGING","MODERATE","CREATE_CONTENT","MANAGE"]}],"paging":{"cursors":{"before":"MTAwMTY3MDIyMTAyMjE3","after":"MTY4NDc1MjQ4MjY4Mjg5"}}}'
http_version:
recorded_at: Fri, 12 Feb 2021 12:28:49 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_CUSTOMER_ID>?access_token=<FACEBOOK_PAGE_1_ACCCESS_TOKEN>&fields=first_name,last_name,email
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Etag:
- '"6cef0e3dceb732d6f12089b9b438ddf189856488"'
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- ASPx6op6ACTn1Yh-xdAbrRf
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- C22gbjLon6Z
X-Fb-Rev:
- '1003303417'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Pragma:
- no-cache
X-Fb-Rlafr:
- '0'
X-Business-Use-Case-Usage:
- '{"<FACEBOOK_PAGE_1_ID>":[{"type":"messenger","call_count":1,"total_cputime":1,"total_time":1,"estimated_time_to_regain_access":0}]}'
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- gQcejs12m3PtRqhvRlW1DVmRfw/KqnPptgpQI7Mx5Dshq1KCsT1JhKaQT9/NPtyf02X8DfEYxa2n9ZYZpuy8ig==
Date:
- Fri, 12 Feb 2021 12:28:49 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '72'
body:
encoding: UTF-8
string: '{"first_name":"<FACEBOOK_CUSTOMER_FIRSTNAME>","last_name":"<FACEBOOK_CUSTOMER_LASTNAME>","id":"<FACEBOOK_CUSTOMER_ID>"}'
http_version:
recorded_at: Fri, 12 Feb 2021 12:28:49 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_CUSTOMER_ID>/picture?type=large
body:
encoding: US-ASCII
string: ''
headers:
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- Zammad User Agent
Host:
- graph.facebook.com
response:
status:
code: 400
message: Bad Request
headers:
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v3.2
X-Fb-Request-Id:
- AzlA2-KBwJv5dxdJUCpjKUF
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- C54KoDV7UQZ
X-Fb-Rev:
- '1003303417'
Cache-Control:
- no-store
Pragma:
- no-cache
Access-Control-Allow-Origin:
- "*"
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Www-Authenticate:
- OAuth "Facebook Platform" "invalid_request" "(#3) Application does not have
the capability to make this API call."
X-Fb-Debug:
- 5z2kMo7+xtIxYhpWlcMakY8Z55ShU3EoDJRE7MWcxEnR4Iyfujz6C8jahyEY2E1kkqR2ibEMZxJkzBL62vkkmA==
Date:
- Fri, 12 Feb 2021 12:28:49 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '164'
body:
encoding: UTF-8
string: '{"error":{"message":"(#3) Application does not have the capability
to make this API call.","type":"OAuthException","code":3,"fbtrace_id":"AzlA2-KBwJv5dxdJUCpjKUF"}}'
http_version:
recorded_at: Fri, 12 Feb 2021 12:28:49 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_CUSTOMER_ID>/picture?type=large
body:
encoding: US-ASCII
string: ''
headers:
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- Zammad User Agent
Host:
- graph.facebook.com
response:
status:
code: 400
message: Bad Request
headers:
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v3.2
X-Fb-Request-Id:
- AUDvog-iR8ipJgmm3x-mo_d
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- HX07NNhDhgp
X-Fb-Rev:
- '1003303417'
Cache-Control:
- no-store
Pragma:
- no-cache
Access-Control-Allow-Origin:
- "*"
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Www-Authenticate:
- OAuth "Facebook Platform" "invalid_request" "(#3) Application does not have
the capability to make this API call."
X-Fb-Debug:
- QqIVxQz5MUawdhSP01NIyBfRIrrVMVYmQcT89SdF+Dr++icbX/fJ0mm9FXVt3btuAAJbF+MLJT+ZJfnnrOHYAw==
Date:
- Fri, 12 Feb 2021 12:28:49 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '164'
body:
encoding: UTF-8
string: '{"error":{"message":"(#3) Application does not have the capability
to make this API call.","type":"OAuthException","code":3,"fbtrace_id":"AUDvog-iR8ipJgmm3x-mo_d"}}'
http_version:
recorded_at: Fri, 12 Feb 2021 12:28:49 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_PAGE_1_ID>?access_token=<FACEBOOK_PAGE_1_ACCCESS_TOKEN>&fields=first_name,last_name,email
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 400
message: Bad Request
headers:
X-App-Usage:
- '{"call_count":0,"total_cputime":0,"total_time":0}'
X-Fb-Rlafr:
- '0'
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- AO4qgcZ1_8Yb2N1-2aKTpn0
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- ElmYOa++JGC
X-Fb-Rev:
- '1003303417'
Cache-Control:
- no-store
Pragma:
- no-cache
Access-Control-Allow-Origin:
- "*"
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Www-Authenticate:
- OAuth "Facebook Platform" "invalid_request" "(#100) Tried accessing nonexisting
field (first_name) on node type (Page)"
X-Fb-Debug:
- 61++Zga8PweCc9Ycm0vBB06QcMRBVbmBa2SVCLgRFdNBH4dpbEXSLEilD7XzFygRYrsHLOqBw9Vdvs5pymHAkw==
Date:
- Fri, 12 Feb 2021 12:28:49 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '171'
body:
encoding: UTF-8
string: '{"error":{"message":"(#100) Tried accessing nonexisting field (first_name)
on node type (Page)","type":"OAuthException","code":100,"fbtrace_id":"AO4qgcZ1_8Yb2N1-2aKTpn0"}}'
http_version:
recorded_at: Fri, 12 Feb 2021 12:28:49 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_PAGE_1_ID>?access_token=<FACEBOOK_PAGE_1_ACCCESS_TOKEN>&fields=name
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Etag:
- '"861755e903d7086e2efa081e780e9cc1849961b5"'
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- AqoJXWFJS82Mkieqx-Quouo
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- B0NVDsfOfvf
X-Fb-Rev:
- '1003303417'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Pragma:
- no-cache
X-Fb-Rlafr:
- '0'
X-Business-Use-Case-Usage:
- '{"<FACEBOOK_PAGE_1_ID>":[{"type":"pages","call_count":1,"total_cputime":1,"total_time":1,"estimated_time_to_regain_access":0}]}'
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- 9cm6uWxH2VfVT1H6b/T1PNXalQ8CKwVA1I+nhl7OiElm2bu+XmSm3mvtxNJtHzuBltX4tSv8s9RkLZF0z88NsQ==
Date:
- Fri, 12 Feb 2021 12:28:50 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '37'
body:
encoding: UTF-8
string: '{"name":"<FACEBOOK_PAGE_1_NAME>","id":"<FACEBOOK_PAGE_1_ID>"}'
http_version:
recorded_at: Fri, 12 Feb 2021 12:28:50 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_PAGE_1_ID>/picture?type=large
body:
encoding: US-ASCII
string: ''
headers:
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- Zammad User Agent
Host:
- graph.facebook.com
response:
status:
code: 302
message: Found
headers:
Location:
- https://static.xx.fbcdn.net/rsrc.php/v3/yA/r/gPCjrIGykBe.gif
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
X-Fb-Request-Id:
- AY0ACN6M5JHna39VwskpDDS
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- CNotwbJlyGH
Facebook-Api-Version:
- v3.2
Content-Type:
- image/jpeg
X-Fb-Rev:
- '1003303417'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Pragma:
- no-cache
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- HXSk9FKMfaWchSQrwixznvyF+q495roZHv1ZoJjzJtGP3ufj1pfKadEpJwyA+2Afkjeu3ji+Ad3wB9vb1IRKXA==
Date:
- Fri, 12 Feb 2021 12:28:50 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Fri, 12 Feb 2021 12:28:50 GMT
- request:
method: get
uri: https://static.xx.fbcdn.net/rsrc.php/v3/yA/r/gPCjrIGykBe.gif
body:
encoding: US-ASCII
string: ''
headers:
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- Zammad User Agent
Host:
- static.xx.fbcdn.net
response:
status:
code: 200
message: OK
headers:
Access-Control-Allow-Origin:
- "*"
Last-Modified:
- Mon, 01 Jan 2001 08:00:00 GMT
Content-Md5:
- OMs/UjwLoIRaoKN19eGYeQ==
Expires:
- Fri, 04 Feb 2022 17:15:42 GMT
Cache-Control:
- public,max-age=31536000,immutable
X-Fb-Rlafr:
- '0'
Cross-Origin-Resource-Policy:
- cross-origin
Timing-Allow-Origin:
- "*"
Content-Type:
- image/gif
X-Content-Type-Options:
- nosniff
X-Fb-Debug:
- IOQuHP9idsHP0cousRLVBersd7PFaf330lMwIhzGpqZTVedQtPh7LVH+/g7/Z08vkEm1G/Jm1B7N3rvSReholA==
X-Fb-Trip-Id:
- '1814657579'
Date:
- Fri, 12 Feb 2021 12:28:50 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '2380'
body:
encoding: ASCII-8BIT
string: !binary |-
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
http_version:
recorded_at: Fri, 12 Feb 2021 12:28:50 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_PAGE_1_POST_ID>_105667314885521/comments?access_token=<FACEBOOK_PAGE_1_ACCCESS_TOKEN>&fields=id,from,to,message,created_time
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Etag:
- '"1050253aec7b29caff644806927dabfa81406eee"'
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- AVLK-jc3BVl-EZ_BrkiSgFB
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- FV4Twn7Gu1U
X-Fb-Rev:
- '1003303417'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Pragma:
- no-cache
X-Fb-Rlafr:
- '0'
X-Business-Use-Case-Usage:
- '{"<FACEBOOK_PAGE_1_ID>":[{"type":"pages","call_count":1,"total_cputime":1,"total_time":1,"estimated_time_to_regain_access":0}]}'
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- 1doW7fgMwhGxnhJPj+swRQlrQJLjwMUNmF+5GTEgfugY+HZfTulC+6E6lQ+2EMpkHJZNQVmOeX51p4fqa+BoNA==
Date:
- Fri, 12 Feb 2021 12:28:50 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '11'
body:
encoding: UTF-8
string: '{"data":[]}'
http_version:
recorded_at: Fri, 12 Feb 2021 12:28:50 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_CUSTOMER_ID>/picture?type=large
body:
encoding: US-ASCII
string: ''
headers:
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- Zammad User Agent
Host:
- graph.facebook.com
response:
status:
code: 400
message: Bad Request
headers:
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v3.2
X-Fb-Request-Id:
- AaxCkexKLTmhspLqjL3l2hU
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- GtrSfJarbSm
X-Fb-Rev:
- '1003303417'
Cache-Control:
- no-store
Pragma:
- no-cache
Access-Control-Allow-Origin:
- "*"
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Www-Authenticate:
- OAuth "Facebook Platform" "invalid_request" "(#3) Application does not have
the capability to make this API call."
X-Fb-Debug:
- InINPHiHnjHBcYKfv8n3L0m3QlA+kLJHWAydsQvIpE/ibOl1oo0U5wtjK10gT4PJ4yIQo0o+7/7ZviADzgGk9g==
Date:
- Fri, 12 Feb 2021 12:28:50 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '164'
body:
encoding: UTF-8
string: '{"error":{"message":"(#3) Application does not have the capability
to make this API call.","type":"OAuthException","code":3,"fbtrace_id":"AaxCkexKLTmhspLqjL3l2hU"}}'
http_version:
recorded_at: Fri, 12 Feb 2021 12:28:50 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_PAGE_1_POST_ID>_<FACEBOOK_PAGE_1_POST_COMMENT_ID>/comments?access_token=<FACEBOOK_PAGE_1_ACCCESS_TOKEN>&fields=id,from,to,message,created_time
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Etag:
- '"1050253aec7b29caff644806927dabfa81406eee"'
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- AwIX8OAbUcZVG3fWoSJN6An
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- HNUQ1XhYUSc
X-Fb-Rev:
- '1003303417'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Pragma:
- no-cache
X-Fb-Rlafr:
- '0'
X-Business-Use-Case-Usage:
- '{"<FACEBOOK_PAGE_1_ID>":[{"type":"pages","call_count":1,"total_cputime":1,"total_time":1,"estimated_time_to_regain_access":0}]}'
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- mesa8FwhfJptiKOGGpcwMyhZPNjgpQ3R9Xgdu3TVamRbEgTQKik8SkL84NCwRb0M9Os7zW38l2wL2uu6/QJOEw==
Date:
- Fri, 12 Feb 2021 12:28:50 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '11'
body:
encoding: UTF-8
string: '{"data":[]}'
http_version:
recorded_at: Fri, 12 Feb 2021 12:28:50 GMT
- request:
method: post
uri: https://graph.facebook.com/<FACEBOOK_PAGE_1_POST_ID>_<FACEBOOK_PAGE_1_POST_COMMENT_ID>/comments
body:
encoding: UTF-8
string: access_token=<FACEBOOK_PAGE_1_ACCCESS_TOKEN>&message=some+message+123
headers:
User-Agent:
- Faraday v0.17.3
Content-Type:
- application/x-www-form-urlencoded
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- AjcuY8sPmfwgvQKiwgUiAqO
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- F5XcB+eMRNX
X-Fb-Rev:
- '1003303417'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Pragma:
- no-cache
X-Fb-Rlafr:
- '0'
X-Business-Use-Case-Usage:
- '{"<FACEBOOK_PAGE_1_ID>":[{"type":"pages","call_count":1,"total_cputime":1,"total_time":1,"estimated_time_to_regain_access":0}]}'
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- e54jMLyeqCOf8894EHLnBahvUsvFm+2k6SGCAEinvHnUmNbjhSU4aVXjk6ysaK1262eYVgOTuPe5c6Ytm6QLRw==
Date:
- Fri, 12 Feb 2021 12:28:55 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '40'
body:
encoding: UTF-8
string: '{"id":"<FACEBOOK_PAGE_1_POST_ID>_107125118073074"}'
http_version:
recorded_at: Fri, 12 Feb 2021 12:28:55 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_PAGE_1_POST_ID>_107125118073074?access_token=<FACEBOOK_PAGE_1_ACCCESS_TOKEN>
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Etag:
- '"665969f060c85e6190c1730c37040fd85de8b1a5"'
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- AVT4K2ka3or6thEluwhIkMY
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- D6HLHTGF3kG
X-Fb-Rev:
- '1003303417'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Pragma:
- no-cache
X-Fb-Rlafr:
- '0'
X-Business-Use-Case-Usage:
- '{"<FACEBOOK_PAGE_1_ID>":[{"type":"pages","call_count":1,"total_cputime":1,"total_time":1,"estimated_time_to_regain_access":0}]}'
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- YQ2pNp36ufl5iPmYtrxKOumyuznJhKIHmO23eIDR00vBnAtOAdg7fUYzPJa5UOay+o0PTbcRAkfWNh+GY+ScLQ==
Date:
- Fri, 12 Feb 2021 12:28:55 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '156'
body:
encoding: UTF-8
string: '{"created_time":"2021-02-12T12:28:51+0000","from":{"name":"<FACEBOOK_PAGE_1_NAME>","id":"<FACEBOOK_PAGE_1_ID>"},"message":"some
message 123","id":"<FACEBOOK_PAGE_1_POST_ID>_107125118073074"}'
http_version:
recorded_at: Fri, 12 Feb 2021 12:28:55 GMT
recorded_with: VCR 4.0.0

View file

@ -0,0 +1,66 @@
---
http_interactions:
- request:
method: get
uri: https://graph.facebook.com/me/accounts?access_token=<FACEBOOK_ADMIN_ACCESS_TOKEN>
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Etag:
- '"9435151aaf63bd370abcac659993f9f7e2f469f1"'
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- Amy0PRdO9EWwJQR4byiW5iA
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- CEXDG38issb
X-Fb-Rev:
- '1003301623'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Vary:
- Accept-Encoding
Pragma:
- no-cache
X-App-Usage:
- '{"call_count":0,"total_cputime":0,"total_time":0}'
X-Fb-Rlafr:
- '0'
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- YCL24zTtURiGEayTwDbA7+F8jX4dsX4R+fykT8iGveYsmL87FeE6e2gbsObdmR7F5CU9YjY90gro6yofmoB1aA==
Date:
- Fri, 12 Feb 2021 06:13:39 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '626'
body:
encoding: ASCII-8BIT
string: '{"data":[{"access_token":"<FACEBOOK_PAGE_1_ACCCESS_TOKEN>","category":"Bed
and Breakfast","category_list":[{"id":"110321355709642","name":"Bed and Breakfast"}],"name":"<FACEBOOK_PAGE_1_NAME>","id":"<FACEBOOK_PAGE_1_ID>","tasks":["ANALYZE","ADVERTISE","MESSAGING","MODERATE","CREATE_CONTENT","MANAGE"]},{"access_token":"<FACEBOOK_PAGE_2_ACCCESS_TOKEN>","category":"Just
For Fun","category_list":[{"id":"129417183848258","name":"Just For Fun"}],"name":"<FACEBOOK_PAGE_2_NAME>","id":"<FACEBOOK_PAGE_2_ID>","tasks":["ANALYZE","ADVERTISE","MESSAGING","MODERATE","CREATE_CONTENT","MANAGE"]}],"paging":{"cursors":{"before":"MTAwMTY3MDIyMTAyMjE3","after":"MTY4NDc1MjQ4MjY4Mjg5"}}}'
http_version:
recorded_at: Fri, 12 Feb 2021 06:13:39 GMT
recorded_with: VCR 4.0.0

View file

@ -0,0 +1,716 @@
---
http_interactions:
- request:
method: get
uri: https://graph.facebook.com/me/feed?access_token=<FACEBOOK_PAGE_1_ACCCESS_TOKEN>&fields=id,from,to,message,created_time,permalink_url,comments%7Bid,from,to,message,created_time%7D
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Etag:
- '"e8ff6b278cdfc08eb20e427dae10f2530d069f8a"'
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- Ab31LRngM9iLhcruJplF7NI
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- DJ0LOlVczup
X-Fb-Rev:
- '1003303417'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Vary:
- Accept-Encoding
Pragma:
- no-cache
X-Fb-Rlafr:
- '0'
X-Business-Use-Case-Usage:
- '{"<FACEBOOK_PAGE_1_ID>":[{"type":"pages","call_count":1,"total_cputime":1,"total_time":1,"estimated_time_to_regain_access":0}]}'
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- MoZcitzejhgfKjPdXpSpN1dt0lQXDHdZvAIFPk3iqjwdfe8Lnlwp0vzFdsil7bxAw4kq6J3yHDXbT/QOJ6nJSA==
Date:
- Fri, 12 Feb 2021 11:27:05 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '575'
body:
encoding: ASCII-8BIT
string: '{"data":[{"id":"<FACEBOOK_PAGE_1_ID>_<FACEBOOK_PAGE_1_POST_ID>","from":{"name":"<FACEBOOK_CUSTOMER_FIRSTNAME>
<FACEBOOK_CUSTOMER_LASTNAME>","id":"<FACEBOOK_CUSTOMER_ID>"},"to":{"data":[{"id":"<FACEBOOK_PAGE_1_ID>","name":"<FACEBOOK_PAGE_1_NAME>"}]},"message":"<FACEBOOK_PAGE_1_POST_MESSAGE>","created_time":"2021-02-04T15:16:24+0000","permalink_url":"https:\/\/www.facebook.com\/<FACEBOOK_PAGE_1_ID>\/posts\/<FACEBOOK_PAGE_1_POST_ID>\/","comments":{"data":[{"id":"<FACEBOOK_PAGE_1_POST_ID>_105667314885521","from":{"name":"<FACEBOOK_PAGE_1_NAME>","id":"<FACEBOOK_PAGE_1_ID>"},"message":"qqqqq","created_time":"2021-02-04T15:22:43+0000"},{"id":"<FACEBOOK_PAGE_1_POST_ID>_<FACEBOOK_PAGE_1_POST_COMMENT_ID>","from":{"name":"<FACEBOOK_CUSTOMER_FIRSTNAME>
<FACEBOOK_CUSTOMER_LASTNAME>","id":"<FACEBOOK_CUSTOMER_ID>"},"message":"dddd","created_time":"2021-02-04T15:23:13+0000"}],"paging":{"cursors":{"before":"WTI5dGJXVnVkRjlqZAFhKemIzSTZANVEExTmpZAM016RTBPRGcxTlRJeE9qRTJNVEkwTlRJeE5qTT0ZD","after":"WTI5dGJXVnVkRjlqZAFhKemIzSTZANVEExTmpZAM05UYzBPRGcxTkRrMU9qRTJNVEkwTlRJeE9UTT0ZD"}}}}],"paging":{"cursors":{"before":"QVFIUnZAPR1lId3h3MGQ3UE5IZAzFkTkNuY2hWdVpyb3hESzFfVnNCMGk3UTRxNkJ5Y0ZAFVVVualJKdE1HYktIemlTd2RvSUFzQnJaMWtrbFc2VHhyYjRZAakVaTWNzZATlvWHppaEROY3FXd3dWUS01NjdlVS1iSFdTeVo3ZA19NY3ByMWdw","after":"QVFIUnZAPR1lId3h3MGQ3UE5IZAzFkTkNuY2hWdVpyb3hESzFfVnNCMGk3UTRxNkJ5Y0ZAFVVVualJKdE1HYktIemlTd2RvSUFzQnJaMWtrbFc2VHhyYjRZAakVaTWNzZATlvWHppaEROY3FXd3dWUS01NjdlVS1iSFdTeVo3ZA19NY3ByMWdw"}}}'
http_version:
recorded_at: Fri, 12 Feb 2021 11:27:05 GMT
- request:
method: get
uri: https://graph.facebook.com/me/accounts?access_token=<FACEBOOK_ADMIN_ACCESS_TOKEN>
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Etag:
- '"d338df9990bb453626e1dc3cc88d0ce4c4162039"'
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- AxCl7mMwENhaMqXKE3d8tHg
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- DzFA4LSkorD
X-Fb-Rev:
- '1003303417'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Vary:
- Accept-Encoding
Pragma:
- no-cache
X-App-Usage:
- '{"call_count":0,"total_cputime":0,"total_time":0}'
X-Fb-Rlafr:
- '0'
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- k0IWCmEdL0JEBeqFeJSFTyCmSoJx+EmsPy4R9NoYPAXwBKjaiXTAzr/IpViBp2ZkqCa3vEIjy5vGnOrXrrkkvw==
Date:
- Fri, 12 Feb 2021 11:27:06 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '626'
body:
encoding: ASCII-8BIT
string: '{"data":[{"access_token":"<FACEBOOK_PAGE_1_ACCCESS_TOKEN>","category":"Bed
and Breakfast","category_list":[{"id":"110321355709642","name":"Bed and Breakfast"}],"name":"<FACEBOOK_PAGE_1_NAME>","id":"<FACEBOOK_PAGE_1_ID>","tasks":["ANALYZE","ADVERTISE","MESSAGING","MODERATE","CREATE_CONTENT","MANAGE"]},{"access_token":"<FACEBOOK_PAGE_2_ACCCESS_TOKEN>","category":"Just
For Fun","category_list":[{"id":"129417183848258","name":"Just For Fun"}],"name":"<FACEBOOK_PAGE_2_NAME>","id":"<FACEBOOK_PAGE_2_ID>","tasks":["ANALYZE","ADVERTISE","MESSAGING","MODERATE","CREATE_CONTENT","MANAGE"]}],"paging":{"cursors":{"before":"MTAwMTY3MDIyMTAyMjE3","after":"MTY4NDc1MjQ4MjY4Mjg5"}}}'
http_version:
recorded_at: Fri, 12 Feb 2021 11:27:06 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_CUSTOMER_ID>?access_token=<FACEBOOK_PAGE_1_ACCCESS_TOKEN>&fields=first_name,last_name,email
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Etag:
- '"6cef0e3dceb732d6f12089b9b438ddf189856488"'
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- Aj1l-MzqiZO4Kqmem2JZm0k
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- AKyR1nMVAmX
X-Fb-Rev:
- '1003303417'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Pragma:
- no-cache
X-Fb-Rlafr:
- '0'
X-Business-Use-Case-Usage:
- '{"<FACEBOOK_PAGE_1_ID>":[{"type":"messenger","call_count":1,"total_cputime":1,"total_time":1,"estimated_time_to_regain_access":0}]}'
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- peIlb9My/P3hoiHYr7SI8ajLUWXVp7zvy0vKzx0rFTTzLjdh3r5huew1fCVhe2nYd3kSDhlVCaA3JR7VD797sg==
Date:
- Fri, 12 Feb 2021 11:27:06 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '72'
body:
encoding: UTF-8
string: '{"first_name":"<FACEBOOK_CUSTOMER_FIRSTNAME>","last_name":"<FACEBOOK_CUSTOMER_LASTNAME>","id":"<FACEBOOK_CUSTOMER_ID>"}'
http_version:
recorded_at: Fri, 12 Feb 2021 11:27:06 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_CUSTOMER_ID>/picture?type=large
body:
encoding: US-ASCII
string: ''
headers:
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- Zammad User Agent
Host:
- graph.facebook.com
response:
status:
code: 400
message: Bad Request
headers:
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v3.2
X-Fb-Request-Id:
- ANrPjCffqnsy00ta9414o8K
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- H12KymOBKc4
X-Fb-Rev:
- '1003303417'
Cache-Control:
- no-store
Pragma:
- no-cache
Access-Control-Allow-Origin:
- "*"
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Www-Authenticate:
- OAuth "Facebook Platform" "invalid_request" "(#3) Application does not have
the capability to make this API call."
X-Fb-Debug:
- 60Gp1L2NBhJjbZB5sqZOdt4TQlI3Kyo1bzQhiQs2H2MH/fE/sOhNVOa8PTVDPUNC4unXgSV0AB/6/bbMu4XRtA==
Date:
- Fri, 12 Feb 2021 11:27:06 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '164'
body:
encoding: UTF-8
string: '{"error":{"message":"(#3) Application does not have the capability
to make this API call.","type":"OAuthException","code":3,"fbtrace_id":"ANrPjCffqnsy00ta9414o8K"}}'
http_version:
recorded_at: Fri, 12 Feb 2021 11:27:06 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_CUSTOMER_ID>/picture?type=large
body:
encoding: US-ASCII
string: ''
headers:
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- Zammad User Agent
Host:
- graph.facebook.com
response:
status:
code: 400
message: Bad Request
headers:
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v3.2
X-Fb-Request-Id:
- AKkuiAJb1MgTA1T--lVjbH8
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- CL+/ap7zRqK
X-Fb-Rev:
- '1003303417'
Cache-Control:
- no-store
Pragma:
- no-cache
Access-Control-Allow-Origin:
- "*"
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Www-Authenticate:
- OAuth "Facebook Platform" "invalid_request" "(#3) Application does not have
the capability to make this API call."
X-Fb-Debug:
- HdU7FT2TyXCNBXtK/OzbKKvHIq0RywtMpCTJ7JlzJ2amjBhWniJJARByQpjI+zVCxktBISK3Xj8nzwEnJp3u6g==
Date:
- Fri, 12 Feb 2021 11:27:07 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '164'
body:
encoding: UTF-8
string: '{"error":{"message":"(#3) Application does not have the capability
to make this API call.","type":"OAuthException","code":3,"fbtrace_id":"AKkuiAJb1MgTA1T--lVjbH8"}}'
http_version:
recorded_at: Fri, 12 Feb 2021 11:27:07 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_PAGE_1_ID>?access_token=<FACEBOOK_PAGE_1_ACCCESS_TOKEN>&fields=first_name,last_name,email
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 400
message: Bad Request
headers:
X-App-Usage:
- '{"call_count":0,"total_cputime":0,"total_time":0}'
X-Fb-Rlafr:
- '0'
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- AoDJP9Ar9q-HBFipEYj-ePi
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- AN8uchMdVBR
X-Fb-Rev:
- '1003303417'
Cache-Control:
- no-store
Pragma:
- no-cache
Access-Control-Allow-Origin:
- "*"
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Www-Authenticate:
- OAuth "Facebook Platform" "invalid_request" "(#100) Tried accessing nonexisting
field (first_name) on node type (Page)"
X-Fb-Debug:
- i2tA0Cym0Vyq5409ZIKd8G5d2swjx3Z/lGtNAE9bQPV8bMC8rrMh6ra5FpCzoJRBLgmv0Pg0Gk0IYxaqn+yDtg==
Date:
- Fri, 12 Feb 2021 11:27:07 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '171'
body:
encoding: UTF-8
string: '{"error":{"message":"(#100) Tried accessing nonexisting field (first_name)
on node type (Page)","type":"OAuthException","code":100,"fbtrace_id":"AoDJP9Ar9q-HBFipEYj-ePi"}}'
http_version:
recorded_at: Fri, 12 Feb 2021 11:27:07 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_PAGE_1_ID>?access_token=<FACEBOOK_PAGE_1_ACCCESS_TOKEN>&fields=name
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Etag:
- '"861755e903d7086e2efa081e780e9cc1849961b5"'
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- ApR1agxNcq9puCLM6pviwUZ
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- BYFqbzaknJ2
X-Fb-Rev:
- '1003303417'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Pragma:
- no-cache
X-Fb-Rlafr:
- '0'
X-Business-Use-Case-Usage:
- '{"<FACEBOOK_PAGE_1_ID>":[{"type":"pages","call_count":1,"total_cputime":1,"total_time":1,"estimated_time_to_regain_access":0}]}'
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- "/3IWKkM1iRbOQLekcLE8nBBHrQTvcHQnWK8kTij+c/6f/cfVbQAEmbmrSakuYsyX++U5r3zYUxygZd565o2dBA=="
Date:
- Fri, 12 Feb 2021 11:27:07 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '37'
body:
encoding: UTF-8
string: '{"name":"<FACEBOOK_PAGE_1_NAME>","id":"<FACEBOOK_PAGE_1_ID>"}'
http_version:
recorded_at: Fri, 12 Feb 2021 11:27:07 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_PAGE_1_ID>/picture?type=large
body:
encoding: US-ASCII
string: ''
headers:
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- Zammad User Agent
Host:
- graph.facebook.com
response:
status:
code: 302
message: Found
headers:
Location:
- https://static.xx.fbcdn.net/rsrc.php/v3/yA/r/gPCjrIGykBe.gif
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
X-Fb-Request-Id:
- A-ckJ9SLdCBa3sUv-toXTG-
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- At96VqxLFAY
Facebook-Api-Version:
- v3.2
Content-Type:
- image/jpeg
X-Fb-Rev:
- '1003303417'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Pragma:
- no-cache
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- 0TN9gJ7jdwoxu7TyapeiMroVfuGJVL+bAFYG5UxKG4uP7RMZNXWgmax3UIkymORInk/bHFHD8cGusC1WJ1lgMA==
Date:
- Fri, 12 Feb 2021 11:27:07 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Fri, 12 Feb 2021 11:27:07 GMT
- request:
method: get
uri: https://static.xx.fbcdn.net/rsrc.php/v3/yA/r/gPCjrIGykBe.gif
body:
encoding: US-ASCII
string: ''
headers:
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- Zammad User Agent
Host:
- static.xx.fbcdn.net
response:
status:
code: 200
message: OK
headers:
Access-Control-Allow-Origin:
- "*"
Last-Modified:
- Mon, 01 Jan 2001 08:00:00 GMT
Content-Md5:
- OMs/UjwLoIRaoKN19eGYeQ==
Expires:
- Thu, 03 Feb 2022 00:56:38 GMT
Cache-Control:
- public,max-age=31536000,immutable
X-Fb-Rlafr:
- '0'
Cross-Origin-Resource-Policy:
- cross-origin
Timing-Allow-Origin:
- "*"
Content-Type:
- image/gif
X-Content-Type-Options:
- nosniff
X-Fb-Debug:
- cZZyhYnkYLG7hkH/dRrl4xLbcWXusp/H0hkuf6womBNC7ZO5W6xf9+bEebu8UgNKzr/6R65Lc8V5OOXATUEAEQ==
Date:
- Fri, 12 Feb 2021 11:27:07 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '2380'
body:
encoding: ASCII-8BIT
string: !binary |-
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
http_version:
recorded_at: Fri, 12 Feb 2021 11:27:07 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_PAGE_1_POST_ID>_105667314885521/comments?access_token=<FACEBOOK_PAGE_1_ACCCESS_TOKEN>&fields=id,from,to,message,created_time
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Etag:
- '"1050253aec7b29caff644806927dabfa81406eee"'
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- AFxQsBjmrMe5RJ7jrxysufo
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- A+Ml0ycJQm7
X-Fb-Rev:
- '1003303417'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Pragma:
- no-cache
X-Fb-Rlafr:
- '0'
X-Business-Use-Case-Usage:
- '{"<FACEBOOK_PAGE_1_ID>":[{"type":"pages","call_count":1,"total_cputime":1,"total_time":1,"estimated_time_to_regain_access":0}]}'
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- 32/ArCYsOm/W1n2tqHmy8Y77XTbVK3xGGv44t5gbjrw+YTCLwyeJ4d/46pO2MBFHZzyVJ9qlX4MtuYsoQAuvjA==
Date:
- Fri, 12 Feb 2021 11:27:08 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '11'
body:
encoding: UTF-8
string: '{"data":[]}'
http_version:
recorded_at: Fri, 12 Feb 2021 11:27:08 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_CUSTOMER_ID>/picture?type=large
body:
encoding: US-ASCII
string: ''
headers:
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- Zammad User Agent
Host:
- graph.facebook.com
response:
status:
code: 400
message: Bad Request
headers:
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v3.2
X-Fb-Request-Id:
- AxZiJYvyLp7Mlv4EsP6mbSp
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- EI46FPIWK6T
X-Fb-Rev:
- '1003303417'
Cache-Control:
- no-store
Pragma:
- no-cache
Access-Control-Allow-Origin:
- "*"
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Www-Authenticate:
- OAuth "Facebook Platform" "invalid_request" "(#3) Application does not have
the capability to make this API call."
X-Fb-Debug:
- 7oAUs13AHM321X5gk5uFi1PxRKcR9MjEVEgGm5MJJ3NXM4BhKRF+xc3mqNvzF15POuBi+EsqdNFmsD5ps9pbbQ==
Date:
- Fri, 12 Feb 2021 11:27:08 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '164'
body:
encoding: UTF-8
string: '{"error":{"message":"(#3) Application does not have the capability
to make this API call.","type":"OAuthException","code":3,"fbtrace_id":"AxZiJYvyLp7Mlv4EsP6mbSp"}}'
http_version:
recorded_at: Fri, 12 Feb 2021 11:27:08 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_PAGE_1_POST_ID>_<FACEBOOK_PAGE_1_POST_COMMENT_ID>/comments?access_token=<FACEBOOK_PAGE_1_ACCCESS_TOKEN>&fields=id,from,to,message,created_time
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Etag:
- '"1050253aec7b29caff644806927dabfa81406eee"'
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- AbvHP38hrjZQ-D_XfmAoLtG
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- GDpU8nFzYgW
X-Fb-Rev:
- '1003303417'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Pragma:
- no-cache
X-Fb-Rlafr:
- '0'
X-Business-Use-Case-Usage:
- '{"<FACEBOOK_PAGE_1_ID>":[{"type":"pages","call_count":1,"total_cputime":1,"total_time":1,"estimated_time_to_regain_access":0}]}'
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- XZRcJ40pPsmiF3Nbh9HuqsiMd4FXDytR1p5KVBJIN86dX4c3cz2lc8/+n/EOKTR6ia+UaTHG8pY2D2fq3giVBg==
Date:
- Fri, 12 Feb 2021 11:27:09 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '11'
body:
encoding: UTF-8
string: '{"data":[]}'
http_version:
recorded_at: Fri, 12 Feb 2021 11:27:09 GMT
recorded_with: VCR 4.0.0

View file

@ -0,0 +1,718 @@
---
http_interactions:
- request:
method: get
uri: https://graph.facebook.com/me/feed?access_token=<FACEBOOK_PAGE_1_ACCCESS_TOKEN>&fields=id,from,to,message,created_time,permalink_url,comments%7Bid,from,to,message,created_time%7D
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Etag:
- '"e8ff6b278cdfc08eb20e427dae10f2530d069f8a"'
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- AWierOlxw5HWPtns5HsGB9f
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- Fnvryxauwuh
X-Fb-Rev:
- '1003303417'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Vary:
- Accept-Encoding
Pragma:
- no-cache
X-Fb-Rlafr:
- '0'
X-Business-Use-Case-Usage:
- '{"<FACEBOOK_PAGE_1_ID>":[{"type":"pages","call_count":1,"total_cputime":1,"total_time":1,"estimated_time_to_regain_access":0}]}'
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- 7th7JFKNA4HChbdGxhTj9mfGJrwUWe0YOq0DwuXU3IlBCrAf5m3TU9j1xh2hF84l9DCPcBXABXlkP9pjziP1iw==
Date:
- Fri, 12 Feb 2021 11:52:58 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '575'
body:
encoding: ASCII-8BIT
string: '{"data":[{"id":"<FACEBOOK_PAGE_1_ID>_<FACEBOOK_PAGE_1_POST_ID>","from":{"name":"<FACEBOOK_CUSTOMER_FIRSTNAME>
<FACEBOOK_CUSTOMER_LASTNAME>","id":"<FACEBOOK_CUSTOMER_ID>"},"to":{"data":[{"id":"<FACEBOOK_PAGE_1_ID>","name":"<FACEBOOK_PAGE_1_NAME>"}]},"message":"<FACEBOOK_PAGE_1_POST_MESSAGE>","created_time":"2021-02-04T15:16:24+0000","permalink_url":"https:\/\/www.facebook.com\/<FACEBOOK_PAGE_1_ID>\/posts\/<FACEBOOK_PAGE_1_POST_ID>\/","comments":{"data":[{"id":"<FACEBOOK_PAGE_1_POST_ID>_105667314885521","from":{"name":"<FACEBOOK_PAGE_1_NAME>","id":"<FACEBOOK_PAGE_1_ID>"},"message":"qqqqq","created_time":"2021-02-04T15:22:43+0000"},{"id":"<FACEBOOK_PAGE_1_POST_ID>_<FACEBOOK_PAGE_1_POST_COMMENT_ID>","from":{"name":"<FACEBOOK_CUSTOMER_FIRSTNAME>
<FACEBOOK_CUSTOMER_LASTNAME>","id":"<FACEBOOK_CUSTOMER_ID>"},"message":"dddd","created_time":"2021-02-04T15:23:13+0000"}],"paging":{"cursors":{"before":"WTI5dGJXVnVkRjlqZAFhKemIzSTZANVEExTmpZAM016RTBPRGcxTlRJeE9qRTJNVEkwTlRJeE5qTT0ZD","after":"WTI5dGJXVnVkRjlqZAFhKemIzSTZANVEExTmpZAM05UYzBPRGcxTkRrMU9qRTJNVEkwTlRJeE9UTT0ZD"}}}}],"paging":{"cursors":{"before":"QVFIUnZAPR1lId3h3MGQ3UE5IZAzFkTkNuY2hWdVpyb3hESzFfVnNCMGk3UTRxNkJ5Y0ZAFVVVualJKdE1HYktIemlTd2RvSUFzQnJaMWtrbFc2VHhyYjRZAakVaTWNzZATlvWHppaEROY3FXd3dWUS01NjdlVS1iSFdTeVo3ZA19NY3ByMWdw","after":"QVFIUnZAPR1lId3h3MGQ3UE5IZAzFkTkNuY2hWdVpyb3hESzFfVnNCMGk3UTRxNkJ5Y0ZAFVVVualJKdE1HYktIemlTd2RvSUFzQnJaMWtrbFc2VHhyYjRZAakVaTWNzZATlvWHppaEROY3FXd3dWUS01NjdlVS1iSFdTeVo3ZA19NY3ByMWdw"}}}'
http_version:
recorded_at: Fri, 12 Feb 2021 11:52:58 GMT
- request:
method: get
uri: https://graph.facebook.com/me/accounts?access_token=<FACEBOOK_ADMIN_ACCESS_TOKEN>
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Etag:
- '"54606689e65ecdaf2490533f791b994546646abe"'
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- AilMVAWxlOCn-NerOng6l5Z
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- DbvRzknNatb
X-Fb-Rev:
- '1003303417'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Vary:
- Accept-Encoding
Pragma:
- no-cache
X-App-Usage:
- '{"call_count":0,"total_cputime":0,"total_time":0}'
X-Fb-Rlafr:
- '0'
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- 6styz/6oSKPqJ6eCPIAJc3QRBHGkFAnbKx2aghK2nWZ2xgUrqj9dY84LheTxse9/cTlbDIa6DqHCEg5P8riz9w==
Date:
- Fri, 12 Feb 2021 11:52:59 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '627'
body:
encoding: ASCII-8BIT
string: '{"data":[{"access_token":"<FACEBOOK_PAGE_1_ACCCESS_TOKEN>","category":"Bed
and Breakfast","category_list":[{"id":"110321355709642","name":"Bed and Breakfast"}],"name":"<FACEBOOK_PAGE_1_NAME>","id":"<FACEBOOK_PAGE_1_ID>","tasks":["ANALYZE","ADVERTISE","MESSAGING","MODERATE","CREATE_CONTENT","MANAGE"]},{"access_token":"<FACEBOOK_PAGE_2_ACCCESS_TOKEN>","category":"Just
For Fun","category_list":[{"id":"129417183848258","name":"Just For Fun"}],"name":"<FACEBOOK_PAGE_2_NAME>","id":"<FACEBOOK_PAGE_2_ID>","tasks":["ANALYZE","ADVERTISE","MESSAGING","MODERATE","CREATE_CONTENT","MANAGE"]}],"paging":{"cursors":{"before":"MTAwMTY3MDIyMTAyMjE3","after":"MTY4NDc1MjQ4MjY4Mjg5"}}}'
http_version:
recorded_at: Fri, 12 Feb 2021 11:52:59 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_CUSTOMER_ID>?access_token=<FACEBOOK_PAGE_1_ACCCESS_TOKEN>&fields=first_name,last_name,email
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Etag:
- '"6cef0e3dceb732d6f12089b9b438ddf189856488"'
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- A9wjFHozIlpOVRy0NHmjYSY
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- AaOM46JQBzI
X-Fb-Rev:
- '1003303417'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Pragma:
- no-cache
X-Fb-Rlafr:
- '0'
X-Business-Use-Case-Usage:
- '{"<FACEBOOK_PAGE_1_ID>":[{"type":"messenger","call_count":1,"total_cputime":1,"total_time":1,"estimated_time_to_regain_access":0}]}'
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- ycMXjBUIXgeEto71DYVu7t0Het9ghX7R/I5bhzJr661JLHjWYAsgUnSZMCDBN4UdXWa9GfxLLbfSLGsL4htPtg==
Date:
- Fri, 12 Feb 2021 11:52:59 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '72'
body:
encoding: UTF-8
string: '{"first_name":"<FACEBOOK_CUSTOMER_FIRSTNAME>","last_name":"<FACEBOOK_CUSTOMER_LASTNAME>","id":"<FACEBOOK_CUSTOMER_ID>"}'
http_version:
recorded_at: Fri, 12 Feb 2021 11:52:59 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_CUSTOMER_ID>/picture?type=large
body:
encoding: US-ASCII
string: ''
headers:
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- Zammad User Agent
Host:
- graph.facebook.com
response:
status:
code: 400
message: Bad Request
headers:
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v3.2
X-Fb-Request-Id:
- A07eVm-q6PujWk2EdrXW1Lh
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- HV1/CYxOEwe
X-Fb-Rev:
- '1003303417'
Cache-Control:
- no-store
Pragma:
- no-cache
Access-Control-Allow-Origin:
- "*"
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Www-Authenticate:
- OAuth "Facebook Platform" "invalid_request" "(#3) Application does not have
the capability to make this API call."
X-Fb-Debug:
- PMToDSJjEAnVwJGK2rag1ktLUuJCz5WgAEDCY1dbSQgRSuNvFEy70fjk7dk5eN6QFvrn5rlFJGA137lo6Nqg/w==
Date:
- Fri, 12 Feb 2021 11:52:59 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '164'
body:
encoding: UTF-8
string: '{"error":{"message":"(#3) Application does not have the capability
to make this API call.","type":"OAuthException","code":3,"fbtrace_id":"A07eVm-q6PujWk2EdrXW1Lh"}}'
http_version:
recorded_at: Fri, 12 Feb 2021 11:52:59 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_CUSTOMER_ID>/picture?type=large
body:
encoding: US-ASCII
string: ''
headers:
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- Zammad User Agent
Host:
- graph.facebook.com
response:
status:
code: 400
message: Bad Request
headers:
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v3.2
X-Fb-Request-Id:
- AghEcVKlHkznMNQh6geuHCw
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- GW9Cl35tPZi
X-Fb-Rev:
- '1003303417'
Cache-Control:
- no-store
Pragma:
- no-cache
Access-Control-Allow-Origin:
- "*"
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Www-Authenticate:
- OAuth "Facebook Platform" "invalid_request" "(#3) Application does not have
the capability to make this API call."
X-Fb-Debug:
- 6homYHg4n5Vqz49EZyfJZN3eW7TKU6TwTZKXdig5t56e9DhDerVCg3Ol+xRDRPYHqbpw4xsYTcgTmOCnH8TqBg==
Date:
- Fri, 12 Feb 2021 11:52:59 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '164'
body:
encoding: UTF-8
string: '{"error":{"message":"(#3) Application does not have the capability
to make this API call.","type":"OAuthException","code":3,"fbtrace_id":"AghEcVKlHkznMNQh6geuHCw"}}'
http_version:
recorded_at: Fri, 12 Feb 2021 11:52:59 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_PAGE_1_ID>?access_token=<FACEBOOK_PAGE_1_ACCCESS_TOKEN>&fields=first_name,last_name,email
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 400
message: Bad Request
headers:
X-App-Usage:
- '{"call_count":0,"total_cputime":0,"total_time":0}'
X-Fb-Rlafr:
- '0'
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- AlswoOCo6zO9DttdDlCJ7fi
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- Di2fLlsl2VY
X-Fb-Rev:
- '1003303417'
Cache-Control:
- no-store
Pragma:
- no-cache
Access-Control-Allow-Origin:
- "*"
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Www-Authenticate:
- OAuth "Facebook Platform" "invalid_request" "(#100) Tried accessing nonexisting
field (first_name) on node type (Page)"
X-Fb-Debug:
- AKGq6lVKFyWNa3NDC4TH3FsHZazn2cp5rM/xLdMBeT2etNaeu7j+0MeapsNeqYM4I3RH2DlLuBaw9Rn1GmryvA==
Date:
- Fri, 12 Feb 2021 11:52:59 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '171'
body:
encoding: UTF-8
string: '{"error":{"message":"(#100) Tried accessing nonexisting field (first_name)
on node type (Page)","type":"OAuthException","code":100,"fbtrace_id":"AlswoOCo6zO9DttdDlCJ7fi"}}'
http_version:
recorded_at: Fri, 12 Feb 2021 11:52:59 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_PAGE_1_ID>?access_token=<FACEBOOK_PAGE_1_ACCCESS_TOKEN>&fields=name
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Etag:
- '"861755e903d7086e2efa081e780e9cc1849961b5"'
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- AcVOgIQmW2UlRDFR9GfnpCs
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- EvpvDPrkJX2
X-Fb-Rev:
- '1003303417'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Pragma:
- no-cache
X-Fb-Rlafr:
- '0'
X-Business-Use-Case-Usage:
- '{"<FACEBOOK_PAGE_1_ID>":[{"type":"pages","call_count":1,"total_cputime":1,"total_time":1,"estimated_time_to_regain_access":0}]}'
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- jti6ae8ciLMmgdntxeo/Sy7VnF9eY73NaFGfY7W1YI+aSgLJy58LRBUYPt2kRcb6HVlDrXUDoD6jCo2Q2N3Qlg==
Date:
- Fri, 12 Feb 2021 11:52:59 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '37'
body:
encoding: UTF-8
string: '{"name":"<FACEBOOK_PAGE_1_NAME>","id":"<FACEBOOK_PAGE_1_ID>"}'
http_version:
recorded_at: Fri, 12 Feb 2021 11:52:59 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_PAGE_1_ID>/picture?type=large
body:
encoding: US-ASCII
string: ''
headers:
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- Zammad User Agent
Host:
- graph.facebook.com
response:
status:
code: 302
message: Found
headers:
Location:
- https://static.xx.fbcdn.net/rsrc.php/v3/yA/r/gPCjrIGykBe.gif
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
X-Fb-Request-Id:
- AW0EiNf9pzVQlIE0Pw7wujU
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- Fk8H4UfhAKf
Facebook-Api-Version:
- v3.2
Content-Type:
- image/jpeg
X-Fb-Rev:
- '1003303417'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Pragma:
- no-cache
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- h4cr5zwEpI8WS3SqODkidG+YegS4bpL9sBTyoGiYDnh6Yl6NB/4hsTfPO5lWxODKVhtMLuawNjoFfoJVzDsUyQ==
Date:
- Fri, 12 Feb 2021 11:52:59 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Fri, 12 Feb 2021 11:52:59 GMT
- request:
method: get
uri: https://static.xx.fbcdn.net/rsrc.php/v3/yA/r/gPCjrIGykBe.gif
body:
encoding: US-ASCII
string: ''
headers:
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- Zammad User Agent
Host:
- static.xx.fbcdn.net
response:
status:
code: 200
message: OK
headers:
Access-Control-Allow-Origin:
- "*"
Last-Modified:
- Mon, 01 Jan 2001 08:00:00 GMT
Content-Md5:
- OMs/UjwLoIRaoKN19eGYeQ==
Expires:
- Thu, 03 Feb 2022 00:56:38 GMT
Cache-Control:
- public,max-age=31536000,immutable
X-Fb-Rlafr:
- '0'
Cross-Origin-Resource-Policy:
- cross-origin
Timing-Allow-Origin:
- "*"
Content-Type:
- image/gif
X-Content-Type-Options:
- nosniff
X-Fb-Debug:
- cZZyhYnkYLG7hkH/dRrl4xLbcWXusp/H0hkuf6womBNC7ZO5W6xf9+bEebu8UgNKzr/6R65Lc8V5OOXATUEAEQ==
X-Fb-Trip-Id:
- '1082456386'
Date:
- Fri, 12 Feb 2021 11:52:59 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '2380'
body:
encoding: ASCII-8BIT
string: !binary |-
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
http_version:
recorded_at: Fri, 12 Feb 2021 11:52:59 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_PAGE_1_POST_ID>_105667314885521/comments?access_token=<FACEBOOK_PAGE_1_ACCCESS_TOKEN>&fields=id,from,to,message,created_time
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Etag:
- '"1050253aec7b29caff644806927dabfa81406eee"'
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- ADsX2zK8k6oFBvNfHyBGP5a
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- CI7ERZCWj2t
X-Fb-Rev:
- '1003303417'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Pragma:
- no-cache
X-Fb-Rlafr:
- '0'
X-Business-Use-Case-Usage:
- '{"<FACEBOOK_PAGE_1_ID>":[{"type":"pages","call_count":1,"total_cputime":1,"total_time":1,"estimated_time_to_regain_access":0}]}'
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- Sp2rVveW0zpCFWdR+6Z2IJ4DSwLXws+BdEJlg83cIuRG8T3wTLgQqeWfvFMye6grcRxxi/vnKbLKdvhJVVlWBg==
Date:
- Fri, 12 Feb 2021 11:53:00 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '11'
body:
encoding: UTF-8
string: '{"data":[]}'
http_version:
recorded_at: Fri, 12 Feb 2021 11:53:00 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_CUSTOMER_ID>/picture?type=large
body:
encoding: US-ASCII
string: ''
headers:
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- Zammad User Agent
Host:
- graph.facebook.com
response:
status:
code: 400
message: Bad Request
headers:
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v3.2
X-Fb-Request-Id:
- Aq5FUDg6y2YCPJiWy-s3NiZ
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- EPj02IZ+5Tp
X-Fb-Rev:
- '1003303417'
Cache-Control:
- no-store
Pragma:
- no-cache
Access-Control-Allow-Origin:
- "*"
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Www-Authenticate:
- OAuth "Facebook Platform" "invalid_request" "(#3) Application does not have
the capability to make this API call."
X-Fb-Debug:
- A7G5F/k/9pZykCUAOB6FoXo0yXhqU6D44lAmN9IKRinxQL35vo+Y86+ojf8d6dd59XQZTQZqMYyihUApm25WIg==
Date:
- Fri, 12 Feb 2021 11:53:00 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '164'
body:
encoding: UTF-8
string: '{"error":{"message":"(#3) Application does not have the capability
to make this API call.","type":"OAuthException","code":3,"fbtrace_id":"Aq5FUDg6y2YCPJiWy-s3NiZ"}}'
http_version:
recorded_at: Fri, 12 Feb 2021 11:53:00 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_PAGE_1_POST_ID>_<FACEBOOK_PAGE_1_POST_COMMENT_ID>/comments?access_token=<FACEBOOK_PAGE_1_ACCCESS_TOKEN>&fields=id,from,to,message,created_time
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Etag:
- '"1050253aec7b29caff644806927dabfa81406eee"'
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- A5fBsal2DFvwS20cDUK230u
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- D1iqvBxgNpx
X-Fb-Rev:
- '1003303417'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Pragma:
- no-cache
X-Fb-Rlafr:
- '0'
X-Business-Use-Case-Usage:
- '{"<FACEBOOK_PAGE_1_ID>":[{"type":"pages","call_count":1,"total_cputime":1,"total_time":1,"estimated_time_to_regain_access":0}]}'
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- hWIk1RG8G0XsK0SpljvImuIx+Kxh3UjcbEGjapa2zEg9UjaQkSJVdBfZGOvoP1SGlylD1lJIsqm/R8KoM0gZRg==
Date:
- Fri, 12 Feb 2021 11:53:00 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '11'
body:
encoding: UTF-8
string: '{"data":[]}'
http_version:
recorded_at: Fri, 12 Feb 2021 11:53:00 GMT
recorded_with: VCR 4.0.0

View file

@ -0,0 +1,718 @@
---
http_interactions:
- request:
method: get
uri: https://graph.facebook.com/me/feed?access_token=<FACEBOOK_PAGE_1_ACCCESS_TOKEN>&fields=id,from,to,message,created_time,permalink_url,comments%7Bid,from,to,message,created_time%7D
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Etag:
- '"e8ff6b278cdfc08eb20e427dae10f2530d069f8a"'
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- AWierOlxw5HWPtns5HsGB9f
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- Fnvryxauwuh
X-Fb-Rev:
- '1003303417'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Vary:
- Accept-Encoding
Pragma:
- no-cache
X-Fb-Rlafr:
- '0'
X-Business-Use-Case-Usage:
- '{"<FACEBOOK_PAGE_1_ID>":[{"type":"pages","call_count":1,"total_cputime":1,"total_time":1,"estimated_time_to_regain_access":0}]}'
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- 7th7JFKNA4HChbdGxhTj9mfGJrwUWe0YOq0DwuXU3IlBCrAf5m3TU9j1xh2hF84l9DCPcBXABXlkP9pjziP1iw==
Date:
- Fri, 12 Feb 2021 11:52:58 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '575'
body:
encoding: ASCII-8BIT
string: '{"data":[{"id":"<FACEBOOK_PAGE_1_ID>_<FACEBOOK_PAGE_1_POST_ID>","from":{"name":"<FACEBOOK_CUSTOMER_FIRSTNAME>
<FACEBOOK_CUSTOMER_LASTNAME>","id":"<FACEBOOK_CUSTOMER_ID>"},"to":{"data":[{"id":"<FACEBOOK_PAGE_1_ID>","name":"<FACEBOOK_PAGE_1_NAME>"}]},"message":"<FACEBOOK_PAGE_1_POST_MESSAGE>","created_time":"2021-02-04T15:16:24+0000","permalink_url":"https:\/\/www.facebook.com\/<FACEBOOK_PAGE_1_ID>\/posts\/<FACEBOOK_PAGE_1_POST_ID>\/","comments":{"data":[{"id":"<FACEBOOK_PAGE_1_POST_ID>_105667314885521","from":{"name":"<FACEBOOK_PAGE_1_NAME>","id":"<FACEBOOK_PAGE_1_ID>"},"message":"qqqqq","created_time":"2021-02-04T15:22:43+0000"},{"id":"<FACEBOOK_PAGE_1_POST_ID>_<FACEBOOK_PAGE_1_POST_COMMENT_ID>","from":{"name":"<FACEBOOK_CUSTOMER_FIRSTNAME>
<FACEBOOK_CUSTOMER_LASTNAME>","id":"<FACEBOOK_CUSTOMER_ID>"},"message":"dddd","created_time":"2021-02-04T15:23:13+0000"}],"paging":{"cursors":{"before":"WTI5dGJXVnVkRjlqZAFhKemIzSTZANVEExTmpZAM016RTBPRGcxTlRJeE9qRTJNVEkwTlRJeE5qTT0ZD","after":"WTI5dGJXVnVkRjlqZAFhKemIzSTZANVEExTmpZAM05UYzBPRGcxTkRrMU9qRTJNVEkwTlRJeE9UTT0ZD"}}}}],"paging":{"cursors":{"before":"QVFIUnZAPR1lId3h3MGQ3UE5IZAzFkTkNuY2hWdVpyb3hESzFfVnNCMGk3UTRxNkJ5Y0ZAFVVVualJKdE1HYktIemlTd2RvSUFzQnJaMWtrbFc2VHhyYjRZAakVaTWNzZATlvWHppaEROY3FXd3dWUS01NjdlVS1iSFdTeVo3ZA19NY3ByMWdw","after":"QVFIUnZAPR1lId3h3MGQ3UE5IZAzFkTkNuY2hWdVpyb3hESzFfVnNCMGk3UTRxNkJ5Y0ZAFVVVualJKdE1HYktIemlTd2RvSUFzQnJaMWtrbFc2VHhyYjRZAakVaTWNzZATlvWHppaEROY3FXd3dWUS01NjdlVS1iSFdTeVo3ZA19NY3ByMWdw"}}}'
http_version:
recorded_at: Fri, 12 Feb 2021 11:52:58 GMT
- request:
method: get
uri: https://graph.facebook.com/me/accounts?access_token=<FACEBOOK_ADMIN_ACCESS_TOKEN>
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Etag:
- '"54606689e65ecdaf2490533f791b994546646abe"'
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- AilMVAWxlOCn-NerOng6l5Z
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- DbvRzknNatb
X-Fb-Rev:
- '1003303417'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Vary:
- Accept-Encoding
Pragma:
- no-cache
X-App-Usage:
- '{"call_count":0,"total_cputime":0,"total_time":0}'
X-Fb-Rlafr:
- '0'
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- 6styz/6oSKPqJ6eCPIAJc3QRBHGkFAnbKx2aghK2nWZ2xgUrqj9dY84LheTxse9/cTlbDIa6DqHCEg5P8riz9w==
Date:
- Fri, 12 Feb 2021 11:52:59 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '627'
body:
encoding: ASCII-8BIT
string: '{"data":[{"access_token":"<FACEBOOK_PAGE_1_ACCCESS_TOKEN>","category":"Bed
and Breakfast","category_list":[{"id":"110321355709642","name":"Bed and Breakfast"}],"name":"<FACEBOOK_PAGE_1_NAME>","id":"<FACEBOOK_PAGE_1_ID>","tasks":["ANALYZE","ADVERTISE","MESSAGING","MODERATE","CREATE_CONTENT","MANAGE"]},{"access_token":"<FACEBOOK_PAGE_2_ACCCESS_TOKEN>","category":"Just
For Fun","category_list":[{"id":"129417183848258","name":"Just For Fun"}],"name":"<FACEBOOK_PAGE_2_NAME>","id":"<FACEBOOK_PAGE_2_ID>","tasks":["ANALYZE","ADVERTISE","MESSAGING","MODERATE","CREATE_CONTENT","MANAGE"]}],"paging":{"cursors":{"before":"MTAwMTY3MDIyMTAyMjE3","after":"MTY4NDc1MjQ4MjY4Mjg5"}}}'
http_version:
recorded_at: Fri, 12 Feb 2021 11:52:59 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_CUSTOMER_ID>?access_token=<FACEBOOK_PAGE_1_ACCCESS_TOKEN>&fields=first_name,last_name,email
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Etag:
- '"6cef0e3dceb732d6f12089b9b438ddf189856488"'
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- A9wjFHozIlpOVRy0NHmjYSY
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- AaOM46JQBzI
X-Fb-Rev:
- '1003303417'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Pragma:
- no-cache
X-Fb-Rlafr:
- '0'
X-Business-Use-Case-Usage:
- '{"<FACEBOOK_PAGE_1_ID>":[{"type":"messenger","call_count":1,"total_cputime":1,"total_time":1,"estimated_time_to_regain_access":0}]}'
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- ycMXjBUIXgeEto71DYVu7t0Het9ghX7R/I5bhzJr661JLHjWYAsgUnSZMCDBN4UdXWa9GfxLLbfSLGsL4htPtg==
Date:
- Fri, 12 Feb 2021 11:52:59 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '72'
body:
encoding: UTF-8
string: '{"first_name":"<FACEBOOK_CUSTOMER_FIRSTNAME>","last_name":"<FACEBOOK_CUSTOMER_LASTNAME>","id":"<FACEBOOK_CUSTOMER_ID>"}'
http_version:
recorded_at: Fri, 12 Feb 2021 11:52:59 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_CUSTOMER_ID>/picture?type=large
body:
encoding: US-ASCII
string: ''
headers:
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- Zammad User Agent
Host:
- graph.facebook.com
response:
status:
code: 400
message: Bad Request
headers:
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v3.2
X-Fb-Request-Id:
- A07eVm-q6PujWk2EdrXW1Lh
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- HV1/CYxOEwe
X-Fb-Rev:
- '1003303417'
Cache-Control:
- no-store
Pragma:
- no-cache
Access-Control-Allow-Origin:
- "*"
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Www-Authenticate:
- OAuth "Facebook Platform" "invalid_request" "(#3) Application does not have
the capability to make this API call."
X-Fb-Debug:
- PMToDSJjEAnVwJGK2rag1ktLUuJCz5WgAEDCY1dbSQgRSuNvFEy70fjk7dk5eN6QFvrn5rlFJGA137lo6Nqg/w==
Date:
- Fri, 12 Feb 2021 11:52:59 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '164'
body:
encoding: UTF-8
string: '{"error":{"message":"(#3) Application does not have the capability
to make this API call.","type":"OAuthException","code":3,"fbtrace_id":"A07eVm-q6PujWk2EdrXW1Lh"}}'
http_version:
recorded_at: Fri, 12 Feb 2021 11:52:59 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_CUSTOMER_ID>/picture?type=large
body:
encoding: US-ASCII
string: ''
headers:
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- Zammad User Agent
Host:
- graph.facebook.com
response:
status:
code: 400
message: Bad Request
headers:
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v3.2
X-Fb-Request-Id:
- AghEcVKlHkznMNQh6geuHCw
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- GW9Cl35tPZi
X-Fb-Rev:
- '1003303417'
Cache-Control:
- no-store
Pragma:
- no-cache
Access-Control-Allow-Origin:
- "*"
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Www-Authenticate:
- OAuth "Facebook Platform" "invalid_request" "(#3) Application does not have
the capability to make this API call."
X-Fb-Debug:
- 6homYHg4n5Vqz49EZyfJZN3eW7TKU6TwTZKXdig5t56e9DhDerVCg3Ol+xRDRPYHqbpw4xsYTcgTmOCnH8TqBg==
Date:
- Fri, 12 Feb 2021 11:52:59 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '164'
body:
encoding: UTF-8
string: '{"error":{"message":"(#3) Application does not have the capability
to make this API call.","type":"OAuthException","code":3,"fbtrace_id":"AghEcVKlHkznMNQh6geuHCw"}}'
http_version:
recorded_at: Fri, 12 Feb 2021 11:52:59 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_PAGE_1_ID>?access_token=<FACEBOOK_PAGE_1_ACCCESS_TOKEN>&fields=first_name,last_name,email
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 400
message: Bad Request
headers:
X-App-Usage:
- '{"call_count":0,"total_cputime":0,"total_time":0}'
X-Fb-Rlafr:
- '0'
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- AlswoOCo6zO9DttdDlCJ7fi
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- Di2fLlsl2VY
X-Fb-Rev:
- '1003303417'
Cache-Control:
- no-store
Pragma:
- no-cache
Access-Control-Allow-Origin:
- "*"
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Www-Authenticate:
- OAuth "Facebook Platform" "invalid_request" "(#100) Tried accessing nonexisting
field (first_name) on node type (Page)"
X-Fb-Debug:
- AKGq6lVKFyWNa3NDC4TH3FsHZazn2cp5rM/xLdMBeT2etNaeu7j+0MeapsNeqYM4I3RH2DlLuBaw9Rn1GmryvA==
Date:
- Fri, 12 Feb 2021 11:52:59 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '171'
body:
encoding: UTF-8
string: '{"error":{"message":"(#100) Tried accessing nonexisting field (first_name)
on node type (Page)","type":"OAuthException","code":100,"fbtrace_id":"AlswoOCo6zO9DttdDlCJ7fi"}}'
http_version:
recorded_at: Fri, 12 Feb 2021 11:52:59 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_PAGE_1_ID>?access_token=<FACEBOOK_PAGE_1_ACCCESS_TOKEN>&fields=name
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Etag:
- '"861755e903d7086e2efa081e780e9cc1849961b5"'
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- AcVOgIQmW2UlRDFR9GfnpCs
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- EvpvDPrkJX2
X-Fb-Rev:
- '1003303417'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Pragma:
- no-cache
X-Fb-Rlafr:
- '0'
X-Business-Use-Case-Usage:
- '{"<FACEBOOK_PAGE_1_ID>":[{"type":"pages","call_count":1,"total_cputime":1,"total_time":1,"estimated_time_to_regain_access":0}]}'
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- jti6ae8ciLMmgdntxeo/Sy7VnF9eY73NaFGfY7W1YI+aSgLJy58LRBUYPt2kRcb6HVlDrXUDoD6jCo2Q2N3Qlg==
Date:
- Fri, 12 Feb 2021 11:52:59 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '37'
body:
encoding: UTF-8
string: '{"name":"<FACEBOOK_PAGE_1_NAME>","id":"<FACEBOOK_PAGE_1_ID>"}'
http_version:
recorded_at: Fri, 12 Feb 2021 11:52:59 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_PAGE_1_ID>/picture?type=large
body:
encoding: US-ASCII
string: ''
headers:
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- Zammad User Agent
Host:
- graph.facebook.com
response:
status:
code: 302
message: Found
headers:
Location:
- https://static.xx.fbcdn.net/rsrc.php/v3/yA/r/gPCjrIGykBe.gif
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
X-Fb-Request-Id:
- AW0EiNf9pzVQlIE0Pw7wujU
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- Fk8H4UfhAKf
Facebook-Api-Version:
- v3.2
Content-Type:
- image/jpeg
X-Fb-Rev:
- '1003303417'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Pragma:
- no-cache
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- h4cr5zwEpI8WS3SqODkidG+YegS4bpL9sBTyoGiYDnh6Yl6NB/4hsTfPO5lWxODKVhtMLuawNjoFfoJVzDsUyQ==
Date:
- Fri, 12 Feb 2021 11:52:59 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Fri, 12 Feb 2021 11:52:59 GMT
- request:
method: get
uri: https://static.xx.fbcdn.net/rsrc.php/v3/yA/r/gPCjrIGykBe.gif
body:
encoding: US-ASCII
string: ''
headers:
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- Zammad User Agent
Host:
- static.xx.fbcdn.net
response:
status:
code: 200
message: OK
headers:
Access-Control-Allow-Origin:
- "*"
Last-Modified:
- Mon, 01 Jan 2001 08:00:00 GMT
Content-Md5:
- OMs/UjwLoIRaoKN19eGYeQ==
Expires:
- Thu, 03 Feb 2022 00:56:38 GMT
Cache-Control:
- public,max-age=31536000,immutable
X-Fb-Rlafr:
- '0'
Cross-Origin-Resource-Policy:
- cross-origin
Timing-Allow-Origin:
- "*"
Content-Type:
- image/gif
X-Content-Type-Options:
- nosniff
X-Fb-Debug:
- cZZyhYnkYLG7hkH/dRrl4xLbcWXusp/H0hkuf6womBNC7ZO5W6xf9+bEebu8UgNKzr/6R65Lc8V5OOXATUEAEQ==
X-Fb-Trip-Id:
- '1082456386'
Date:
- Fri, 12 Feb 2021 11:52:59 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '2380'
body:
encoding: ASCII-8BIT
string: !binary |-
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
http_version:
recorded_at: Fri, 12 Feb 2021 11:52:59 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_PAGE_1_POST_ID>_105667314885521/comments?access_token=<FACEBOOK_PAGE_1_ACCCESS_TOKEN>&fields=id,from,to,message,created_time
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Etag:
- '"1050253aec7b29caff644806927dabfa81406eee"'
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- ADsX2zK8k6oFBvNfHyBGP5a
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- CI7ERZCWj2t
X-Fb-Rev:
- '1003303417'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Pragma:
- no-cache
X-Fb-Rlafr:
- '0'
X-Business-Use-Case-Usage:
- '{"<FACEBOOK_PAGE_1_ID>":[{"type":"pages","call_count":1,"total_cputime":1,"total_time":1,"estimated_time_to_regain_access":0}]}'
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- Sp2rVveW0zpCFWdR+6Z2IJ4DSwLXws+BdEJlg83cIuRG8T3wTLgQqeWfvFMye6grcRxxi/vnKbLKdvhJVVlWBg==
Date:
- Fri, 12 Feb 2021 11:53:00 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '11'
body:
encoding: UTF-8
string: '{"data":[]}'
http_version:
recorded_at: Fri, 12 Feb 2021 11:53:00 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_CUSTOMER_ID>/picture?type=large
body:
encoding: US-ASCII
string: ''
headers:
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- Zammad User Agent
Host:
- graph.facebook.com
response:
status:
code: 400
message: Bad Request
headers:
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v3.2
X-Fb-Request-Id:
- Aq5FUDg6y2YCPJiWy-s3NiZ
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- EPj02IZ+5Tp
X-Fb-Rev:
- '1003303417'
Cache-Control:
- no-store
Pragma:
- no-cache
Access-Control-Allow-Origin:
- "*"
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Www-Authenticate:
- OAuth "Facebook Platform" "invalid_request" "(#3) Application does not have
the capability to make this API call."
X-Fb-Debug:
- A7G5F/k/9pZykCUAOB6FoXo0yXhqU6D44lAmN9IKRinxQL35vo+Y86+ojf8d6dd59XQZTQZqMYyihUApm25WIg==
Date:
- Fri, 12 Feb 2021 11:53:00 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '164'
body:
encoding: UTF-8
string: '{"error":{"message":"(#3) Application does not have the capability
to make this API call.","type":"OAuthException","code":3,"fbtrace_id":"Aq5FUDg6y2YCPJiWy-s3NiZ"}}'
http_version:
recorded_at: Fri, 12 Feb 2021 11:53:00 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_PAGE_1_POST_ID>_<FACEBOOK_PAGE_1_POST_COMMENT_ID>/comments?access_token=<FACEBOOK_PAGE_1_ACCCESS_TOKEN>&fields=id,from,to,message,created_time
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Etag:
- '"1050253aec7b29caff644806927dabfa81406eee"'
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- A5fBsal2DFvwS20cDUK230u
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- D1iqvBxgNpx
X-Fb-Rev:
- '1003303417'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Pragma:
- no-cache
X-Fb-Rlafr:
- '0'
X-Business-Use-Case-Usage:
- '{"<FACEBOOK_PAGE_1_ID>":[{"type":"pages","call_count":1,"total_cputime":1,"total_time":1,"estimated_time_to_regain_access":0}]}'
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- hWIk1RG8G0XsK0SpljvImuIx+Kxh3UjcbEGjapa2zEg9UjaQkSJVdBfZGOvoP1SGlylD1lJIsqm/R8KoM0gZRg==
Date:
- Fri, 12 Feb 2021 11:53:00 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '11'
body:
encoding: UTF-8
string: '{"data":[]}'
http_version:
recorded_at: Fri, 12 Feb 2021 11:53:00 GMT
recorded_with: VCR 4.0.0

View file

@ -0,0 +1,247 @@
---
http_interactions:
- request:
method: get
uri: https://graph.facebook.com/me/feed?access_token=<FACEBOOK_PAGE_1_ACCCESS_TOKEN>&fields=id,from,to,message,created_time,permalink_url,comments%7Bid,from,to,message,created_time%7D
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Etag:
- '"e8ff6b278cdfc08eb20e427dae10f2530d069f8a"'
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- AqTkdF4nqtJlk-im2FlSsxr
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- EIP//8avG01
X-Fb-Rev:
- '1003303283'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Vary:
- Accept-Encoding
Pragma:
- no-cache
X-Fb-Rlafr:
- '0'
X-Business-Use-Case-Usage:
- '{"<FACEBOOK_PAGE_1_ID>":[{"type":"pages","call_count":1,"total_cputime":1,"total_time":1,"estimated_time_to_regain_access":0}]}'
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- r/kwyFdq3fP+eTTwKqq6kblwHDSvbs1Y51uCYEAe/4jAo5avmm55xoAbF1rXH/8vIVb4glXa05VbhibTa2w4aQ==
Date:
- Fri, 12 Feb 2021 08:22:05 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '575'
body:
encoding: ASCII-8BIT
string: '{"data":[{"id":"<FACEBOOK_PAGE_1_ID>_<FACEBOOK_PAGE_1_POST_ID>","from":{"name":"<FACEBOOK_CUSTOMER_FIRSTNAME>
<FACEBOOK_CUSTOMER_LASTNAME>","id":"<FACEBOOK_CUSTOMER_ID>"},"to":{"data":[{"id":"<FACEBOOK_PAGE_1_ID>","name":"<FACEBOOK_PAGE_1_NAME>"}]},"message":"<FACEBOOK_PAGE_1_POST_MESSAGE>","created_time":"2021-02-04T15:16:24+0000","permalink_url":"https:\/\/www.facebook.com\/<FACEBOOK_PAGE_1_ID>\/posts\/<FACEBOOK_PAGE_1_POST_ID>\/","comments":{"data":[{"id":"<FACEBOOK_PAGE_1_POST_ID>_105667314885521","from":{"name":"<FACEBOOK_PAGE_1_NAME>","id":"<FACEBOOK_PAGE_1_ID>"},"message":"qqqqq","created_time":"2021-02-04T15:22:43+0000"},{"id":"<FACEBOOK_PAGE_1_POST_ID>_<FACEBOOK_PAGE_1_POST_COMMENT_ID>","from":{"name":"<FACEBOOK_CUSTOMER_FIRSTNAME>
<FACEBOOK_CUSTOMER_LASTNAME>","id":"<FACEBOOK_CUSTOMER_ID>"},"message":"dddd","created_time":"2021-02-04T15:23:13+0000"}],"paging":{"cursors":{"before":"WTI5dGJXVnVkRjlqZAFhKemIzSTZANVEExTmpZAM016RTBPRGcxTlRJeE9qRTJNVEkwTlRJeE5qTT0ZD","after":"WTI5dGJXVnVkRjlqZAFhKemIzSTZANVEExTmpZAM05UYzBPRGcxTkRrMU9qRTJNVEkwTlRJeE9UTT0ZD"}}}}],"paging":{"cursors":{"before":"QVFIUnZAPR1lId3h3MGQ3UE5IZAzFkTkNuY2hWdVpyb3hESzFfVnNCMGk3UTRxNkJ5Y0ZAFVVVualJKdE1HYktIemlTd2RvSUFzQnJaMWtrbFc2VHhyYjRZAakVaTWNzZATlvWHppaEROY3FXd3dWUS01NjdlVS1iSFdTeVo3ZA19NY3ByMWdw","after":"QVFIUnZAPR1lId3h3MGQ3UE5IZAzFkTkNuY2hWdVpyb3hESzFfVnNCMGk3UTRxNkJ5Y0ZAFVVVualJKdE1HYktIemlTd2RvSUFzQnJaMWtrbFc2VHhyYjRZAakVaTWNzZATlvWHppaEROY3FXd3dWUS01NjdlVS1iSFdTeVo3ZA19NY3ByMWdw"}}}'
http_version:
recorded_at: Fri, 12 Feb 2021 08:22:05 GMT
- request:
method: get
uri: https://graph.facebook.com/me/accounts?access_token=<FACEBOOK_ADMIN_ACCESS_TOKEN>
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Etag:
- '"63ea1cbad485441cfa93d3efc6a9389bb50dd23e"'
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- AjXnqYtyT6zBpTawF9ccoVM
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- Amf1ce3KpN3
X-Fb-Rev:
- '1003303283'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Vary:
- Accept-Encoding
Pragma:
- no-cache
X-App-Usage:
- '{"call_count":0,"total_cputime":0,"total_time":0}'
X-Fb-Rlafr:
- '0'
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- PiaOxSpZxOOE7DLxE9CBnc37l80y6MjFxvYKuiI6svHGokOd3w+dhsnkwmRCHI1hVgdmV60NNopUn9oh88ilYw==
Date:
- Fri, 12 Feb 2021 08:22:06 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '623'
body:
encoding: ASCII-8BIT
string: '{"data":[{"access_token":"<FACEBOOK_PAGE_1_ACCCESS_TOKEN>","category":"Bed
and Breakfast","category_list":[{"id":"110321355709642","name":"Bed and Breakfast"}],"name":"<FACEBOOK_PAGE_1_NAME>","id":"<FACEBOOK_PAGE_1_ID>","tasks":["ANALYZE","ADVERTISE","MESSAGING","MODERATE","CREATE_CONTENT","MANAGE"]},{"access_token":"<FACEBOOK_PAGE_2_ACCCESS_TOKEN>","category":"Just
For Fun","category_list":[{"id":"129417183848258","name":"Just For Fun"}],"name":"<FACEBOOK_PAGE_2_NAME>","id":"<FACEBOOK_PAGE_2_ID>","tasks":["ANALYZE","ADVERTISE","MESSAGING","MODERATE","CREATE_CONTENT","MANAGE"]}],"paging":{"cursors":{"before":"MTAwMTY3MDIyMTAyMjE3","after":"MTY4NDc1MjQ4MjY4Mjg5"}}}'
http_version:
recorded_at: Fri, 12 Feb 2021 08:22:06 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_CUSTOMER_ID>?access_token=<FACEBOOK_PAGE_1_ACCCESS_TOKEN>&fields=first_name,last_name,email
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Etag:
- '"6cef0e3dceb732d6f12089b9b438ddf189856488"'
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- AvCIBdexDoa2qOrTLzlRpP8
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- Gcf+D3lg5Kh
X-Fb-Rev:
- '1003303283'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Pragma:
- no-cache
X-Fb-Rlafr:
- '0'
X-Business-Use-Case-Usage:
- '{"<FACEBOOK_PAGE_1_ID>":[{"type":"messenger","call_count":1,"total_cputime":1,"total_time":1,"estimated_time_to_regain_access":0}]}'
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- hha7JaZZQFebuIcNCtKLqxLtvPYIL5aCwh3MEN02BGpJvNsajOKpy2srX837NQYOgMHkLLJBfduqTIiK6wNDzg==
Date:
- Fri, 12 Feb 2021 08:22:06 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '72'
body:
encoding: UTF-8
string: '{"first_name":"<FACEBOOK_CUSTOMER_FIRSTNAME>","last_name":"<FACEBOOK_CUSTOMER_LASTNAME>","id":"<FACEBOOK_CUSTOMER_ID>"}'
http_version:
recorded_at: Fri, 12 Feb 2021 08:22:06 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_CUSTOMER_ID>/picture?type=large
body:
encoding: US-ASCII
string: ''
headers:
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- Zammad User Agent
Host:
- graph.facebook.com
response:
status:
code: 400
message: Bad Request
headers:
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v3.2
X-Fb-Request-Id:
- ASajhBlK9t5KH-vWFhKpXUS
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- DvmdSmQX86B
X-Fb-Rev:
- '1003303283'
Cache-Control:
- no-store
Pragma:
- no-cache
Access-Control-Allow-Origin:
- "*"
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Www-Authenticate:
- OAuth "Facebook Platform" "invalid_request" "(#3) Application does not have
the capability to make this API call."
X-Fb-Debug:
- Pl0Il8ARTQoyKZMnYz6obLgfO/xTJXNV7eUs25gv+TyXcCGktje9l4HjQ9cO2h7s2nzx8/JfVFzdWrwFUTBBxw==
Date:
- Fri, 12 Feb 2021 08:22:06 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '164'
body:
encoding: UTF-8
string: '{"error":{"message":"(#3) Application does not have the capability
to make this API call.","type":"OAuthException","code":3,"fbtrace_id":"ASajhBlK9t5KH-vWFhKpXUS"}}'
http_version:
recorded_at: Fri, 12 Feb 2021 08:22:06 GMT
recorded_with: VCR 4.0.0

View file

@ -0,0 +1,125 @@
---
http_interactions:
- request:
method: get
uri: https://graph.facebook.com/me/feed?access_token=<FACEBOOK_PAGE_1_ACCCESS_TOKEN>&fields=id,from,to,message,created_time,permalink_url,comments%7Bid,from,to,message,created_time%7D
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Etag:
- '"e8ff6b278cdfc08eb20e427dae10f2530d069f8a"'
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- AXsX8GqvZx_lP7HBnZSNQmX
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- D3VpwyrXGiP
X-Fb-Rev:
- '1003303214'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Vary:
- Accept-Encoding
Pragma:
- no-cache
X-Fb-Rlafr:
- '0'
X-Business-Use-Case-Usage:
- '{"<FACEBOOK_PAGE_1_ID>":[{"type":"pages","call_count":1,"total_cputime":1,"total_time":1,"estimated_time_to_regain_access":0}]}'
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- DpOBaLQEY5hjohuCJ0uzM3CeWhIJfu053QpZHrN6A+2hZkbt4Hp29jTIIlEr2LTxMqIy5Uvl7xJUoUg1wgzcOA==
Date:
- Fri, 12 Feb 2021 07:48:07 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '575'
body:
encoding: ASCII-8BIT
string: '{"data":[{"id":"<FACEBOOK_PAGE_1_ID>_<FACEBOOK_PAGE_1_POST_ID>","from":{"name":"<FACEBOOK_CUSTOMER_FIRSTNAME>
<FACEBOOK_CUSTOMER_LASTNAME>","id":"<FACEBOOK_CUSTOMER_ID>"},"to":{"data":[{"id":"<FACEBOOK_PAGE_1_ID>","name":"<FACEBOOK_PAGE_1_NAME>"}]},"message":"<FACEBOOK_PAGE_1_POST_MESSAGE>","created_time":"2021-02-04T15:16:24+0000","permalink_url":"https:\/\/www.facebook.com\/<FACEBOOK_PAGE_1_ID>\/posts\/<FACEBOOK_PAGE_1_POST_ID>\/","comments":{"data":[{"id":"<FACEBOOK_PAGE_1_POST_ID>_105667314885521","from":{"name":"<FACEBOOK_PAGE_1_NAME>","id":"<FACEBOOK_PAGE_1_ID>"},"message":"qqqqq","created_time":"2021-02-04T15:22:43+0000"},{"id":"<FACEBOOK_PAGE_1_POST_ID>_<FACEBOOK_PAGE_1_POST_COMMENT_ID>","from":{"name":"<FACEBOOK_CUSTOMER_FIRSTNAME>
<FACEBOOK_CUSTOMER_LASTNAME>","id":"<FACEBOOK_CUSTOMER_ID>"},"message":"dddd","created_time":"2021-02-04T15:23:13+0000"}],"paging":{"cursors":{"before":"WTI5dGJXVnVkRjlqZAFhKemIzSTZANVEExTmpZAM016RTBPRGcxTlRJeE9qRTJNVEkwTlRJeE5qTT0ZD","after":"WTI5dGJXVnVkRjlqZAFhKemIzSTZANVEExTmpZAM05UYzBPRGcxTkRrMU9qRTJNVEkwTlRJeE9UTT0ZD"}}}}],"paging":{"cursors":{"before":"QVFIUnZAPR1lId3h3MGQ3UE5IZAzFkTkNuY2hWdVpyb3hESzFfVnNCMGk3UTRxNkJ5Y0ZAFVVVualJKdE1HYktIemlTd2RvSUFzQnJaMWtrbFc2VHhyYjRZAakVaTWNzZATlvWHppaEROY3FXd3dWUS01NjdlVS1iSFdTeVo3ZA19NY3ByMWdw","after":"QVFIUnZAPR1lId3h3MGQ3UE5IZAzFkTkNuY2hWdVpyb3hESzFfVnNCMGk3UTRxNkJ5Y0ZAFVVVualJKdE1HYktIemlTd2RvSUFzQnJaMWtrbFc2VHhyYjRZAakVaTWNzZATlvWHppaEROY3FXd3dWUS01NjdlVS1iSFdTeVo3ZA19NY3ByMWdw"}}}'
http_version:
recorded_at: Fri, 12 Feb 2021 07:48:07 GMT
- request:
method: get
uri: https://graph.facebook.com/<FACEBOOK_CUSTOMER_ID>?access_token=<FACEBOOK_PAGE_1_ACCCESS_TOKEN>&fields=first_name,last_name,email
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Etag:
- '"6cef0e3dceb732d6f12089b9b438ddf189856488"'
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- AFZV7dJPpMiPKdsWhQH22p6
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- BTWgXKLHGl9
X-Fb-Rev:
- '1003303214'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Pragma:
- no-cache
X-Fb-Rlafr:
- '0'
X-Business-Use-Case-Usage:
- '{"<FACEBOOK_PAGE_1_ID>":[{"type":"messenger","call_count":1,"total_cputime":1,"total_time":1,"estimated_time_to_regain_access":0}]}'
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- PxciS2xmfwD9l7c3DqMzQapmfAD/YpSNRlYOv1eY1PLTqW1gU9x4T2ujk/pe7x+dmriwZLL7LuNoSvnY5MhNgw==
Date:
- Fri, 12 Feb 2021 07:48:07 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '72'
body:
encoding: UTF-8
string: '{"first_name":"<FACEBOOK_CUSTOMER_FIRSTNAME>","last_name":"<FACEBOOK_CUSTOMER_LASTNAME>","id":"<FACEBOOK_CUSTOMER_ID>"}'
http_version:
recorded_at: Fri, 12 Feb 2021 07:48:07 GMT
recorded_with: VCR 4.0.0

View file

@ -0,0 +1,62 @@
---
http_interactions:
- request:
method: get
uri: https://graph.facebook.com/me?access_token=<FACEBOOK_PAGE_1_ACCCESS_TOKEN>
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Etag:
- '"861755e903d7086e2efa081e780e9cc1849961b5"'
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- A5Alauiwm8n1z8oYWioVsZJ
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- CJIeYtZAwkO
X-Fb-Rev:
- '1003301623'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Pragma:
- no-cache
X-Fb-Rlafr:
- '0'
X-Business-Use-Case-Usage:
- '{"<FACEBOOK_PAGE_1_ID>":[{"type":"pages","call_count":1,"total_cputime":1,"total_time":1,"estimated_time_to_regain_access":0}]}'
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- aUF92PU+6snBqlHtFVtQzV/gAgBcc1SIBsTYgBvGBrpINF0odgYgxMivXgKMvjZglzsxfM7/TdZIzTWLrXeLkg==
Date:
- Fri, 12 Feb 2021 06:19:32 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '37'
body:
encoding: UTF-8
string: '{"name":"<FACEBOOK_PAGE_1_NAME>","id":"<FACEBOOK_PAGE_1_ID>"}'
http_version:
recorded_at: Fri, 12 Feb 2021 06:19:32 GMT
recorded_with: VCR 4.0.0

View file

@ -0,0 +1,62 @@
---
http_interactions:
- request:
method: get
uri: https://graph.facebook.com/me?access_token=<FACEBOOK_ADMIN_ACCESS_TOKEN>
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.17.3
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Etag:
- '"c74d1549500251fdcbe3e87746dbb3f2c9c91e51"'
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
Content-Type:
- application/json; charset=UTF-8
Facebook-Api-Version:
- v9.0
X-Fb-Request-Id:
- AZdRcb9ivY-xPflUK1-b9mq
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Trace-Id:
- CfonrTxBZbK
X-Fb-Rev:
- '1003301623'
Cache-Control:
- private, no-cache, no-store, must-revalidate
Pragma:
- no-cache
X-App-Usage:
- '{"call_count":0,"total_cputime":0,"total_time":0}'
X-Fb-Rlafr:
- '0'
Access-Control-Allow-Origin:
- "*"
X-Fb-Debug:
- 4lEAL+AASROEf41JSbDdtymSKmgBWZw/5r7oqtReYgbJ27puwXpXIbsxGHHpYYpK70qKx4gXcySMnJ/jbWt3+g==
Date:
- Fri, 12 Feb 2021 06:19:32 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '45'
body:
encoding: UTF-8
string: '{"name":"<FACEBOOK_ADMIN_FIRSTNAME> <FACEBOOK_ADMIN_LASTNAME>","id":"<FACEBOOK_ADMIN_USER_ID>"}'
http_version:
recorded_at: Fri, 12 Feb 2021 06:19:32 GMT
recorded_with: VCR 4.0.0

View file

@ -0,0 +1,58 @@
---
http_interactions:
- request:
method: post
uri: https://graph.facebook.com/oauth/access_token
body:
encoding: UTF-8
string: client_id=433768244546254&client_secret=62a69249edb426a894333291734ec81d&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.17.3
Content-Type:
- application/x-www-form-urlencoded
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Access-Control-Allow-Origin:
- "*"
Pragma:
- no-cache
Cache-Control:
- private, no-cache, no-store, must-revalidate
X-Fb-Rev:
- '1003441624'
Content-Type:
- application/json; charset=UTF-8
X-Fb-Trace-Id:
- EVFAflVJtjd
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Request-Id:
- A0us0Ja4b-D6Vk3xdeToGTL
Facebook-Api-Version:
- v3.2
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
X-Fb-Debug:
- GZRmFMwfKRZBkp7PHGPkTPsFT3KUX2rz79S7A221IJuL1RBqCufWTUOJGS/xx1fdoRb/A2M/ZvUIHQ8QYkZwJA==
Date:
- Fri, 12 Mar 2021 15:41:36 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '84'
body:
encoding: UTF-8
string: '{"access_token":"433768244546254|pxTtOQrkmJDMWzJROLEVXuOZqWI","token_type":"bearer"}'
http_version:
recorded_at: Fri, 12 Mar 2021 15:41:36 GMT
recorded_with: VCR 4.0.0

View file

@ -0,0 +1,58 @@
---
http_interactions:
- request:
method: post
uri: https://graph.facebook.com/oauth/access_token
body:
encoding: UTF-8
string: client_id=433768244546254&client_secret=62a69249edb426a894333291734ec81d&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.17.3
Content-Type:
- application/x-www-form-urlencoded
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Access-Control-Allow-Origin:
- "*"
Pragma:
- no-cache
Cache-Control:
- private, no-cache, no-store, must-revalidate
X-Fb-Rev:
- '1003324562'
Content-Type:
- application/json; charset=UTF-8
X-Fb-Trace-Id:
- FLOfyfPAag0
Strict-Transport-Security:
- max-age=15552000; preload
X-Fb-Request-Id:
- A32rs2CUHkKc-4YvtxYcdxU
Facebook-Api-Version:
- v3.2
Expires:
- Sat, 01 Jan 2000 00:00:00 GMT
X-Fb-Debug:
- te/dJdqf+FEcEv3Velg2MuGZvamXnY4/61rxAhOLVkWDPEj04TagIjONaH5jaYwI7dmWgPhKnsO0yNsvFh8K6Q==
Date:
- Thu, 18 Feb 2021 15:43:21 GMT
Alt-Svc:
- h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
Connection:
- keep-alive
Content-Length:
- '84'
body:
encoding: UTF-8
string: '{"access_token":"433768244546254|pxTtOQrkmJDMWzJROLEVXuOZqWI","token_type":"bearer"}'
http_version:
recorded_at: Thu, 18 Feb 2021 15:43:21 GMT
recorded_with: VCR 4.0.0

View file

@ -1,233 +0,0 @@
require 'browser_test_helper'
class FacebookBrowserTest < TestCase
def test_add_config
# app config
if !ENV['FACEBOOK_BT_APP_ID']
raise "ERROR: Need FACEBOOK_BT_APP_ID - hint FACEBOOK_BT_APP_ID='1234'"
end
app_id = ENV['FACEBOOK_BT_APP_ID']
if !ENV['FACEBOOK_BT_APP_SECRET']
raise "ERROR: Need FACEBOOK_BT_APP_SECRET - hint FACEBOOK_BT_APP_SECRET='1234'"
end
app_secret = ENV['FACEBOOK_BT_APP_SECRET']
if !ENV['FACEBOOK_BT_USER_LOGIN']
raise "ERROR: Need FACEBOOK_BT_USER_LOGIN - hint FACEBOOK_BT_USER_LOGIN='1234'"
end
user_login = ENV['FACEBOOK_BT_USER_LOGIN']
if !ENV['FACEBOOK_BT_USER_PW']
raise "ERROR: Need FACEBOOK_BT_USER_PW - hint FACEBOOK_BT_USER_PW='1234'"
end
user_pw = ENV['FACEBOOK_BT_USER_PW']
if !ENV['FACEBOOK_BT_PAGE_ID']
raise "ERROR: Need FACEBOOK_BT_PAGE_ID - hint FACEBOOK_BT_PAGE_ID='1234'"
end
page_id = ENV['FACEBOOK_BT_PAGE_ID']
if !ENV['FACEBOOK_BT_CUSTOMER']
raise "ERROR: Need FACEBOOK_BT_CUSTOMER - hint FACEBOOK_BT_CUSTOMER='name:1234:access_token'"
end
customer_access_token = ENV['FACEBOOK_BT_CUSTOMER'].split(':')[2]
@browser = browser_instance
login(
username: 'master@example.com',
password: 'test',
url: browser_url,
auto_wizard: true,
)
tasks_close_all()
click(css: 'a[href="#manage"]')
click(css: '.content.active a[href="#channels/facebook"]')
click(css: '.content.active .js-configApp')
modal_ready()
set(
css: '.content.active .modal [name=application_id]',
value: app_id,
)
set(
css: '.content.active .modal [name=application_secret]',
value: 'wrong',
)
click(css: '.content.active .modal .js-submit')
watch_for(
css: '.content.active .modal .alert',
value: 'Error',
)
set(
css: '.content.active .modal [name=application_secret]',
value: app_secret,
)
click(css: '.content.active .modal .js-submit')
watch_for_disappear(
css: '.content.active .modal .alert',
value: 'Error',
)
watch_for(
css: '.content.active .js-new',
value: 'add account',
)
click(css: '.content.active .js-configApp')
modal_ready()
set(
css: '.content.active .modal [name=application_secret]',
value: 'wrong',
)
click(css: '.content.active .modal .js-submit')
watch_for(
css: '.content.active .modal .alert',
value: 'Error',
)
set(
css: '.content.active .modal [name=application_secret]',
value: app_secret,
)
click(css: '.content.active .modal .js-submit')
watch_for_disappear(
css: '.content.active .modal .alert',
value: 'Error',
)
watch_for(
css: '.content.active .js-new',
value: 'add account',
)
click(css: '.content.active .js-new')
watch_for(
css: 'body',
value: '(Facebook Login|Log into Facebook)',
)
set(
css: '#email',
value: user_login,
)
set(
css: '#pass',
value: user_pw,
)
click(css: '#loginbutton')
#sleep 10
#click(css: 'div[role="dialog"] button[type="submit"][name="__CONFIRM__"]')
#sleep 10
#click(css: 'div[role="dialog"] button[type="submit"][name="__CONFIRM__"]')
#sleep 10
#watch_for(
# css: '.content.active .modal',
# value: '',
#)
watch_for(
css: '#navigation',
value: 'Dashboard',
)
select(css: %(.content.active .modal [name="pages::#{page_id}::group_id"]), value: 'Users')
sleep 1
click(css: '.content.active .modal .js-submit')
sleep 5
watch_for(
css: '.content.active',
value: 'Hansi Merkur',
)
exists(
css: '.content.active .main .action:nth-child(1)'
)
exists_not(
css: '.content.active .main .action:nth-child(2)'
)
click(css: '.content.active .js-new')
sleep 10
#click(css: '#login_button_inline')
#watch_for(
# css: '.content.active .modal',
# value: 'Search Terms',
#)
click(css: '.content.active .modal .js-close')
watch_for(
css: '.content.active',
value: 'Hansi Merkur',
)
exists(
css: '.content.active .main .action:nth-child(1)'
)
exists_not(
css: '.content.active .main .action:nth-child(2)'
)
# watch till post is in app
click(text: 'Overviews')
# enable full overviews
execute(
js: '$(".content.active .sidebar").css("display", "block")',
)
click(text: 'Unassigned & Open')
sleep 50
# post new posting
hash = "##{rand(999_999)}"
customer_client = Koala::Facebook::API.new(customer_access_token)
message = "I need some help for your product #{hash}"
customer_client.put_wall_post(message, {}, page_id)
watch_for(
css: '.content.active',
value: hash,
timeout: 320,
)
sleep 6
ticket_open_by_title(
title: hash,
)
click(css: '.content.active [data-type="facebookFeedReply"]')
sleep 2
re_hash = "#{hash}re#{rand(99_999)}"
ticket_update(
data: {
body: "You need to do this #{re_hash} #{rand(999_999)}",
},
)
sleep 20
match(
css: '.content.active .ticket-article',
value: re_hash,
)
end
end

View file

@ -1,246 +0,0 @@
require 'integration_test_helper'
class FacebookTest < ActiveSupport::TestCase
self.test_order = :sorted
self.use_transactional_tests = false
# set system mode to done / to activate
Setting.set('system_init_done', true)
# needed to check correct behavior
group = Group.create_if_not_exists(
name: 'Facebook',
note: 'All Facebook feed posts.',
updated_by_id: 1,
created_by_id: 1
)
# account config
if !ENV['FACEBOOK_USER']
raise "ERROR: Need FACEBOOK_USER - hint FACEBOOK_USER='name:1234:access_token'"
end
user_name = ENV['FACEBOOK_USER'].split(':')[0]
user_id = ENV['FACEBOOK_USER'].split(':')[1]
user_access_token = ENV['FACEBOOK_USER'].split(':')[2]
if !ENV['FACEBOOK_PAGE']
raise "ERROR: Need FACEBOOK_PAGE - hint FACEBOOK_PAGE='name:1234:access_token'"
end
page_name = ENV['FACEBOOK_PAGE'].split(':')[0]
page_id = ENV['FACEBOOK_PAGE'].split(':')[1]
page_access_token = ENV['FACEBOOK_PAGE'].split(':')[2]
if !ENV['FACEBOOK_CUSTOMER']
raise "ERROR: Need FACEBOOK_CUSTOMER - hint FACEBOOK_CUSTOMER='name:1234:access_token'"
end
customer_name = ENV['FACEBOOK_CUSTOMER'].split(':')[0]
customer_access_token = ENV['FACEBOOK_CUSTOMER'].split(':')[2]
provider_options = {
adapter: 'facebook',
auth: {
access_token: user_access_token
},
user: {
name: user_name,
id: user_id,
},
pages: [
{
'id' => page_id,
'name' => page_name,
'access_token' => page_access_token,
}
],
sync: {
pages: {
page_id => { 'group_id' => group.id.to_s },
}
}
}
# add channel
current = Channel.where(area: 'Facebook::Account')
current.each(&:destroy)
Channel.create(
area: 'Facebook::Account',
options: provider_options,
active: true,
created_by_id: 1,
updated_by_id: 1,
)
# check users account
test 'a - user account' do
client = Facebook.new(user_access_token)
current_user = client.current_user
assert_equal(user_id, current_user['id'])
assert_equal(user_name, current_user['name'])
end
# check available pages
test 'b - available pages' do
client = Facebook.new(user_access_token)
page_found = false
client.pages.each do |page|
next if page[:name] != page_name
page_found = true
assert_equal(page_id, page[:id])
assert_equal(page_name, page[:name])
end
assert(page_found, "Page lookup for '#{page_name}'")
end
# check access to pages
test 'c - page access' do
page_found = false
provider_options[:pages].each do |page|
client = Facebook.new(page['access_token'])
current_user = client.current_user
next if page['name'] != page_name
page_found = true
assert_equal(page_id, current_user['id'])
assert_equal(page_name, current_user['name'])
end
assert(page_found, "Page lookup for '#{page_name}'")
end
# check page account
test 'd - page account' do
client = Facebook.new(page_access_token)
current_user = client.current_user
assert_equal(page_id, current_user['id'])
assert_equal(page_name, current_user['name'])
end
test 'e - feed post to ticket' do
customer_client = Koala::Facebook::API.new(customer_access_token)
message = "I've got an issue with my hat, serial number ##{rand(99_999)}"
post = customer_client.put_wall_post(message, {}, page_id)
sleep 8
# fetch check system account
Channel.fetch
# check if first article has been created
article = Ticket::Article.find_by(message_id: post['id'])
assert_equal('new', article.ticket.state.name)
assert(article, "article post '#{post['id']}' imported")
assert_equal(article.from, customer_name, 'ticket article inbound body')
assert_equal(article.to, page_name, 'ticket article inbound body')
assert_equal(article.body, message, 'ticket article inbound body')
assert_equal(1, article.ticket.articles.count, 'ticket article inbound count')
assert_equal(message, article.ticket.articles.last.body, 'ticket article inbound body')
# check customer
customer = article.ticket.customer
assert_equal('Bernd', customer.firstname)
assert_equal('Hofbecker', customer.lastname)
post_comment = "Any updates yet? It's urgent. I love my hat."
comment = customer_client.put_comment(post['id'], post_comment)
sleep 8
# fetch check system account
Channel.fetch
# check if second article has been created
article = Ticket::Article.find_by(message_id: comment['id'])
assert_equal('new', article.ticket.reload.state.name)
assert(article, "article comment '#{comment['id']}' imported")
assert_equal(article.from, customer_name, 'ticket article inbound body')
assert_equal(article.body, post_comment, 'ticket article inbound body')
assert_equal(2, article.ticket.articles.count, 'ticket article inbound count')
assert_equal(post_comment, article.ticket.articles.last.body, 'ticket article inbound body')
end
test 'f - feed post and comment reply' do
customer_client = Koala::Facebook::API.new(customer_access_token)
feed_post = "I've got an issue with my hat, serial number ##{rand(99_999)}"
post = customer_client.put_wall_post(feed_post, {}, page_id)
sleep 8
# fetch check system account
Channel.fetch
article = Ticket::Article.find_by(message_id: post['id'])
ticket = article.ticket
assert_equal('new', ticket.state.name)
assert(article, "article post '#{post['id']}' imported")
# check customer
customer = ticket.customer
assert_equal(customer_name, "#{customer.firstname} #{customer.lastname}")
# reply via ticket
reply_text = "What's your issue Bernd?"
outbound_article = Ticket::Article.create(
ticket_id: ticket.id,
body: reply_text,
in_reply_to: post['id'],
type: Ticket::Article::Type.find_by(name: 'facebook feed comment'),
sender: Ticket::Article::Sender.find_by(name: 'Agent'),
internal: false,
updated_by_id: 1,
created_by_id: 1,
)
Scheduler.worker(true)
assert_equal('open', ticket.reload.state.name)
outbound_article = Ticket::Article.find(outbound_article.id)
assert(outbound_article, 'outbound article created')
assert_equal(outbound_article.from, page_name, 'ticket article outbound count')
assert_equal(outbound_article.ticket.articles.count, 2, 'ticket article outbound count')
ticket = Ticket.find(outbound_article.ticket_id)
ticket.state = Ticket::State.find_by(name: 'closed')
ticket.save!
post_comment = 'The peacock feather is fallen off.'
comment = customer_client.put_comment(post['id'], post_comment)
sleep 8
# fetch check system account
Channel.fetch
article = Ticket::Article.find_by(message_id: comment['id'])
assert(article, "article comment '#{comment['id']}' imported")
assert_equal('open', ticket.reload.state.name)
# reply via ticket
reply_text = "Please send it to our address and add the ticket number #{article.ticket.number}."
outbound_article = Ticket::Article.create(
ticket_id: ticket.id,
body: reply_text,
in_reply_to: comment['id'],
type: Ticket::Article::Type.find_by(name: 'facebook feed comment'),
sender: Ticket::Article::Sender.find_by(name: 'Agent'),
internal: false,
updated_by_id: 1,
created_by_id: 1,
)
Scheduler.worker(true)
outbound_article = Ticket::Article.find(outbound_article.id)
assert(outbound_article, 'outbound article created')
assert_equal(outbound_article.from, page_name, 'ticket article outbound count')
assert_equal(outbound_article.ticket.articles.count, 4, 'ticket article outbound count')
end
end