@extends('layouts.admin') @section('content')
@include('admin.partials.pro-hero', [ 'icon' => 'fab fa-facebook', 'title' => __('Facebook App Settings'), 'subtitle' => __('Configure Facebook app credentials'), 'breadcrumbs' => [['label' => __('Dashboard'), 'url' => route('admin.dashboard')], ['label' => __('Chatbot'), 'url' => route('admin.chatbot.packages.index')], ['label' => __('App Settings'), 'url' => null]], ]) @include('includes.admin.form-error') @include('includes.admin.form-success')

{{ __('App Configuration') }}

{{-- Main Settings Card --}}
{{-- Token Auto-generated Notice --}} @if($setting->verify_token && !$setting->app_id) @endif {{-- Connection Status Alert --}} @if($setting->is_connected) @elseif($setting->isConfigured()) @else @endif {{-- Error Log --}} @if($setting->error_log) @endif
@csrf
{{-- App ID --}}
@error('app_id') {{ $message }} @enderror
{{-- App Secret --}}
@error('app_secret') {{ $message }} @enderror
{{-- Verify Token --}}
Copy this token when setting up Facebook webhook. You can also edit it manually or click Generate.
{{-- Graph API Version --}}
{{-- Page Connect OAuth Callback URL (মাস্ট হোয়াইটলিস্ট ইন ফেসবুক) --}}
Valid OAuth Redirect URIs এ এই URL অবশ্যই যোগ করুন
Facebook App → Facebook Login → Settings → Client OAuth Settings → Valid OAuth Redirect URIs
এই URL টি Facebook App এর Valid OAuth Redirect URIs তে যোগ না করলে "redirect URI is not whitelisted" এরর আসবে।
{{-- Redirect URL (অপশনাল - অন্যান্য OAuth এর জন্য) --}}
@error('redirect_url') {{ $message }} @enderror
{{-- Privacy Policy URL --}}
Required for Facebook App approval. Must be publicly accessible. @error('privacy_policy_url') {{ $message }} @enderror
{{-- Terms of Service URL --}}
Recommended for professional apps @error('terms_of_service_url') {{ $message }} @enderror
{{-- Data Deletion Instructions URL --}}
Facebook App Settings > App Review > Data Deletion Instructions URL এ এই লিঙ্ক দিতে হবে। ইউজার তার ডেটা ডিলিট করার নির্দেশনা এই পেজে থাকবে। @error('data_deletion_url') {{ $message }} @enderror
{{-- Action Buttons --}}
@if($setting->is_connected) Disconnect @endif
{{-- Webhook Info Card --}}
{{-- Webhook URL --}}
Webhook URL
@if($setting->verify_token) Token generated successfully @endif
Webhook Setup Guide
{{-- Important URLs --}}
Important URLs
{{-- Privacy Policy --}}
{{-- Page Connect Callback (Valid OAuth Redirect URIs এ যোগ করুন) --}}
Facebook এ এই URL whitelist করুন
{{-- Data Deletion URL --}}
Add these URLs to Facebook App Settings
{{-- Quick Stats --}}
Connection Info
@if($setting->connected_at) @endif
Status: {!! $setting->status_badge !!}
App ID: {{ $setting->app_id ? Str::limit($setting->app_id, 15) : 'Not set' }}
API Version: {{ $setting->graph_version }}
Connected: {{ $setting->connected_at->diffForHumans() }}
@endsection @section('scripts') @endsection